I understand that it is possible to search a repository via various criteria with the Github API but how to search for a single gist or find its id?
Ideally I'd like to use user and filename but it could be a hash inside the content body:
https://gist.github.com/search?q=sadjghasghdhjasgdfhs
I just found out that it is possible to search for a specific user and/or filename. I've looked at the advanced search of github, which uses user:some-user-name and path:some-file-name. These criteria also work on the gist search terms.
example: https://gist.github.com/search?q=user%3Amanuelvanrijn+path%3Aguid.js
Hope this helps until there's a search api available for gists
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With