# GitHub — Repository

Get GitHub Repository data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by ScrapeCreators, pass parameters such as url, and retrieve structured data including repository identifier, owner and repository name, primary programming language, star count, and fork count to enrich project directories, prepare technical comparisons, and link to deeper inspection.

Documentation: https://openany.si/github/github-scrapecreators-repository/1ea37744-75cf-4559-a6e2-96ac895b6801/
API ID: 1ea37744-75cf-4559-a6e2-96ac895b6801
Provider: scrapecreators
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/repository
Page update time: 2026-12-03T02:38:07.755Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:38:05.073Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## GitHub Repository API

Send a repository URL in the url query parameter. The repository object includes owner identity, project metadata, timestamps and status flags, with nullable or source-specific license information.

## What You Can Build

- **Enrich project directories**: Attach source metadata to a repository URL.
- **Prepare technical comparisons**: Compare language, license indicators and archive status.
- **Link to deeper inspection**: Use the source URL for separate code review.

## Returned Data

| Field | Meaning |
| --- | --- |
| `repository.id` | Repository identifier |
| `repository.full_name` | Owner and repository name |
| `repository.language` | Primary programming language |
| `repository.stars_count` | Star count |
| `repository.forks_count` | Fork count |
| `repository.license.spdx_id` | License identifier reported by the source |
| `repository.archived` | Archive indicator |
| `repository.default_branch` | Default branch name |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GitHub — Repository request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "GitHub repository URL"
        }
      },
      "required": [
        "url"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "repository": {
      "type": "object",
      "properties": {
        "archived": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string"
        },
        "default_branch": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "disabled": {
          "type": "boolean"
        },
        "fork": {
          "type": "boolean"
        },
        "forks_count": {
          "type": "integer"
        },
        "full_name": {
          "type": "string"
        },
        "homepage": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "language": {
          "type": "string"
        },
        "license": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "spdx_id": {
              "type": "string"
            }
          }
        },
        "name": {
          "type": "string"
        },
        "node_id": {
          "type": "string"
        },
        "open_issues_count": {
          "type": "integer"
        },
        "owner": {
          "type": "object",
          "properties": {
            "avatar_url": {
              "type": "string"
            },
            "id": {
              "type": "integer"
            },
            "login": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "private": {
          "type": "boolean"
        },
        "pushed_at": {
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "stars_count": {
          "type": "integer"
        },
        "topics": {
          "type": "array",
          "items": {}
        },
        "updated_at": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "visibility": {
          "type": "string"
        },
        "watchers_count": {
          "type": "integer"
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/repository?url=https%3A%2F%2Fgithub.com%2Ftorvalds%2Flinux' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "credits_charged": 1,
  "credits_remaining": 49997684249,
  "repository": {
    "archived": false,
    "created_at": "2011-09-04T22:48:12Z",
    "default_branch": "master",
    "description": "Linux kernel source tree",
    "disabled": false,
    "fork": false,
    "forks_count": 62423,
    "full_name": "torvalds/linux",
    "homepage": "",
    "id": 2325298,
    "language": "C",
    "license": {
      "key": "other",
      "name": "Other",
      "spdx_id": "NOASSERTION"
    },
    "name": "linux",
    "node_id": "MDEwOlJlcG9zaXRvcnkyMzI1Mjk4",
    "open_issues_count": 3,
    "owner": {
      "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
      "id": 1024025,
      "login": "torvalds",
      "type": "User",
      "url": "https://github.com/torvalds"
    },
    "private": false,
    "pushed_at": "2026-05-21T16:23:10Z",
    "size": 6298741,
    "stars_count": 233979,
    "topics": [],
    "updated_at": "2026-05-21T19:31:40Z",
    "url": "https://github.com/torvalds/linux",
    "visibility": "public",
    "watchers_count": 233979
  },
  "success": true
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Should url be a profile or repository URL?
Use a repository URL such as https://github.com/torvalds/linux, not a user profile URL.

### Does this return source code?
It returns repository metadata; source files, patches and commit histories require separate retrieval.

### Does an SPDX value of NOASSERTION grant a license?
No. It indicates no asserted SPDX license identifier; inspect the repository license before relying on usage rights.

### Are stars a security or quality score?
No. Stars and forks are source engagement counts, not a technical assessment.

### Can I look up private repositories?
This public-metadata operation does not expose a buyer GitHub credential for private repository access.

### Can the response change later?
Yes. Counts, timestamps and status flags reflect returned source data; retain retrieval context when comparing snapshots.

## Available implementations
- scrapecreators: https://openany.si/github/github-scrapecreators-repository/1ea37744-75cf-4559-a6e2-96ac895b6801/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
