Call it
curl https://api.peume.com/v1/call/issues-of-a-github-repository \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"labels": "bug",
"limit": 10,
"page": 1,
"pull_requests": false,
"repo": "unclecode/example",
"sort": "created"
}
}'const res = await fetch("https://api.peume.com/v1/call/issues-of-a-github-repository", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"labels": "bug",
"limit": 10,
"page": 1,
"pull_requests": false,
"repo": "unclecode/example",
"sort": "created"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/issues-of-a-github-repository",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"labels": "bug",
"limit": 10,
"page": 1,
"pull_requests": False,
"repo": "unclecode/example",
"sort": "created"
}
},
)
print(res.json()["output"])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: issues-of-a-github-repository.
Parameters
labelsstringa comma list every issue must carry
Example: bug
limitintegerdefault 30
Example: 10
pageintegerdefault 1
Example: 1
pull_requestsbooleantrue keeps the pull requests GitHub lists among issues; false drops them, so a page can give fewer rows than `limit`; default false
Example: false
repoRequiredstringowner/name or the repository URL
Example: unclecode/example
sortstringcreated, updated or comments, newest or most first; default created
Example: created
statestringopen, closed or all; default open
Example: open
