# Wikimedia Commons License Template Lookup

> Wikimedia Commons License Template Lookup is a paid API for AI agents from api.companyrecords-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns Wikimedia Commons license template names, page IDs, and links matching a given prefix (e.g. 'Cc-zero' or 'Cc-by-sa')

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/gov/wikimedia-commons-license?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikimedia-commons-license-template-lookup-2324aded
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zNChcXZA5dGHAUD_LWv3S

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 wikimedia-commons-license-template-lookup-2324aded
```

Example prompt: Can you find me all Wikimedia Commons license templates that start with 'Cc-by-sa', up to 10 results, and give me their titles, page IDs, and links?

## When to prefer this

Use this endpoint when you need to discover or enumerate Wikimedia Commons license template names and their identifiers by a known prefix, particularly for Creative Commons license variants. Prefer it over manual Wikimedia API calls when you want a simple, pay-per-call lookup of template metadata (title, page ID, URL) without needing the full license text or usage rules.

## Known failure modes

- Prefix shorter than 2 characters or longer than 40 returns a validation error
- Limit outside 1-20 range causes a parameter rejection
- No templates matching the prefix returns an empty templates array
- Wikimedia Commons API unavailable returns a proxy/upstream error
- Invalid characters in prefix (non-alphanumeric, non-hyphen, non-dot) cause a 400 error

## How this service works

Pay-per-call company registry, government, legal and B2B data tools for AI agents, from official registers and public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.

## Output

A JSON object containing the queried prefix, the Wikimedia Commons API source URL, a timestamp of when the check was performed, and an array of matching templates each with a title, page ID, and direct URL to the template page on Wikimedia Commons.

## Request schema (JSON Schema)

```json
{
 "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": [],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Templates to return, 1 to 20 (default 10)"
      },
      "prefix": {
       "type": "string",
       "description": "Template name prefix, 2 to 40 letters, digits, hyphens or dots, e.g. Cc-zero"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prefix": "Cc-zero",
  "source": "https://commons.wikimedia.org/w/api.php",
  "checkedAt": "2026-10-23T09:37:11.357Z",
  "templates": [
   {
    "url": "https://commons.wikimedia.org/wiki/Template%3ACc-zero",
    "title": "Template:Cc-zero",
    "pageId": 4037295
   },
   {
    "url": "https://commons.wikimedia.org/wiki/Template%3ACc-zero-1.0",
    "title": "Template:Cc-zero-1.0",
    "pageId": 66391609
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikimedia-commons-license-template-lookup-2324aded/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.companyrecords-api.workers.dev](https://www.zero.xyz/host/api.companyrecords-api.workers.dev/llms.txt)
