---
title: "Get Paper Repos"
method: GET
path: "/papers/{paper_id}/repos"
tags: ["papers"]
---

# Get Paper Repos

`GET /papers/{paper_id}/repos`

## Request

- Base URL: `https://api.codeofpaper.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.codeofpaper.com/papers/{paper_id}/repos`
- Auth: none declared

Get cached repositories for a paper.

Returns repositories that have been linked to this paper during caching,
along with their scores and metadata.

Args:
    paper_id: Paper ID (arXiv ID like "2301.12345")
    limit: Maximum number of repos to return

Returns:
    {
        "paper": {
            "id": "2301.12345",
            "title": "...",
            ...
        },
        "top_repos": [
            {
                "full_name": "author/repo",
                "html_url": "https://github.com/...",
                "description": "...",
                "stars": 1234,
                "forks": 56,
                "score": 0.92,
                "is_official": true,
                "metadata_scores": {...},
                "readme_summary": "...",
                "languages": {...},
                "topics": [...]
            }
        ],
        "source": "cache"
    }

## Path parameters

- `paper_id` string, required

## Query parameters

- `limit` integer: Maximum number of repos
- `include_possible` boolean: When true (default), include 'possible_match' tier repos alongside 'official' and 'high_confidence_community'. Set to false to only return confident matches.

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api.md) · [All operations](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/revisions/94ea47fd4aa1?raw)
