{"uid":"cap_brOxR0o0NFlAyN2rdKSZU","slug":"npm-package-info-api-c1f2793d","name":"NPM Package Info API","description":"Exact EVM address, calldata, Uniswap V2/V3 and impermanent-loss math. Pay per call in USDC on Base via x402.","url":"https://golf-evm-math.x402-evm-math.workers.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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"flags":[],"exists":true,"verdict":"ok","latestVersion":"4.17.21"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Sdzdvv6lPMUuRAM3L9e7Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up package metadata (version, age, license, deprecation, downloads, vulnerabilities) for npm, PyPI, and Cargo packages before installation.","exampleAgentPrompt":"Before I install it, can you check whether the npm package 'lodash' is safe — look up its latest version, license, weekly downloads, and any known vulnerabilities?","exampleUseCases":[{"title":"Security audit before dependency install","prompt":"I'm about to add 'requests' to my Python project — can you check the PyPI registry for its latest version, license, whether it's deprecated, and if there are any known OSV vulnerabilities?"},{"title":"Check npm package health for code review","prompt":"We're reviewing a PR that adds 'moment' as an npm dependency — can you pull its weekly downloads, latest version, deprecation status, and any security flags so we can decide whether to approve it?"},{"title":"Verify Cargo crate before Rust project adoption","prompt":"Can you look up the 'serde' crate on Cargo and tell me its latest version, how old it is, its license, and whether it has any known vulnerabilities?"}],"resultDescription":"Returns a JSON object with: exists (boolean), verdict (e.g. 'ok'), latestVersion, package age, license, deprecation status, weekly downloads, OSV vulnerability list, and any flags (e.g. warnings about security or maintenance issues).","failureModes":["Package not found in the specified registry — returns exists: false","Invalid or missing package name query parameter — returns error","Registry-specific lookup failure or timeout — upstream error","Unsupported registry type — may return error or empty result","Rate limit or payment failure — 402 response requiring USDC payment"],"whenToPreferThis":"Use this endpoint when you need a single unified API to check package safety across npm, PyPI, and Cargo before installation — especially when you want vulnerability data (OSV), deprecation status, and download health in one call rather than querying each registry individually.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:02:25.000Z","isFirstParty":false,"canonicalSlug":"npm-package-info-api-c1f2793d"}