Skip to content

Searching for repositories that use a specific file extension #24490

Discussion options

You must be logged in to vote

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.

curl https://api.github.com/search/repositories?q=tetris+language:assembly&sort=stars&order=desc

You can search for multiple topics by adding more topic: instances, and including the mercy-preview header. For example:

curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories?q=topic:ruby+topic:rails

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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants