Danny Sortino
Danny Sortino

Reputation: 97

Gitlab API filter all projects by tag

I was looking through the documentation on gitlab and couldn't find a way to filter out projects by tags. I do notice that if you go to the dashboard, then "Explore Projects", then "All", at the side "tags" appears which is a dropdown menu populated by all tags in the database, and when selecting one it allows you to filter the list.

As this is evidently available via gitlab, is there a way to request this via the API? Without the need to request all projects then manually iterate through them all to see if the tags match?

Upvotes: 7

Views: 1411

Answers (2)

sytech
sytech

Reputation: 40861

These "tags" are topics. For example you can search the "android" topic:

topics

This is the topic field when using the GitLab list projects API.

For example to get the same results you might do something like this:

curl https://gitlab.com/api/v4/projects?topic=android

Upvotes: 0

hansel ke
hansel ke

Reputation: 21

project tags are listed in the project.tag_list field

Upvotes: 0

Related Questions