AgentAPIGate
Back to Catalog
GET /v1/registry/pypi/packagePack: intel·MCP Tool: registry_pypi_package

PyPI Python Package Metadata

Fetch official Python package metadata from PyPI including latest version, summary, author, Python version constraint, dependencies, and project URLs.

API Key Price:$0.0005 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
PyPI distribution name (e.g. "fastapi", "pydantic", "httpx")
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/registry/pypi/package" \
  --data-urlencode "package_name=fastapi" \
  --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)
-99% tokens
# PyPI Python Package Metadata (`registry.pypi.package`)
**name**: fastapi · **version**: 0.165.0 · **summary**: FastAPI framework, high performance, easy to learn, fast to code, ready for production · **requires_python**: >=3.11 · **project_url**: https://pypi.org/project/fastapi/

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: registry.pypi.package · Method: GET
ParameterTypeReqSample / DefaultDescription
package_namestringrequiredfastapiPyPI distribution name (e.g. "fastapi", "pydantic", "httpx")
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.0005 / call$0/mo · Balance never expires
Remote MCP Toolregistry_pypi_packageOAuth 2.1 Hub & /mcp/intel
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency44 ms$0 billed on empty or 4xx/5xx
Token Economy9013t → 75t (-99%)Partner credit: eligible

More registry.pypi Sibling Endpoints

Frequently Asked Questions

How do I call PyPI Python Package Metadata (registry.pypi.package) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/registry/pypi/package with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool registry_pypi_package on https://mcp.agentapigate.ai/mcp.

What does registry.pypi.package cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.0005 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 registry.pypi.package?

Passing ?format=md transforms the response into normalized Markdown (~75 tokens vs ~9013 raw tokens, saving 99% 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: ["registry.pypi.package"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.