Call it
curl https://api.peume.com/v1/call/github-user-pull-requests-by-username \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"handle": "torvalds",
"since": "2024-01-01",
"until": "2024-12-31",
"cursor": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/github-user-pull-requests-by-username", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"handle": "torvalds",
"since": "2024-01-01",
"until": "2024-12-31",
"cursor": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/github-user-pull-requests-by-username",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"handle": "torvalds",
"since": "2024-01-01",
"until": "2024-12-31",
"cursor": 1
}
},
)
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: github-user-pull-requests-by-username.
Parameters
handleRequiredstringGitHub username/handle of the user you want pull requests for
Example: torvalds
sincestringOnly return pull requests created on or after this date. Use YYYY-MM-DD.
Example: 2024-01-01
untilstringOnly return pull requests created on or before this date. Use YYYY-MM-DD.
Example: 2024-12-31
cursornumberCursor from the previous response. Defaults to 1.
Example: 1
