SpyREST

Supported by Mashape

Home » api.github.com Versions » v3 Resources » search » GET /search/repositories

GET /search/repositories

Description

Query Parameters

Name Type Example Values Description
order String desc
sort String stars
q String tetris language:assembly

Response Fields

Name Type Description
total_count Integer
incomplete_results Boolean
items Array
items[].id Integer
items[].name String
items[].full_name String
items[].owner.login String
items[].owner.id Integer
items[].owner.avatar_url String
items[].owner.gravatar_id String
items[].owner.url String
items[].owner.html_url String
items[].owner.followers_url String
items[].owner.following_url String
items[].owner.gists_url String
items[].owner.starred_url String
items[].owner.subscriptions_url String
items[].owner.organizations_url String
items[].owner.repos_url String
items[].owner.events_url String
items[].owner.received_events_url String
items[].owner.type String
items[].owner.site_admin Boolean
items[].private Boolean
items[].html_url String
items[].description String
items[].fork Boolean
items[].url String
items[].forks_url String
items[].keys_url String
items[].collaborators_url String
items[].teams_url String
items[].hooks_url String
items[].issue_events_url String
items[].events_url String
items[].assignees_url String
items[].branches_url String
items[].tags_url String
items[].blobs_url String
items[].git_tags_url String
items[].git_refs_url String
items[].trees_url String
items[].statuses_url String
items[].languages_url String
items[].stargazers_url String
items[].contributors_url String
items[].subscribers_url String
items[].subscription_url String
items[].commits_url String
items[].git_commits_url String
items[].comments_url String
items[].issue_comment_url String
items[].contents_url String
items[].compare_url String
items[].merges_url String
items[].archive_url String
items[].downloads_url String
items[].issues_url String
items[].pulls_url String
items[].milestones_url String
items[].notifications_url String
items[].labels_url String
items[].releases_url String
items[].created_at String (Time ISO8601)
items[].updated_at String (Time ISO8601)
items[].pushed_at String (Time ISO8601)
items[].git_url String
items[].ssh_url String
items[].clone_url String
items[].svn_url String
items[].homepage String
items[].size Integer
items[].stargazers_count Integer
items[].watchers_count Integer
items[].language String
items[].has_issues Boolean
items[].has_downloads Boolean
items[].has_wiki Boolean
items[].has_pages Boolean
items[].forks_count Integer
items[].mirror_url
items[].open_issues_count Integer
items[].forks Integer
items[].open_issues Integer
items[].watchers Integer
items[].default_branch String
items[].score Float
Write
Preview

Examples

Suppose you want to search ...

Suppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.

Recorded at

2015-05-14 18:21:09 UTC

Try with cURL

Request URL

GET /search/repositories?q=tetris+language:assembly&sort=stars&order=desc      

Query Parameters

order: desc
sort: stars
q: tetris language:assembly
      

Request Headers

content-type: application/json
accept: application/vnd.github.v3+json
user-agent: curl/7.37.1
      

Response Headers

transfer-encoding: chunked
x-served-by: 139317cebd6caf9cd03889139437f00b
vary: Accept-Encoding
x-content-type-options: nosniff
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-github-request-id: 68EC8CA8:2CC1:55D91A0:5554E795
access-control-allow-origin: *
access-control-expose-headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
access-control-allow-credentials: true
content-security-policy: default-src 'none'
x-frame-options: deny
x-xss-protection: 1; mode=block
link: <https://api.github.com/search/repositories?q=tetris+language%3Aassembly&sort=stars&order=desc&page=2>; rel="next", <https://api.github.com/search/repositories?q=tetris+language%3Aassembly&sort=stars&order=desc&page=8>; rel="last"
x-github-media-type: github.v3; format=json
cache-control: no-cache
x-ratelimit-reset: 1431627718
x-ratelimit-remaining: 8
x-ratelimit-limit: 10
status: 200 OK
connection: close
content-length: 164411
content-type: application/json; charset=utf-8
date: Thu, 14 May 2015 18:21:09 GMT
server: GitHub.com
      

Response Body

Shortened for readability

{
  "total_count": 219,
  "incomplete_results": false,
  "items": [
    {
      "id": 21095601,
      "name": "Tetris-Duel",
      "full_name": "Tetris-Duel-Team/Tetris-Duel",
      "owner": {
        "login": "Tetris-Duel-Team",
        "id": 7956696,
        "avatar_url": "https://avatars.githubusercontent.com/u/7956696?v=3",
        "gravatar_id": "",
        "url": "https://api.github.com/users/Tetris-Duel-Team",
        "html_url": "https://github.com/Tetris-Duel-Team",
        "followers_url": "https://api.github.com/users/Tetris-Duel-Team/followers",
        "following_url": "https://api.github.com/users/Tetris-Duel-Team/following{/other_user}",
        "gists_url": "https://api.github.com/users/Tetris-Duel-Team/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/Tetris-Duel-Team/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/Tetris-Duel-Team/subscriptions",
        "organizations_url": "https://api.github.com/users/Tetris-Duel-Team/orgs",
        "repos_url": "https://api.github.com/users/Tetris-Duel-Team/repos",
        "events_url": "https://api.github.com/users/Tetris-Duel-Team/events{/privacy}",
        "received_events_url": "https://api.github.com/users/Tetris-Duel-Team/received_events",
        "type": "Organization",
        "site_admin": false
      },
      "private": false,
      "html_url": "https://github.com/Tetris-Duel-Team/Tetris-Duel",
      "description": "Multiplayer Tetris for Raspberry Pi (in bare metal assembly)",
      "fork": false,
      "url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel",
      "forks_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/forks",
      "keys_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/teams",
      "hooks_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/hooks",
      "issue_events_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/issues/events{/number}",
      "events_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/events",
      "assignees_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/assignees{/user}",
      "branches_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/branches{/branch}",
      "tags_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/tags",
      "blobs_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/languages",
      "stargazers_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/stargazers",
      "contributors_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/contributors",
      "subscribers_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/subscribers",
      "subscription_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/subscription",
      "commits_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/contents/{+path}",
      "compare_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/merges",
      "archive_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/downloads",
      "issues_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/issues{/number}",
      "pulls_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/labels{/name}",
      "releases_url": "https://api.github.com/repos/Tetris-Duel-Team/Tetris-Duel/releases{/id}",
      "created_at": "2014-06-22T14:23:25Z",
      "updated_at": "2015-05-10T17:03:23Z",
      "pushed_at": "2014-07-12T22:13:16Z",
      "git_url": "git://github.com/Tetris-Duel-Team/Tetris-Duel.git",
      "ssh_url": "git@github.com:Tetris-Duel-Team/Tetris-Duel.git",
      "clone_url": "https://github.com/Tetris-Duel-Team/Tetris-Duel.git",
      "svn_url": "https://github.com/Tetris-Duel-Team/Tetris-Duel",
      "homepage": "",
      "size": 11373,
      "stargazers_count": 41,
      "watchers_count": 41,
      "language": "Assembly",
      "has_issues": true,
      "has_downloads": true,
      "has_wiki": true,
      "has_pages": false,
      "forks_count": 6,
      "mirror_url": null,
      "open_issues_count": 0,
      "forks": 6,
      "open_issues": 0,
      "watchers": 41,
      "default_branch": "master",
      "score": 19.600664
    },
    {
      "id": 8688362,
      "name": "Nand2Tetris",
      "full_name": "havivha/Nand2Tetris",
      "owner": {
        "login": "havivha",
        "id": 2629901,
        "avatar_url": "https://avatars.githubusercontent.com/u/2629901?v=3",
        "gravatar_id": "",
        "url": "https://api.github.com/users/havivha",
        "html_url": "https://github.com/havivha",
        "followers_url": "https://api.github.com/users/havivha/followers",
        "following_url": "https://api.github.com/users/havivha/following{/other_user}",
        "gists_url": "https://api.github.com/users/havivha/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/havivha/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/havivha/subscriptions",
        "organizations_url": "https://api.github.com/users/havivha/orgs",
        "repos_url": "https://api.github.com/users/havivha/repos",
        "events_url": "https://api.github.com/users/havivha/events{/privacy}",
        "received_events_url": "https://api.github.com/users/havivha/received_events",
        "type": "User",
        "site_admin": false
      },
      "private": false,
      "html_url": "https://github.com/havivha/Nand2Tetris",
      "description": "Computer implementation as described in \"The Elements of Computing Systems\"",
      "fork": false,
      "url": "https://api.github.com/repos/havivha/Nand2Tetris",
      "forks_url": "https://api.github.com/repos/havivha/Nand2Tetris/forks",
      "keys_url": "https://api.github.com/repos/havivha/Nand2Tetris/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/havivha/Nand2Tetris/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/havivha/Nand2Tetris/teams",
      "hooks_url": "https://api.github.com/repos/havivha/Nand2Tetris/hooks",
      "issue_events_url": "https://api.github.com/repos/havivha/Nand2Tetris/issues/events{/number}",
      "events_url": "https://api.github.com/repos/havivha/Nand2Tetris/events",
      "assignees_url": "https://api.github.com/repos/havivha/Nand2Tetris/assignees{/user}",
      "branches_url": "https://api.github.com/repos/havivha/Nand2Tetris/branches{/branch}",
      "tags_url": "https://api.github.com/repos/havivha/Nand2Tetris/tags",
      "blobs_url": "https://api.github.com/repos/havivha/Nand2Tetris/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/havivha/Nand2Tetris/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/havivha/Nand2Tetris/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/havivha/Nand2Tetris/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/havivha/Nand2Tetris/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/havivha/Nand2Tetris/languages",
      "stargazers_url": "https://api.github.com/repos/havivha/Nand2Tetris/stargazers",
      "contributors_url": "https://api.github.com/repos/havivha/Nand2Tetris/contributors",
      "subscribers_url": "https://api.github.com/repos/havivha/Nand2Tetris/subscribers",
      "subscription_url": "https://api.github.com/repos/havivha/Nand2Tetris/subscription",
      "commits_url": "https://api.github.com/repos/havivha/Nand2Tetris/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/havivha/Nand2Tetris/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/havivha/Nand2Tetris/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/havivha/Nand2Tetris/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/havivha/Nand2Tetris/contents/{+path}",
      "compare_url": "https://api.github.com/repos/havivha/Nand2Tetris/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/havivha/Nand2Tetris/merges",
      "archive_url": "https://api.github.com/repos/havivha/Nand2Tetris/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/havivha/Nand2Tetris/downloads",
      "issues_url": "https://api.github.com/repos/havivha/Nand2Tetris/issues{/number}",
      "pulls_url": "https://api.github.com/repos/havivha/Nand2Tetris/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/havivha/Nand2Tetris/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/havivha/Nand2Tetris/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/havivha/Nand2Tetris/labels{/name}",
      "releases_url": "https://api.github.com/repos/havivha/Nand2Tetris/releases{/id}",
      "created_at": "2013-03-10T17:04:20Z",
      "updated_at": "2015-05-12T02:07:32Z",
      "pushed_at": "2012-12-16T21:45:22Z",
      "git_url": "git://github.com/havivha/Nand2Tetris.git",
      "ssh_url": "git@github.com:havivha/Nand2Tetris.git",
      "clone_url": "https://github.com/havivha/Nand2Tetris.git",
      "svn_url": "https://github.com/havivha/Nand2Tetris",
      "homepage": null,
      "size": 350,
      "stargazers_count": 15,
      "watchers_count": 15,
      "language": "Assembly",
      "has_issues": false,
      "has_downloads": true,
      "has_wiki": true,
      "has_pages": false,
      "forks_count": 9,
      "mirror_url": null,
      "open_issues_count": 0,
      "forks": 9,
      "open_issues": 0,
      "watchers": 15,
      "default_branch": "master",
      "score": 13.032283
    }
  ]
}