{"uid":"cap_OGUAuGzMMXeM8cz7mIwhA","slug":"greeneris-data-npm-package-lookup-2d75d0a6","name":"greeneris-data NPM Package Lookup","description":"One merged call instead of two: latest-version metadata from the official npm registry plus last-week download count from api.npmjs.org (both live). Query: ?pkg=react (scoped names like @scope/name accepted). Returns version, license, deps_count + dependency names, engines, weekly_downloads. No personal maintainer data. 1h cache.","url":"https://data.greeneris.io/v1/npm/package","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["pkg"],"properties":{"pkg":{"type":"string","description":"npm package name, e.g. react or @types/node"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"source":"npm registry + api.npmjs.org downloads (live)","engines":{"node":">=0.10.0"},"license":"MIT","package":"react","version":"19.2.7","homepage":"https://react.dev/","deps_count":0,"description":"React is a JavaScript library for building user interfaces.","dependencies":[],"downloads_period":{"end":"2026-07-11","start":"2026-07-05"},"weekly_downloads":153316909}},"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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KfGTJZXt3TIdN6SyWD3M4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches live npm registry metadata and weekly download statistics for any npm package by name","exampleAgentPrompt":"Can you look up the npm package details for 'react' — I want to know the latest version, weekly downloads, license, and its dependencies?","exampleUseCases":[{"title":"Evaluate third-party library before adoption","prompt":"I'm thinking about adding the 'lodash' package to our project. Can you check what the latest version is, how many weekly downloads it gets, what license it uses, and what dependencies it would bring in?"},{"title":"Audit JavaScript dependencies for compliance","prompt":"We need to make sure all our dependencies are using permissive licenses. Can you pull the metadata for 'express', 'axios', and 'webpack' so I can see what license each one uses and whether they're actively maintained?"},{"title":"Check package popularity and stability","prompt":"Our team is deciding between 'mocha' and 'jest' for testing. Can you get me the weekly download stats, latest versions, and Node.js engine requirements for both so we can see which one is more widely used?"}],"resultDescription":"Returns a JSON object with the package name, latest version, license, description, homepage, list of dependencies, dependency count, Node.js engine requirements, and weekly download count with the download period start/end dates — all sourced live from the npm registry and api.npmjs.org.","failureModes":["Package not found on npm registry — returns an error or empty result","Invalid or misspelled package name — no match returned","npm registry temporarily unavailable — upstream timeout or error","Payment not made — HTTP 402 returned with machine-readable quote before data is served"],"whenToPreferThis":"Use this endpoint when you need live, authoritative npm package metadata including download statistics, license, version, and dependency count. Prefer this over scraping npm.js.org directly or using stale cached data. Particularly useful for AI agents performing due diligence on JavaScript dependencies, auditing open-source licenses, or checking package popularity before recommending a library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:45:22.187Z","isFirstParty":false}