{"uid":"cap_Ua7KX2hsQHu_fTjciAyWg","slug":"license-intel-spdx-license-expression-validator-9858961c","name":"License Intel – SPDX License Expression Validator","description":"Validate an SPDX license expression (AND, OR, WITH, +): syntax, known ids, known exceptions and deprecated identifiers.","url":"https://license-intel.x402tookit.com/license-expression-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":["expression"],"properties":{"expression":{"type":"string","description":"An SPDX expression, for example MIT OR (Apache-2.0 AND BSD-3-Clause)"}}}},"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"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"licenses":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"name":{"type":["null","string"]},"status":{"type":["null","string"]},"canonicalId":{"type":["null","string"]},"osiApproved":{"type":["boolean","null"]},"plusOnDeprecated":{"type":["boolean","null"]}}}},"warnings":{"type":["array","null"]},"operators":{"type":["array","null"],"items":{"type":"string"}},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"exceptions":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"name":{"type":["null","string"]},"status":{"type":["null","string"]},"canonicalId":{"type":["null","string"]}}}},"expression":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"listVersion":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8um-GYMCjQp0W7E4tUz6l","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an SPDX license expression (with AND, OR, WITH, + operators) for syntax correctness, known license IDs, known exceptions, and deprecated identifiers.","exampleAgentPrompt":"Can you check whether the SPDX license expression 'MIT OR (Apache-2.0 AND BSD-3-Clause)' is valid — confirm the syntax is correct, all the license IDs are known, and nothing is deprecated?","exampleUseCases":[{"title":"Pre-publish license expression check","prompt":"Before I publish my npm package, can you validate that 'MIT OR Apache-2.0' is a properly formed SPDX expression with no deprecated identifiers?"},{"title":"Validate complex copyleft expression","prompt":"Check if 'GPL-2.0-only WITH Classpath-exception-2.0 OR LGPL-2.1-or-later' is a valid SPDX expression — I need to know if the syntax is right and whether all the IDs and exceptions are recognized."},{"title":"CI pipeline license gate","prompt":"We're gating our CI build on license compliance — can you validate the SPDX expression 'Apache-2.0 AND (MIT OR BSD-2-Clause)' and flag any unknown or deprecated license IDs so we can block bad merges?"}],"resultDescription":"Returns a structured JSON object containing: a verdict (valid/invalid), a human-readable summary, an array of reasons explaining any issues, a list of parsed license objects (each with id, name, status, canonicalId, OSI-approved flag, and whether + was used on a deprecated ID), a list of exception objects, the list of operators found, any warnings, the SPDX list version used, data freshness timestamp, and source attribution.","failureModes":["Missing 'expression' query parameter returns an error","Malformed SPDX syntax returns a verdict of invalid with reasons explaining the parse failure","Unknown license IDs are flagged in the license list with status 'unknown' rather than causing a hard error","Deprecated license IDs are flagged but may still return a valid parse if syntax is correct","Network or upstream SPDX data unavailability may return a degraded flag with partial results"],"whenToPreferThis":"Choose this endpoint when you need to validate a full SPDX compound expression (using AND, OR, WITH, or + operators) rather than checking a single license ID in isolation. It is the right choice for CI/CD pipelines, package publishing workflows, or legal compliance checks where the expression structure and operator semantics matter, not just whether individual IDs exist. Use the sibling lookup endpoints for single-ID metadata or plain-language explanations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:35:23.476Z","isFirstParty":false,"canonicalSlug":"license-intel-spdx-license-expression-validator-9858961c"}