{"uid":"cap_IkTTN5qJcKPQF4lCL0i3S","slug":"package-licence-lookup-e1a504dc","name":"Package Licence Lookup","description":"Deterministic dependency risk data for agents: maintenance, licence, and known advisories for one package, resolved against the version an installer would actually get today. No model calls, no personal data.","url":"https://x402-package-risk.x402-package-risk.workers.dev/v1/package/licence?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["name","system"],"properties":{"name":{"type":"string"},"system":{"enum":["npm","pypi","go","maven","cargo","nuget"],"type":"string"},"version":{"type":"string"}}},"responseSchema":{"licence":{"class":"permissive","licence":"MIT","commercialSafe":true},"package":{"name":"express","system":"npm"},"sources":["deps.dev","registry.npmjs.org"]},"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_8H13xpVPE0-QHTkmjc_vH","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":"Returns the licence type, classification, and commercial safety for a given package resolved to the version an installer would actually get today.","exampleAgentPrompt":"What licence does the npm package 'express' use, and is it safe for commercial use?","exampleUseCases":[{"title":"Open source licence compliance gate","prompt":"Before we ship, check whether the npm package 'lodash' uses a permissive licence that's safe for our commercial product."},{"title":"Python dependency legal audit","prompt":"We're adding 'requests' from PyPI to our codebase — can you look up its licence and tell me whether it's commercially safe?"},{"title":"Pre-install licence check in CI","prompt":"I'm about to install 'left-pad' from npm — what licence does it have and would using it in a paid product cause any legal issues?"}],"resultDescription":"Returns the resolved package name and ecosystem, the SPDX licence identifier (e.g. 'MIT'), a human-readable licence class (e.g. 'permissive'), a boolean flag indicating whether the licence is safe for commercial use, and the upstream data sources consulted (e.g. deps.dev, registry.npmjs.org).","failureModes":["Unknown package name or ecosystem returns an error or empty result","Version specifier that doesn't resolve returns an error","Unsupported package system value returns a validation error","Network issues reaching deps.dev or the registry may cause transient failures","Packages with non-standard or ambiguous licences may return an unclassified result"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic, no-hallucination licence data for a specific package — particularly when the result must reflect what would actually be installed today rather than cached or stale metadata. Prefer it over LLM-based licence checks for accuracy, and over manual registry lookups for agent-compatible structured output. Ideal for CI pipelines, legal compliance workflows, and automated dependency audits.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:33:45.750Z","isFirstParty":false,"canonicalSlug":"package-licence-lookup-e1a504dc"}