{"uid":"cap_KrwvioVZ_xlwBS6im-wek","slug":"forest-gas-station-package-license-spdx-normalizer-7380e166","name":"Forest Gas Station – Package License SPDX Normalizer","description":"Normalize declared package license metadata toward SPDX; no legal compatibility conclusion. Base mainnet USDC","url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/package/license?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"package":{"type":"string","maxLength":214,"minLength":1,"description":"Public package name to inspect."},"version":{"type":"string","maxLength":128,"minLength":1,"description":"Package version whose public metadata should be checked."},"ecosystem":{"enum":["npm","pypi"],"description":"Public ecosystem value used to scope this lookup."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_COxHYOHyPq1FXeFdh_yV4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes a declared package license string from npm or PyPI toward a canonical SPDX identifier, without making legal compatibility judgments.","exampleAgentPrompt":"Can you normalize the license declared by the npm package lodash version 4.17.21 to its canonical SPDX identifier?","exampleUseCases":[{"title":"Dependency audit for open source compliance","prompt":"Before we ship, I need to normalize the declared licenses for all our npm packages to SPDX format — start with the package 'express' version '4.18.2' on npm."},{"title":"PyPI package license check for legal review","prompt":"What's the canonical SPDX license identifier for the PyPI package 'requests' version '2.31.0'? I need the normalized form, not just whatever string they wrote in their metadata."},{"title":"CI pipeline license gate","prompt":"Our build is flagging 'chalk' version '5.3.0' on npm with an unusual license string — can you normalize it to SPDX so we can compare it against our allowlist?"}],"resultDescription":"Returns the normalized SPDX license identifier derived from the package's declared license metadata, along with any relevant normalization details. Does not provide legal compatibility analysis or conclusions.","failureModes":["Package or version not found in the specified ecosystem — returns an error or null result","Ecosystem field missing or invalid enum value — validation error","License string is too ambiguous or non-standard to map to a single SPDX identifier — partial or approximate result returned","Network or upstream registry unavailability — timeout or upstream error","Package name exceeds maxLength (214 chars) or version exceeds maxLength (128 chars) — request rejected"],"whenToPreferThis":"Use this endpoint when you need a machine-readable, canonical SPDX license identifier for a specific npm or PyPI package version and want normalization rather than raw scraping. Prefer it over manual parsing of license fields when dealing with ambiguous or informal license strings (e.g. 'MIT/Apache', 'GPLv2+'). Do not use if you need legal compatibility advice or multi-ecosystem support beyond npm and pypi.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:49:03.439Z","isFirstParty":false,"canonicalSlug":"forest-gas-station-package-license-spdx-normalizer-7380e166"}