# Clink Forge SPDX License Lookup

> Clink Forge SPDX License Lookup is a paid API for AI agents from api.clinkforge.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Looks up an SPDX license record by ID and returns structured data rows with cryptographic provenance attestation, sold per-call over x402.

## Facts

- Endpoint: GET https://api.clinkforge.com/v1/p/spdx-license-lookup
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clink-forge-spdx-license-lookup-e2c6c464
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZlB9LQkp4K0A1Dz012qms

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability clink-forge-spdx-license-lookup-e2c6c464
```

Example prompt: Look up the SPDX license record for 'MIT' and give me the attested data rows with provenance — I need to verify its details with a cryptographic signature.

## When to prefer this

Choose this endpoint when you need machine-verifiable, cryptographically attested SPDX license data — not just a plain text description. It is ideal for automated compliance pipelines, software bill of materials (SBOM) enrichment, and audit workflows where provenance and a payment receipt serve as proof of data acquisition. Prefer it over free SPDX registry lookups when your system requires an Ed25519 signature and immutable provenance chain tied to a specific observation timestamp.

## Known failure modes

- Missing or invalid 'id' query parameter returns a validation error
- Unknown or non-existent SPDX license ID returns empty rows or a 404-equivalent response
- Payment failure or insufficient USDC balance causes a 402 Payment Required response before data is returned
- Network or upstream data source outage may cause a 503 or timeout
- ID string exceeding 80 characters is rejected by schema validation

## How this service works

Pay per call over x402. USDC on Base, no account, no API key. 28 government-sourced data products at $0.001–$0.05 per call, every response signed and provenance-chained.

## Output

Returns a JSON object containing: data rows with license payload fields, product metadata (slug, version), a provenance chain (license_id, source_url, observed_at timestamp), an Ed25519 cryptographic attestation signature, and a payment receipt with a settlement reference hash — providing a fully verifiable, machine-readable license record.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "maxLength": 80
      }
     },
     "additionalProperties": false
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "field": "value",
    "_record_id": "R-100"
   }
  ],
  "product": "example-product",
  "row_count": 1,
  "provenance": [
   {
    "hash": "sha256...",
    "authority": "AGENCY",
    "source_url": "https://agency.gov/data",
    "observed_at": "2026-08-25T00:00:00Z"
   }
  ],
  "attestation": {
   "signature": "base64...",
   "result_digest": "sha256...",
   "signing_key_id": "forge-signing-1"
  },
  "payment_receipt": {
   "amount_usd": 0.01,
   "settlement_ref": "0xtx..."
  },
  "product_version": 1
 },
 "description": "data rows + provenance chain + attestation"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clink-forge-spdx-license-lookup-e2c6c464/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.clinkforge.com](https://www.zero.xyz/host/api.clinkforge.com/llms.txt)
