v43

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-0520621.8 MB

Get repositories by ID (GitHub node IDs or BountyLab IDs)

Fetch GitHub repositories by their IDs. Accepts both GitHub node IDs (e.g. MDEwOlJlcG9zaXRvcnkx) and BountyLab IDs (32-char hex). Returns a positional array matching input order (null for unmatched IDs). Supports batch requests (1-100). Credits: 1 per non-null result + graph credits.

post/raw/repos

Request body

githubIdsstring[] required

Array of IDs — GitHub node IDs (e.g. MDEwOlJlcG9zaXRvcnkx) or BountyLab IDs (32-char hex). Can be mixed.

Example request

{
  "githubIds": [
    "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
    "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4"
  ]
}

Response

Repositories retrieved successfully (positional)

countnumber required

Number of non-null repositories returned

Example response

{
  "repositories": [
    {
      "id": "9f0b8901cf1848298a60a60083b5aac0",
      "githubId": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
      "ownerLogin": "octocat",
      "name": "Hello-World",
      "description": "My first repository on GitHub!",
      "stargazerCount": 1500,
      "language": "JavaScript",
      "totalIssuesCount": 150,
      "totalIssuesOpen": 42,
      "totalIssuesClosed": 108,
      "readmePreview": "# Hello World\n\nThis is my first repository...",
      "lastContributorLocations": [
        "San Francisco, CA",
        "Berlin, Germany"
      ],
      "createdAt": "2011-01-26T19:01:12Z",
      "updatedAt": "2024-01-15T12:30:00Z",
      "embeddedAt": "2024-01-15T14:00:00Z",
      "score": 0.08,
      "owner": {
        "id": "9f0b8901cf1848298a60a60083b5aac0",
        "githubId": "MDQ6VXNlcjU4MzIzMQ==",
        "login": "octocat",
        "displayName": "The Octocat",
        "bio": "I build things for GitHub",
        "company": "GitHub",
        "location": "San Francisco, CA",
        "websiteUrl": "https://github.blog",
        "socialAccounts": [
          {
            "provider": "twitter",
            "url": "https://twitter.com/github"
          }
        ],
        "emails": [
          "***at@github.com",
          "***hn@gmail.com"
        ],
        "resolvedCountry": "United States",
        "resolvedState": "California",
        "resolvedCity": "San Francisco",
        "createdAt": "2011-01-25T18:44:36Z",
        "updatedAt": "2024-01-15T12:30:00Z",
        "embeddedAt": "2024-01-15T14:00:00Z",
        "score": 0.12
      },
      "contributors": {
        "edges": [
          {
            "id": "9f0b8901cf1848298a60a60083b5aac0",
            "githubId": "MDQ6VXNlcjU4MzIzMQ==",
            "login": "octocat",
            "displayName": "The Octocat",
            "bio": "I build things for GitHub",
            "company": "GitHub",
            "location": "San Francisco, CA",
            "websiteUrl": "https://github.blog",
            "socialAccounts": [
              {
                "provider": "twitter",
                "url": "https://twitter.com/github"
              }
            ],
            "emails": [
              "***at@github.com",
              "***hn@gmail.com"
            ],
            "resolvedCountry": "United States",
            "resolvedState": "California",
            "resolvedCity": "San Francisco",
            "createdAt": "2011-01-25T18:44:36Z",
            "updatedAt": "2024-01-15T12:30:00Z",
            "embeddedAt": "2024-01-15T14:00:00Z",
            "score": 0.12
          }
        ]
      },
      "starrers": {
        "edges": [
          {
            "id": "9f0b8901cf1848298a60a60083b5aac0",
            "githubId": "MDQ6VXNlcjU4MzIzMQ==",
            "login": "octocat",
            "displayName": "The Octocat",
            "bio": "I build things for GitHub",
            "company": "GitHub",
            "location": "San Francisco, CA",
            "websiteUrl": "https://github.blog",
            "socialAccounts": [
              {
                "provider": "twitter",
                "url": "https://twitter.com/github"
              }
            ],
            "emails": [
              "***at@github.com",
              "***hn@gmail.com"
            ],
            "resolvedCountry": "United States",
            "resolvedState": "California",
            "resolvedCity": "San Francisco",
            "createdAt": "2011-01-25T18:44:36Z",
            "updatedAt": "2024-01-15T12:30:00Z",
            "embeddedAt": "2024-01-15T14:00:00Z",
            "score": 0.12
          }
        ]
      }
    }
  ],
  "count": 2
}