PeumeAPI

Developer & public data · GitHub

Files of a GitHub repository

Read files from a public GitHub repository, one file or every file under a folder, with path, size, language and text.

$0.0005 per lookup, only when foundUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/files-of-a-github-repository \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "max_chars": 100000,
    "max_files": 50,
    "path": "example/__init__.py",
    "ref": "main",
    "url": "https://github.com/unclecode/example/blob/main/README.md"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: files-of-a-github-repository.

Parameters

max_charsinteger

cuts each file's text at this many characters; default 100000

Example: 100000

max_filesinteger

caps the files read from a folder; default 50

Example: 50

pathstring

replaces the URL's path

Example: example/__init__.py

refstring

replaces the URL's branch, tag or commit

Example: main

urlRequiredstring

a github.com /blob/ or /tree/ URL, a raw URL, or owner/name for the root folder

Example: https://github.com/unclecode/example/blob/main/README.md

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.