> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Repositories API

> GitHub repositories with full name, description, URL, homepage and owner. Search by keyword.

`POST /v1/data/github/repositories/run`

**Pricing:** $0.0015 per repositorie ($1.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**query** `string` *required*

Search Query.

**sort** `string` (default: best-match)

Sort to use. Best match by default.

Allowed values: `best-match` (Best match), `stars` (Stars), `forks` (Forks), `updated` (Recently updated).

**order** `string` (default: desc)

Order to use. Descending by default.

Allowed values: `desc` (Descending), `asc` (Ascending).

**maxResults** `integer` (default: 100)

How many repositories to return in total. Defaults to 100; use 0 for all.

Max `1000`.

**language** `string`

Only repositories whose main language is this, e.g. python, typescript, go, rust. Leave empty for all languages.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/github/repositories/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "query": "language:rust stars:>50000",
    "sort": "stars",
    "order": "desc",
    "maxResults": 10
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/github/repositories/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "query": "language:rust stars:>50000",
    "sort": "stars",
    "order": "desc",
    "maxResults": 10
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/github/repositories/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "query": "language:rust stars:>50000",
  "sort": "stars",
  "order": "desc",
  "maxResults": 10
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one repositorie, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `repoId` | Repo ID | text |
| `fullName` | Full Name | text |
| `name` | Name | text |
| `description` | Description | text |
| `url` | URL | url |
| `homepage` | Homepage | url |
| `owner` | Owner | text |
| `ownerType` | Owner Type | text |
| `stars` | Stars | number |
| `forks` | Forks | number |
| `openIssues` | Open Issues | number |
| `language` | Language | text |
| `topics` | Topics | array |
| `license` | License | text |
| `defaultBranch` | Default Branch | text |
| `sizeKb` | Size Kb | number |
| `isFork` | Is Fork | boolean |
| `isArchived` | Is Archived | boolean |
| `createdAt` | Created At | datetime |
| `updatedAt` | Updated At | datetime |
| `pushedAt` | Pushed At | datetime |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "github/repositories",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "topics": [],
      "defaultBranch": "main",
      "name": "claw-code",
      "repoId": "1197021090",
      "pushedAt": "2026-10-28T19:59:24Z",
      "language": "Rust",
      "sizeKb": 26811,
      "stars": 194992,
      "homepage": null,
      "description": "An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.",
      "url": "https://github.com/ultraworkers/claw-code",
      "openIssues": 1,
      "fullName": "ultraworkers/claw-code",
      "owner": "ultraworkers",
      "forks": 107608,
      "updatedAt": "2026-11-01T11:10:54Z",
      "isArchived": false,
      "license": "MIT",
      "ownerType": "Organization",
      "isFork": false,
      "createdAt": "2026-03-31T08:58:08Z"
    }
  ]
}
```

## Related APIs

For what is trending now use [`github/repositories-trending`](https://docs.mindcase.co/apis/github/repositories-trending).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.