How to get untagged project with sonarqube RestAPI

Sonarqube 8.9.7 version
we try to get untagged project via sonarqube restApı
I can take tagged project with filters like that
api/components/search_projects?filter=tags%20IN%20(tag1)
api/components/search_projects?filter=tags%20IN%20(tag1%2C%20tag2)

But ı wanna to take untagged project with filter.
is there any option like that: %NOT IN%20
How can ı achieve this

Hey there.

This isn’t possible using GET api/components/search_projects.

You would need to iterate through each project using GET api/components/show to find projects without tags.

:warning: Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported. :smiley: