General documentation / cheat sheets for various languages and services

GitHub's API documentation is fantastic. This page simply records some example responses.

I'm not the biggest fan of the huge and redundant responses their API produces (gzipping reduces the size by nearly 5x!), but at least all the information is there.

JSON responses are pretty-printed by default, which is kind of unusual for a JSON API, but actually kind of nice.

GET /repos/:owner/:repo

{ "id": 5358636, "name": "flickr-with-uploads", "full_name": "chbrown/flickr-with-uploads", "owner": { "login": "chbrown", "id": 360279, "avatar_url": "", "gravatar_id": "", "url": "", "html_url": "", "followers_url": "", "following_url": "{/other_user}", "gists_url": "{/gist_id}", "starred_url": "{/owner}{/repo}", "subscriptions_url": "", "organizations_url": "", "repos_url": "", "events_url": "{/privacy}", "received_events_url": "", "type": "User", "site_admin": false }, "private": false, "html_url": "", "description": "Flickr API for Node.js using OAuth 1.0a, including upload support and featuring a CLI", "fork": false, "url": "", "forks_url": "", "keys_url": "{/key_id}", "collaborators_url": "{/collaborator}", "teams_url": "", "hooks_url": "", "issue_events_url": "{/number}", "events_url": "", "assignees_url": "{/user}", "branches_url": "{/branch}", "tags_url": "", "blobs_url": "{/sha}", "git_tags_url": "{/sha}", "git_refs_url": "{/sha}", "trees_url": "{/sha}", "statuses_url": "{sha}", "languages_url": "", "stargazers_url": "", "contributors_url": "", "subscribers_url": "", "subscription_url": "", "commits_url": "{/sha}", "git_commits_url": "{/sha}", "comments_url": "{/number}", "issue_comment_url": "{number}", "contents_url": "{+path}", "compare_url": "{base}...{head}", "merges_url": "", "archive_url": "{archive_format}{/ref}", "downloads_url": "", "issues_url": "{/number}", "pulls_url": "{/number}", "milestones_url": "{/number}", "notifications_url": "{?since,all,participating}", "labels_url": "{/name}", "releases_url": "{/id}", "created_at": "2012-08-09T17:15:44Z", "updated_at": "2014-10-01T13:38:49Z", "pushed_at": "2014-09-30T14:07:09Z", "git_url": "git://", "ssh_url": "", "clone_url": "", "svn_url": "", "homepage": "", "size": 363, "stargazers_count": 38, "watchers_count": 38, "language": "JavaScript", "has_issues": true, "has_downloads": true, "has_wiki": true, "has_pages": false, "forks_count": 12, "mirror_url": null, "open_issues_count": 1, "forks": 12, "open_issues": 1, "watchers": 38, "default_branch": "master", "network_count": 12, "subscribers_count": 6 }

The following are the distinct counts (many of these fields are redundant):