---
title: "GET /github/user/repositories"
method: GET
path: "/github/user/repositories"
tags: ["Github"]
---

# GET /github/user/repositories

`GET /github/user/repositories`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/github/user/repositories`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `username` string, required
- `page` integer
- `per_page` integer
- `sort` 'created' | 'updated' | 'pushed' | 'full_name'
- `direction` 'asc' | 'desc'
- `type` 'all' | 'owner' | 'member'

## Response `200`

- string

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `404`: GitHub has no public resource at that address. For a repository this also covers a private or renamed repository, which is indistinguishable anonymously.
- `406`: GitHub has no JSON representation for this route, or rejected the request headers. Never charged.
- `422`: A parameter failed validation.
- `500`: GitHub returned a response shape this parser does not recognise. The incident has been reported; retrying will return the same result.
- `503`: The upstream service is temporarily unavailable. Please retry shortly.

---

[API](https://skmtc.dev/scrappa/apis/scrappa-api-documentation.md) · [All operations](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/revisions/1e1aa78ff103?raw)
