{"uid":"cap_etXQ-ZOETWu6A0ScJBHCb","slug":"spdx-license-expression-classifier-3699d661","name":"SPDX License Expression Classifier","description":"Classify an SPDX license expression such as MIT OR Apache-2.0: permissive, copyleft or restricted, with the effective result.","url":"https://package-registries.x402tookit.com/license-check?utm_source=zero.xyz","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","required":["license"],"properties":{"license":{"type":"string","description":"SPDX expression, e.g. MIT OR Apache-2.0"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"hasChoice":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"expression":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"identifiers":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"note":{"type":["null","string"]},"category":{"type":["null","string"]},"canonical":{"type":["null","string"]},"exception":{},"deprecatedAlias":{"type":["boolean","null"]}}}},"hasException":{"type":["boolean","null"]},"plainEnglish":{"type":["null","string"]},"effectiveCategory":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9mTRDHlKsBViJ_vRiI2Ng","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies an SPDX license expression (e.g. MIT OR Apache-2.0) as permissive, copyleft, or restricted, returning a structured verdict with plain-English explanation and individual identifier breakdown.","exampleAgentPrompt":"What category does the license expression 'MIT OR Apache-2.0' fall under — is it permissive, copyleft, or restricted? Give me a plain-English explanation of the verdict.","exampleUseCases":[{"title":"Dependency license compliance check","prompt":"I'm adding a new npm package to my project that uses 'GPL-2.0-only OR MIT' as its license — can you classify that SPDX expression and tell me whether it's permissive, copyleft, or restricted, and what that means in practice?"},{"title":"Open source policy gate for CI pipeline","prompt":"Before we merge this PR, can you check the license expression 'AGPL-3.0-or-later' and tell me if it's considered copyleft or restricted, and give me a plain-English summary of the implications?"},{"title":"Evaluate ambiguous dual-license expression","prompt":"Our vendor listed 'Apache-2.0 AND LGPL-2.1-or-later' as the license for a library — can you classify that SPDX expression and tell me what the effective category is and whether we have any choice in which license applies?"}],"resultDescription":"Returns a structured object containing: verdict (permissive/copyleft/restricted), effectiveCategory, a plain-English explanation, list of reasons, individual license identifier details (id, category, canonical name, exception, deprecated alias flag), hasChoice (whether the expression offers an OR choice), hasException flag, notChecked identifiers, source, asOf timestamp, and a disclaimer.","failureModes":["Invalid or unrecognized SPDX expression returns an error or degraded=true response","Unknown license identifiers are listed in notChecked array rather than classified","Malformed SPDX syntax (e.g. missing operator) may result in a parse error","Complex nested expressions may produce degraded=true if not fully resolvable","Payment failure returns 402 before the request is processed"],"whenToPreferThis":"Use this endpoint when you need a structured, machine-readable classification of an SPDX license expression rather than just looking up a single license name. It handles compound expressions with AND/OR operators, exception clauses, and deprecated aliases — making it ideal for automated compliance pipelines, dependency audits, or CI gates that need to programmatically determine if a license is safe for commercial use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:31:14.673Z","isFirstParty":false,"canonicalSlug":"spdx-license-expression-classifier-3699d661"}