API documentation for organizational projects

web_api
authentication
sonarcloud
security

(Russ Harding) #1

Hi, I’m trying to get a list of projects that our organization has integrated so I can report on our adoption rate. It’s unclear to me how to get that list for private projects under our org through the API. The documentation doesn’t show me any options on how to this.

On a related note, I am trying to use my API Token with Postman.


(Fabrice Bellingard) #2

Hi Russ,

I guess you could not find what you wanted because the “organization” parameter is currently hidden by default :confused: This is not great and we want to fix this, but until now you have to click “Show Internal API”.

That being said, the answer to your question is: you can use the following WS:

https://sonarcloud.io/api/components/search_projects?organization=your_org_key

There are way more parameters, you can see them in the doc of the WS: https://sonarcloud.io/web_api/api/components/search

HTH!


(Russ Harding) #3

Thanks Fabrice, this is helpful.