{"uid":"cap_3KjQ0LcUVw-k8fI6obymh","slug":"codepulse-api-npm-registry-lookup-27c3f9c6","name":"CodePulse API – NPM Registry Lookup","description":"Retrieves version history, dependencies, and author details from the official NPM registry.","url":"https://codepulse-api.hahavoid0.workers.dev/registry/npm","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["package"],"properties":{"package":{"type":"string","description":"NPM package name"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"version":"4.0.0","description":"Hono framework"},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TxMYFYmyh-rjBnarOqRQc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up an NPM package by name and returns its current version, description, and registry support status with a confidence rating.","exampleAgentPrompt":"Look up the npm registry entry for the 'hono' package and tell me its current version and description.","exampleUseCases":[{"title":"Check latest framework version","prompt":"What is the current version of the 'express' package on npm and what does it do?"},{"title":"Verify package availability before install","prompt":"Is 'zod' available on the npm registry? If so, what version is it at right now?"},{"title":"Research unfamiliar dependency","prompt":"I see 'prisma' in a package.json — can you look it up on npm and give me a quick description of what it is and its latest version?"}],"resultDescription":"Returns a JSON object containing the package's current version, a short description, a boolean 'supported' flag indicating npm registry support, a confidence level (e.g. 'high'), and a data_as_of timestamp indicating when the data was last updated. Also includes any warnings and a disclaimer about informational use only.","failureModes":["Package not found on npm registry — returns unsupported or empty result","Misspelled package name yields no match or low-confidence result","Registry data may be slightly stale relative to the actual npm registry (data_as_of field indicates freshness)","Network or worker timeout on the upstream registry call","Payment failure via x402/USDC if wallet balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a quick, programmatic lookup of an npm package's current published version and description without needing to scrape npmjs.com yourself. It's ideal for agents that need to verify dependency versions, research unfamiliar packages, or enrich package.json analysis. At $0.005 USDC per call with no API key required, it suits pay-per-use agent workflows. Not suitable if you need full package metadata (dependencies, license tree, download stats) — use the npm registry API directly for that.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:43:30.450Z","isFirstParty":false}