{"uid":"cap_nB-0rY9PnbsS25W0KrnHn","slug":"strale-npm-package-info-5ae578d1","name":"Strale NPM Package Info","description":"The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.","url":"https://api.strale.io/x402/v2/npm-package-info","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":["package"],"properties":{"package":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.054","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.054/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_f3y1d4DWvOHBws8gXpzig","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 metadata and details for a given npm package by name","exampleAgentPrompt":"Can you look up the npm package info for 'lodash' — I want to know its latest version, license, and who maintains it?","exampleUseCases":[{"title":"Checking library license compliance","prompt":"Can you pull the npm package details for 'axios' so I can see what license it uses? I need to confirm it's MIT before we include it in our project."},{"title":"Verifying latest package version","prompt":"What's the latest published version of the 'react' npm package? I want to make sure we're not running something outdated."},{"title":"Investigating package maintainers and repo","prompt":"Can you fetch the npm metadata for 'express' and tell me who the maintainers are and what GitHub repo it points to?"}],"resultDescription":"Returns structured metadata for the requested npm package, including package name, description, latest version, all published versions, license type, author, maintainers, repository URL, homepage, dependencies, keywords, and publish timestamps. Each call also includes a Strale audit record with a cryptographic chain hash for provenance tracking.","failureModes":["Package not found: returns error if the package name does not exist on npm","Invalid package name format: malformed package identifiers may be rejected","npm registry unavailable: upstream failures may cause timeouts or 5xx responses","Missing required query parameter: omitting 'package' parameter results in a validation error"],"whenToPreferThis":"Choose this endpoint when you need verified, audit-trailed npm package metadata within an automated agent pipeline — especially in compliance, supply chain security, or due diligence contexts where cryptographic audit records matter. Prefer this over direct npm registry calls when you need structured JSON with provenance guarantees or when operating in regulated environments. Also useful when aggregating package data across many lookups with consistent response schemas.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:05:08.521Z","isFirstParty":false}