{"uid":"cap_CAfWKqwF_4FoijADrrMlF","slug":"pypi-package-info-api-x402-forgemesh-io-3a7de2dd","name":"PyPI Package Info API (x402.forgemesh.io)","description":"PyPI package info API: latest version, one-line summary, license, requires-python constraint, declared dependencies, yank status, and homepage for any Python package — normalized to the fields that matter (the raw index response is 100x larger). Pre-install hygiene for Python coding agents. Cached 1 hour.","url":"https://x402.forgemesh.io/pypi-package-info","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"package":{"type":"string","description":"package name, e.g. requests"}}},"responseSchema":{"type":"json","example":{"data":{"name":"requests","summary":"Python HTTP for Humans.","version":"2.32.3","requires_python":">=3.8"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WHElCq5P1D_B0oxU7DyTP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns normalized PyPI metadata for any Python package — latest version, summary, license, Python requirement, dependencies, yank status, and homepage — cached 1 hour.","exampleAgentPrompt":"Before I install it, can you pull the PyPI info for 'httpx' — I need the latest version, license, Python version requirement, and whether it's been yanked?","exampleUseCases":null,"resultDescription":"A normalized JSON object containing the package's latest version string, one-line description/summary, license identifier, requires-python constraint (e.g. '>=3.8'), list of declared dependencies, yank status (boolean or reason), and homepage URL — stripped of the 100x larger raw PyPI index noise.","failureModes":["Package name not found on PyPI — returns 404 or error indicating unknown package","Misspelled or non-existent package name yields no results","Yanked package may return limited metadata depending on PyPI index state","Cached response up to 1 hour old may not reflect a package published in the last hour","Network or upstream PyPI API outage causes service unavailability"],"whenToPreferThis":"Use this endpoint when an AI coding agent needs quick, normalized pre-install hygiene checks on a Python package — especially when the raw PyPI JSON API response is too verbose to parse efficiently. Ideal for dependency vetting workflows, automated code generation agents, or any pipeline that needs to verify version, license compatibility, Python version support, or yank status before recommending or installing a package.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:00:52.885Z","isFirstParty":false}