# SiteCheck Company Records – UK data.gov.uk Catalogue Search

> SiteCheck Company Records – UK data.gov.uk Catalogue Search 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).

Searches the UK government open data catalogue (data.gov.uk / CKAN API) and returns dataset metadata including title, publisher, licence, last modified date, resource count, and dataset link.

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/gov/data-gov-uk?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/sitecheck-company-records-uk-data-gov-uk-catalogue-search-4352d401
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TpwO_yf8CH6lTrM-YuL65

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 sitecheck-company-records-uk-data-gov-uk-catalogue-search-4352d401
```

Example prompt: Search the UK data.gov.uk open data catalogue for datasets about 'air quality' and show me the top 5 results including publisher, licence, and when each was last updated.

## When to prefer this

Choose this endpoint when you need to discover what UK government open datasets exist on a topic — particularly when you need metadata such as publisher, licence, and freshness rather than the data files themselves. Ideal for research scoping, compliance checks on data licences, or building catalogues of government data sources. Prefer over generic web search when you specifically need structured CKAN metadata from the UK data.gov.uk catalogue.

## Known failure modes

- Query too short (under 2 chars) or too long (over 80 chars) returns validation error
- CKAN API upstream downtime may cause request failure or empty results
- Search term matching no datasets returns an empty datasets array with totalDatasets 0
- rows parameter outside 1–10 range may be rejected or clamped

## How this service works

UK government open datasets from the data.gov.uk catalogue (CKAN API): title, publisher, licence, last modified date, number of resources and dataset link, for a search term. Catalogue metadata only, not the data files themselves.

## Output

Returns a JSON object with the search query, source CKAN API URL, a list of matched datasets (each with URL, slug name, title, licence, publisher, last modified date, and resource count), the timestamp of the check, and the total number of matching datasets in the catalogue.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search text, 2 to 80 characters"
      },
      "rows": {
       "type": "string",
       "description": "Datasets to return, 1 to 10 (default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "health",
  "source": "https://ckan.publishing.service.gov.uk/api/3/action/package_search",
  "datasets": [
   {
    "url": "https://www.data.gov.uk/dataset/health",
    "name": "health",
    "title": "Health Trust Reference Costs 2014-15",
    "licence": "UK Open Government Licence (OGL)",
    "publisher": "OpenDataNI",
    "lastModified": "2026-07-08",
    "resourceCount": 0
   },
   {
    "url": "https://www.data.gov.uk/dataset/oral-health",
    "name": "oral-health",
    "title": "Oral Health",
    "licence": null,
    "publisher": "London Borough of Camden",
    "lastModified": "2023-09-14",
    "resourceCount": 1
   }
  ],
  "checkedAt": "2026-10-23T09:37:05.651Z",
  "totalDatasets": 5709
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-company-records-uk-data-gov-uk-catalogue-search-4352d401/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)
