# Maxwell x402 – UK Open Data Portal Search

> Maxwell x402 – UK Open Data Portal Search is a paid API for AI agents from api.maxwellinternational.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Search or fetch datasets from the UK national open data portal (data.gov.uk) by keyword or dataset ID, returning title, organization, last modified date, file count, and official link.

## Facts

- Endpoint: GET https://api.maxwellinternational.ai/v1/gov/gb/open-data?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/maxwell-x402-uk-open-data-portal-search-d5457a85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JKXHU3kIEUrj6XLtt_k4D

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 maxwell-x402-uk-open-data-portal-search-d5457a85
```

Example prompt: Search data.gov.uk for datasets about air quality in the UK and show me the titles, publishing organizations, and links for the top results.

## When to prefer this

Choose this endpoint when you need to discover or retrieve metadata for datasets published on the UK government's official open data portal (data.gov.uk). Prefer it over generic web search when you want structured, machine-readable catalogue metadata — titles, organizations, file counts, and direct links — rather than scraped HTML. Use it specifically for UK national or local government open data; for EU data use the Europa endpoint, for Germany use GovData, and for Austria use data.gv.at endpoints from the same provider.

## Known failure modes

- 404 returned when a specific dataset ID does not exist on data.gov.uk — not charged
- No results returned for obscure or misspelled keyword queries
- Stale or missing 'modified' dates when the portal does not provide them
- Rate limiting or temporary unavailability of the upstream data.gov.uk CKAN API
- Network timeout if upstream portal is slow (fetch takes up to ~1 minute for uncached requests)

## How this service works

Search the national open data portal of the United Kingdom (data.gov.uk) by keyword, or fetch one dataset by id: title, publishing organization, last modified date where the portal gives one, number of files and the official link, under the portal's licence terms (a dataset's own licence is on its official page). Uncached: 404, not charged, fetched within about a minute.

## Output

A JSON object containing a list of matching datasets (up to ~10 per call), each with an ID, title, publishing organization, last modified timestamp, number of resource files, and a direct URL to the dataset page on data.gov.uk. Also includes the total count of matching datasets, the query used, the data source (data.gov.uk CKAN), and licence attribution information (Open Government Licence v3.0 for the catalogue metadata).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "sku": "gov.gb.open_data",
  "count": 10,
  "items": [
   {
    "id": "climate-resilience-documents",
    "title": "Climate resilience documents",
    "modified": "2026-09-25T12:07:29.749997",
    "sourceUrl": "https://www.data.gov.uk/dataset/9023a2a3-bf51-48f6-bb93-6c1d4acaa424/climate-...",
    "organization": "Data Mill North",
    "resourceCount": 6
   }
  ],
  "query": "climate",
  "family": "open_data",
  "source": "data.gov.uk (CKAN)",
  "country": "United Kingdom",
  "licence": {
   "url": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
   "name": "Open Government Licence v3.0 (catalogue); each dataset states its own licence",
   "attribution": "Contains public sector information licensed under the Open Government Licence..."
  },
  "fetchedAt": "2026-09-29T13:35:51.472Z",
  "sourceUrl": "https://www.data.gov.uk/",
  "totalCount": 2908
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maxwell-x402-uk-open-data-portal-search-d5457a85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maxwellinternational.ai](https://www.zero.xyz/host/api.maxwellinternational.ai/llms.txt)
