GraphQL API v4 - Get or search for topics list #24806
-
Hello, Is it possible to fetch all topics or all features topics or just search for topics (featured if possible) with the GraphQL API ? Should I consider using the v3 API and if yes, do you have any date where it will be safe for production ? I’m looking for a way to add Topic Suggestion or searching topics in my app. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
No, it isn’t currently possible to get a list of all topics, featured topics, or search for topics via GraphQL (or, to my knowledge, with REST for that matter). You can search for repositories with a given topic, however. I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
That’s unfortunate, I guess I will hardcode a list of topics in my application. Can you create a feature request for this ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback! I’ve taken your suggestion and passed it along to the appropriate teams. Thanks again for reaching out 😀 |
Beta Was this translation helpful? Give feedback.
-
How can you do that GraphQL? |
Beta Was this translation helpful? Give feedback.
-
Any updates on this feature? The REST API supports searching for topics as documented here: https://docs.github.com/en/rest/search?apiVersion=2022-11-28#search-topics Would be nice to get this in the GraphQL API as well. Unless I'm missing something and it's somewhere else in the Explorer: |
Beta Was this translation helpful? Give feedback.
Thanks for the feedback! I’ve taken your suggestion and passed it along to the appropriate teams. Thanks again for reaching out 😀