{"uid":"cap_Tk1nd0G84HC7-BMulloe8","slug":"package-metadata-lookup-npm-pypi-crates-5dfe109d","name":"Package Metadata Lookup (npm/PyPI/crates)","description":"X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.","url":"https://x402helper.xyz/89e509/dev/package?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["ecosystem","name"],"properties":{"name":{"type":"string","default":null,"description":"Package name (npm scoped @scope/name allowed)"},"ecosystem":{"enum":["npm","pypi","crates"],"type":"string","default":null,"description":"Package ecosystem (aliases: pip/python, cargo/rust, node)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_brZ84jeadM4BxBD1OhwF4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches metadata and details for a named software package from npm, PyPI, or crates.io ecosystems.","exampleAgentPrompt":"Can you look up the npm package @babel/core and give me its metadata?","exampleUseCases":[{"title":"Check npm package details","prompt":"What's the latest metadata for the npm package lodash? I want to see its description and version info."},{"title":"PyPI library research","prompt":"Look up the PyPI package 'requests' and tell me what you find about it."},{"title":"Rust crate dependency check","prompt":"Can you pull up the crates.io metadata for the 'serde' crate so I can review it before adding it as a dependency?"}],"resultDescription":"Returns a JSON object with a 'result' field containing package metadata (e.g., name, version, description, and other ecosystem-specific details) and a 'success' boolean indicating whether the lookup succeeded.","failureModes":["Package not found in the specified ecosystem — returns success:false or empty result","Invalid or unsupported ecosystem value — schema validation error","Missing required query parameters (ecosystem or name) — request rejected","Network timeout or upstream registry unavailable — server error response","Scoped package name malformed — lookup fails silently or returns error"],"whenToPreferThis":"Use this endpoint when you need quick, pay-per-call package metadata lookups across npm, PyPI, or crates.io without setting up API keys for each registry. Particularly useful for agents that need on-demand dependency information at low cost ($0.006 per call) via x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-07T06:47:04.548Z","isFirstParty":false,"canonicalSlug":"package-metadata-lookup-npm-pypi-crates-5dfe109d"}