{"uid":"cap_xFvuQ4L2lh-46zUWFJ9Wb","slug":"npm-package-facts-lookup-42fe09be","name":"npm Package Facts Lookup","description":"npm package facts: latest version, license, weekly downloads, deps, types, deprecation — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/research/npm-package?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"name":{"type":"string","description":"required: e.g. viem or @coinbase/x402"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"npm-package","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.002,"receipt_id":"g402-<16hex>"},"sources":[{"ok":true,"name":"<source>"}],"limitations":"<text>","generated_at":"<iso time>","evidence_hash":"sha256:<64hex>"}},"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_3pqHOdFYgml4iJ4XCVLHH","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":"Returns key npm package metadata including latest version, license, weekly downloads, dependencies, TypeScript types availability, and deprecation status","exampleAgentPrompt":"What's the latest version of viem on npm, what license does it use, and is it deprecated?","exampleUseCases":[{"title":"Check package before adding dependency","prompt":"Before I add @coinbase/x402 to my project, can you pull its npm facts — latest version, license, weekly downloads, and whether it has TypeScript types?"},{"title":"Audit deprecated packages in project","prompt":"I want to know if the npm package moment is deprecated and what its current latest version is so I can decide whether to migrate."},{"title":"Compare package health metrics","prompt":"Look up the npm stats for react — I need the weekly download count, license, number of dependencies, and whether TypeScript types are included."}],"resultDescription":"Returns a structured object containing the package's latest published version, SPDX license identifier, weekly download count, list of direct dependencies, whether TypeScript type definitions are available (bundled or via @types), and whether the package has been deprecated (and the deprecation message if so).","failureModes":["Package name not found on npm registry — returns error or empty result","Scoped package names (e.g. @scope/pkg) must be passed exactly with the @ prefix or lookup may fail","Transient npm registry unavailability causing timeout","Misspelled package name returns no results"],"whenToPreferThis":"Use this endpoint when you need quick, structured facts about a specific npm package — version, license, downloads, deps, types, or deprecation — without scraping the npm website or calling the raw npm registry API yourself. Ideal for agent workflows that need to assess package health, license compatibility, or TypeScript support before recommending or installing a dependency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:53:57.880Z","isFirstParty":false,"canonicalSlug":"npm-package-facts-lookup-42fe09be"}