{"uid":"cap_rCnK2sHsUMFc--YRFS9eI","slug":"npm-registry-package-lookup-5f896ba6","name":"npm Registry Package Lookup","description":"Pay-per-call company registry, government, legal and B2B data tools for AI agents, from official registers and public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.","url":"https://api.companyrecords-api.workers.dev/api/gov/npm-registry?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":["name"],"properties":{"name":{"type":"string","description":"Exact npm package name, e.g. lodash or @scope/name (max 214 characters)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"lodash","source":"https://registry.npmjs.org/lodash/latest","license":"MIT","tarball":"https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz","homepage":"https://lodash.com/","checkedAt":"2026-10-23T09:37:21.512Z","repository":"git+https://github.com/lodash/lodash.git","description":"Lodash modular utilities.","latestVersion":"4.18.1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Yk2smWoXq9TTY1_mVejXZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches public metadata for a single npm package by exact name: latest version, license, description, homepage, repository, and tarball URL.","exampleAgentPrompt":"Can you look up the npm registry record for the 'axios' package and tell me its latest version, license, and GitHub repo URL?","exampleUseCases":[{"title":"Check open source license compliance","prompt":"What license does the 'lodash' npm package use? I need to verify it's MIT-compatible before adding it to our project."},{"title":"Find latest published package version","prompt":"What's the latest version of '@babel/core' on npm right now? I want to make sure our CI is pinning to the current release."},{"title":"Retrieve package repository for auditing","prompt":"Can you pull the npm registry record for 'express' and give me its GitHub repository URL and homepage so I can review the source?"}],"resultDescription":"A JSON object containing the package's name, latest version number, SPDX license identifier, short description, homepage URL, git repository URL, tarball download URL for the latest release, and the timestamp when the record was checked.","failureModes":["Package not found — returns an error if the exact package name does not exist on npm","Scoped package name must be URL-encoded or passed correctly (e.g. @scope/name)","Package name exceeds 214 characters — schema rejects overly long names","Network or upstream npm registry outage — may return a 5xx or timeout","Stale data — checkedAt timestamp may lag real-time npm registry state slightly"],"whenToPreferThis":"Use this endpoint when you need lightweight, read-only npm package metadata (version, license, homepage, repo) without downloading the tarball or pulling download statistics. Prefer it over scraping npmjs.com directly or calling the raw npm registry API when you want a structured, pay-per-call response with no auth setup. Not suitable if you need download counts, historical versions, all package versions, or package vulnerability data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:36:31.216Z","isFirstParty":false,"canonicalSlug":"npm-registry-package-lookup-5f896ba6"}