{"uid":"cap_L_EY4JJF86IGRFVO0Vb-I","slug":"api-strale-io-bcbf7c27","name":"npm Package Metadata Lookup","description":"Fetch npm package metadata: version, dependencies, downloads, repository, license. Includes weekly download count.","url":"https://api.strale.io/x402/npm-package-info","method":"GET","headers":{},"bodySchema":{"type":"object","required":["package"],"properties":{"package":{"type":"string"}}},"responseSchema":{"name":{"type":"string"},"license":{"type":"string"},"dependencies":{"type":"array"},"latest_version":{"type":"string"},"weekly_downloads":{"type":"integer"}},"example":{"request":{"package":"lodash"},"response":{"name":"lodash","_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0x3d597d6c4b3877f40b31495c1e8c23bcbd9409d6f181da22be81f6144b56dccf"},"capability":"npm-package-info","latency_ms":103,"provenance":{"source":"registry.npmjs.org","fetched_at":"2026-06-16T01:23:57.818Z"}},"author":"John-David Dalton","created":"2012-04-23T16:37:11.912Z","license":"MIT","homepage":"https://lodash.com/","keywords":["modules","stdlib","util"],"dist_tags":{"latest":"4.18.1"},"repository":"git+https://github.com/lodash/lodash.git","description":"Lodash modular utilities.","dependencies":[],"last_modified":"2026-06-15T01:29:35.749Z","latest_version":"4.18.1","total_versions":117,"recent_versions":[{"version":"4.18.1","published":"2026-04-01T21:01:20.458Z"},{"version":"4.18.0","published":"2026-03-31T18:18:42.717Z"},{"version":"4.17.23","published":"2026-01-21T17:29:52.831Z"},{"version":"4.17.21","published":"2021-02-20T15:42:16.891Z"},{"version":"4.17.20","published":"2020-08-13T16:53:54.152Z"}],"dev_dependencies":[],"weekly_downloads":161341623}},"exampleRequest":{"package":"lodash"},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cg5-7jEslDQpBL-WD5RmJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches npm package metadata including version, dependencies, download counts, repository, and license information.","exampleAgentPrompt":"What's the current version, license, and weekly download count for the 'axios' npm package?","exampleUseCases":[{"title":"Audit project dependencies for security","prompt":"Can you check the versions, licenses, and weekly download counts for all the packages listed in our package.json file? I want to make sure we're not using any unmaintained or risky dependencies."},{"title":"Verify package compatibility before upgrade","prompt":"I'm thinking about updating lodash to the latest version. Can you grab the current version info, dependencies, and download stats so I can see if it's still actively maintained and widely used?"},{"title":"Research alternative packages quickly","prompt":"We're looking to replace our HTTP client library. Can you pull up the metadata for axios, node-fetch, and got so we can compare their versions, dependencies, licenses, and download popularity?"}],"resultDescription":"Returns structured metadata for the specified npm package: current version, list of dependencies, weekly download count, repository URL, and license type.","failureModes":["Package not found — returns error if the package name doesn't exist on npm","Invalid or missing package query parameter — returns validation error","npm registry unavailable — upstream timeout or error","Rate limiting or payment failure — 402 payment required if funds are insufficient"],"whenToPreferThis":"Use this endpoint when you need quick, structured npm package metadata — version, license, dependencies, and download stats — without scraping the npm website or authenticating with the npm registry directly. Ideal for agent workflows that need to vet or audit JavaScript dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:53.944Z","isFirstParty":false}