Skip to content

Instantly share code, notes, and snippets.

@elowy01
Last active October 5, 2020 13:09
Show Gist options
  • Save elowy01/598483a9f1ac3ee2856289b9225c5e43 to your computer and use it in GitHub Desktop.
Save elowy01/598483a9f1ac3ee2856289b9225c5e43 to your computer and use it in GitHub Desktop.
## Reference documentation:
https://docs.github.com/en/free-pro-team@latest/rest/guides/getting-started-with-the-rest-api
# Basic curl get command:
curl https://api.github.com/zen
# The same but getting info on the headers:
curl -i https://api.github.com/zen
# Get info on a particular repo:
curl -i https://api.github.com/repos/elowy01/FOREX
# Info on a certain user:
curl https://api.github.com/users/elowy01
# All repos for a certain user:
curl https://api.github.com/users/elowy01/repos
# All repos for a certain organization (in this case EMBL-EBI-GCA)
curl https://api.github.com/orgs/EMBL-EBI-GCA/repos |grep full_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment