Github - How to search gist via API?

I understand that to search for a repository by various criteria using the Github API, but how to search for a single meaning or find its ID?

Ideally I would like to use user

and filename

, but it could be a hash inside the content body:

https://gist.github.com/search?q=sadjghasghdhjasgdfhs

      

+3


source to share


1 answer


I just found out that it is possible to search for a specific user and / or filename. I have looked at an advanced github search that uses user:some-user-name

and path:some-file-name

. These criteria also work based on search terms.

example: https://gist.github.com/search?q=user%3Amanuelvanrijn+path%3Aguid.js



Hope this helps until a search api for gists is found

+2


source







All Articles