Retrieve dbt version of all the projects

Is there any easy way to retrieve the dbt version of all the projects created. I tried using the api but no luck.

We are doing some upgrades now and as part of that i need to understand which ones are deprecated and which ones are having the latest dbt core versions.

I found the solution of pulling these info through dbt cloud api. Initially I was little bit struggled in finding the end points but later i could able to.