# GitHub — Repositories

Get GitHub User Repositories data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by ScrapeCreators, pass parameters such as direction, handle, sort, and retrieve structured data including repository identifier, owner and repository name, primary programming language, star count, and archive indicator to build developer project lists, compare repository metadata, and browse sorted results.

Documentation: https://openany.si/github/github-scrapecreators-repositories-5a4d9d57/8a92afaf-14db-401f-84ee-59f7a55228c4/
API ID: 8a92afaf-14db-401f-84ee-59f7a55228c4
Provider: scrapecreators
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/user/repositories
Page update time: 2026-12-03T02:38:07.899Z
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:06.999Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## GitHub User Repositories API

Provide handle or a GitHub profile URL, then optionally type, sort, direction and cursor in the query string. repositories contains public project metadata and cursor is the returned continuation value.

## What You Can Build

- **Build developer project lists**: Collect repository identities and descriptions for a user.
- **Compare repository metadata**: Review language, stars and archive status.
- **Browse sorted results**: Retain filters while following the next-page cursor.

## Returned Data

| Field | Meaning |
| --- | --- |
| `repositories[].id` | Repository identifier |
| `repositories[].full_name` | Owner and repository name |
| `repositories[].language` | Primary programming language |
| `repositories[].stars_count` | Star count |
| `repositories[].archived` | Archive indicator |
| `repositories[].license.spdx_id` | License identifier reported by the source |
| `cursor` | Next-page cursor |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GitHub — Repositories 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": {
        "handle": {
          "type": "string",
          "description": "GitHub username/handle of the user you want the repositories for"
        },
        "url": {
          "type": "string",
          "description": "GitHub user URL, e.g. https://github.com/kentcdodds."
        },
        "type": {
          "type": "string",
          "description": "Repository type. Defaults to owner. GitHub also supports all and member.",
          "enum": [
            "owner",
            "all",
            "member"
          ]
        },
        "sort": {
          "type": "string",
          "description": "Sort by created, updated, pushed, or full_name. Defaults to updated.",
          "enum": [
            "created",
            "updated",
            "pushed",
            "full_name"
          ]
        },
        "direction": {
          "type": "string",
          "description": "Sort direction: ascending or descending.",
          "enum": [
            "asc",
            "desc"
          ]
        },
        "cursor": {
          "type": "number",
          "description": "Cursor from the previous response. Defaults to 1."
        }
      }
    },
    "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"
    },
    "cursor": {
      "type": "integer"
    },
    "repositories": {
      "type": "array",
      "items": {
        "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": {
              "type": "string"
            }
          },
          "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/user/repositories?direction=desc&handle=torvalds&sort=updated&type=owner' \
  -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": 49997684739,
  "cursor": 2,
  "repositories": [
    {
      "archived": false,
      "created_at": "2020-12-10T21:24:32Z",
      "default_branch": "main",
      "description": "My personal website",
      "disabled": false,
      "fork": false,
      "forks_count": 654,
      "full_name": "kentcdodds/kentcdodds.com",
      "homepage": "https://kentcdodds.com",
      "id": 320393623,
      "language": "MDX",
      "license": {
        "key": "other",
        "name": "Other",
        "spdx_id": "NOASSERTION"
      },
      "name": "kentcdodds.com",
      "node_id": "MDEwOlJlcG9zaXRvcnkzMjAzOTM2MjM=",
      "open_issues_count": 4,
      "owner": {
        "avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=4",
        "id": 1500684,
        "login": "kentcdodds",
        "type": "User",
        "url": "https://github.com/kentcdodds"
      },
      "private": false,
      "pushed_at": "2026-05-20T20:16:24Z",
      "size": 53677,
      "stars_count": 2485,
      "topics": [
        "kentcdodds"
      ],
      "updated_at": "2026-05-21T16:43:37Z",
      "url": "https://github.com/kentcdodds/kentcdodds.com",
      "visibility": "public",
      "watchers_count": 2485
    }
  ],
  "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
### Which repository types are supported?
type accepts owner, all or member. The documented default is owner.

### Which sort options can I choose?
sort accepts created, updated, pushed or full_name, paired with direction asc or desc.

### How do I paginate?
Pass the returned cursor as the numeric cursor query parameter, retaining the same account, type and ordering.

### Should I calculate the next page myself?
Use the returned cursor rather than assuming that incrementing a page number always reproduces source continuation.

### Does this return source files or commits?
No. It lists repository metadata; source files and commit history require separate operations.

### Does type=all grant private-repository access?
No. A repository-type selector is not an authorization grant, and this contract has no buyer GitHub credential field.

## Available implementations
- scrapecreators: https://openany.si/github/github-scrapecreators-repositories-5a4d9d57/8a92afaf-14db-401f-84ee-59f7a55228c4/

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