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

# Repositories

> Retrieves a user's public repositories with repo metadata like description, language, stars, forks, topics, license, visibility, default branch, and timestamps. Pass username, handle, or url. Supports pagination with cursor, plus GitHub's type, sort, and direction parameters.

### Query Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `handle` | `string` | No | GitHub username/handle of the user you want the repositories for |
| `url` | `string` | No | GitHub user URL, e.g. [https://github.com/kentcdodds](https://github.com/kentcdodds). |
| `type` | `string` | No | Repository type. Defaults to owner. GitHub also supports all and member. |
| `sort` | `string` | No | Sort by created, updated, pushed, or full\_name. Defaults to updated. |
| `direction` | `string` | No | Sort direction: ascending or descending. |
| `cursor` | `number` | No | Cursor from the previous response. Defaults to 1. |

### Response Example

```json theme={null}
{
  "success": true,
  "data": {
  "success": true,
  "repositories": [
    {
      "id": 320393623,
      "node_id": "MDEwOlJlcG9zaXRvcnkzMjAzOTM2MjM=",
      "name": "kentcdodds.com",
      "full_name": "kentcdodds/kentcdodds.com",
      "owner": {
        "id": 1500684,
        "login": "kentcdodds",
        "avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=4",
        "url": "https://github.com/kentcdodds",
        "type": "User"
      },
      "private": false,
      "url": "https://github.com/kentcdodds/kentcdodds.com",
      "description": "My personal website",
      "fork": false,
      "homepage": "https://kentcdodds.com",
      "language": "MDX",
      "forks_count": 654,
      "stars_count": 2485,
      "watchers_count": 2485,
      "size": 53677,
      "default_branch": "main",
      "open_issues_count": 4,
      "topics": [
        "kentcdodds"
      ],
      "license": {
        "key": "other",
        "name": "Other",
        "spdx_id": "NOASSERTION"
      },
      "archived": false,
      "disabled": false,
      "visibility": "public",
      "pushed_at": "2026-05-20T20:16:24Z",
      "created_at": "2020-12-10T21:24:32Z",
      "updated_at": "2026-05-21T16:43:37Z"
    }
  ],
  "cursor": 2
}
}
```


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