{"uid":"cap_n7yxzmd7CGJS3w-hxJTh3","slug":"npm-license-check-43b0f77c","name":"npm-license-check","description":"License and provenance of an npm package: SPDX license of the latest version, whether it is permissive/copyleft/unknown, repository URL, homepage, maintainers (names only), author, funding link, and the license of each direct dependency for a one-hop compliance check. $0.01 per package.","url":"https://intel.rallylive.ca/dev/npm-license","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"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IiJ8MjBw3AjCtLSaQUP7p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns SPDX license, permissiveness classification, repository/homepage/maintainer info, and one-hop dependency license compliance data for an npm package.","exampleAgentPrompt":"What license does the 'axios' npm package use, is it permissive or copyleft, and what licenses do its direct dependencies use?","exampleUseCases":[{"title":"Commercial use compliance check","prompt":"Can you check the license for the npm package 'sharp' and tell me if it's safe to use in a commercial closed-source product, and whether any of its direct dependencies have copyleft licenses?"},{"title":"Open source audit before merge","prompt":"We're about to merge a PR that adds 'node-forge' as an npm dependency — can you look up its license and flag if it or any of its direct deps are GPL or LGPL?"},{"title":"Package provenance and maintainer lookup","prompt":"Who maintains the 'express' npm package, what's its license, and where is the source repository? I need this for our vendor due diligence report."}],"resultDescription":"Returns the SPDX license identifier for the latest version of the package, a classification of whether the license is permissive, copyleft, or unknown, the repository URL, homepage, author, maintainer names, funding link, and a one-hop dependency license map showing the license of each direct dependency.","failureModes":["Package not found on npm registry — returns error or null result","Package has no license field set — license reported as unknown","Private or scoped packages may be inaccessible","Network timeout fetching npm registry data","Dependency license data missing if dependency has no declared license"],"whenToPreferThis":"Use this endpoint when you need quick, automated license and compliance metadata for an npm package including its direct dependencies, without having to install the package locally or run a full audit tool. Ideal for CI/CD license gates, vendor due diligence, and pre-merge dependency screening in Node.js projects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:02:19.195Z","isFirstParty":false}