Searching for repositories that use a specific file extension #24490
-
Couldn’t see this in the dropdown. I’m trying to phrase a query with the Search API that’ll return a list of all public repositories that have a specific file extension. For example if I wanted to get all that contain a .json file. Right now I’ve tried: https://api.github.com/search/extension:.[extensionname]&type=Code |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @ljsikuade, Thanks for being here! You can search by file extension, per the docs: Suppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.
You can search for multiple topics by adding more
In this request, we’re searching for repositories with the word Check out the docs for more info. I hope this helps! Andrea |
Beta Was this translation helpful? Give feedback.
-
https://api.github.com/search/extension:.[extensionname]&type=Code |
Beta Was this translation helpful? Give feedback.
Hey @ljsikuade,
Thanks for being here! You can search by file extension, per the docs:
Suppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.
You can search for multiple topics by adding more
topic:
instances, and including themercy-preview
header. For example:In this request, we’re searching for repositories with the word
tetris
in the name, the description, or the README. We’re limiting the results to o…