AgentAPIGate
Back to Catalog
GET /v1/github/repo/pullsPack: intel·MCP Tool: github_repo_pulls

GitHub Repository Pull Requests List

Fetch open, closed, and merged pull requests for any public GitHub repository with PR numbers, titles, states, branch refs, authors, and merged_at timestamps.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
GitHub organization or username (e.g. modelcontextprotocol, honojs)
GitHub repository name (e.g. servers, hono)
Pull request state filter: all, open, or closed (default: all)
Maximum pull requests returned (1-30, default: 10)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/github/repo/pulls" \
  --data-urlencode "owner=modelcontextprotocol" \
  --data-urlencode "repo=servers" \
  --data-urlencode "state=all" \
  --data-urlencode "limit=10" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-97% tokens
# GitHub Repository Pull Requests List (`github.repo.pulls`)
**count**: 10

### 1. Item 1
- state=open
### 2. Item 2
- state=merged
### 3. Item 3
- state=merged
### 4. Item 4
- state=merged
### 5. Item 5
- state=merged
### 6. Item 6
- state=merged
### 7. Item 7
- state=merged
### 8. Item 8
- state=merged
### 9. Item 9
- state=merged
### 10. Item 10
- state=merged

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: github.repo.pulls · Method: GET
ParameterTypeReqSample / DefaultDescription
ownerstringrequiredmodelcontextprotocolGitHub organization or username (e.g. modelcontextprotocol, honojs)
repostringrequiredserversGitHub repository name (e.g. servers, hono)
statestringoptionalallPull request state filter: all, open, or closed (default: all)
limitnumberoptional10Maximum pull requests returned (1-30, default: 10)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolgithub_repo_pullsOAuth 2.1 Hub & /mcp/intel
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency293 ms$0 billed on empty or 4xx/5xx
Token Economy2448t → 93t (-97%)Partner credit: eligible

More github.repo Sibling Endpoints

Frequently Asked Questions

How do I call GitHub Repository Pull Requests List (github.repo.pulls) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/github/repo/pulls with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool github_repo_pulls on https://mcp.agentapigate.ai/mcp.

What does github.repo.pulls cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on github.repo.pulls?

Passing ?format=md transforms the response into normalized Markdown (~93 tokens vs ~2448 raw tokens, saving 97% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only intel endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["github.repo.pulls"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.