# SiteCheck Company Records — Data.gov Dataset Search

> SiteCheck Company Records — Data.gov Dataset 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).

Search the Data.gov catalog of 300,000+ US federal, state, and local open datasets by keyword, returning metadata including title, publisher, description, themes, keywords, access level, dates, distributions, and download URLs.

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/gov/data-gov?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-data-gov-dataset-search-8fec3960
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yq_H8vrmISCw14eIVdSIe

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-data-gov-dataset-search-8fec3960
```

Example prompt: Can you search data.gov for open datasets about air quality and show me the top results, including where I can download them?

## When to prefer this

Choose this endpoint when you need to discover or enumerate US government open datasets from federal, state, or local agencies indexed on Data.gov. It is ideal for research, policy analysis, journalism, or building applications that surface publicly available government data. Prefer this over direct Data.gov browsing when you need structured, machine-readable metadata including distributions and download links in a single API call with pagination support.

## Known failure modes

- Missing required 'q' parameter returns a 400 or validation error
- Empty results array when no datasets match the search query
- Stale or incomplete metadata if upstream Data.gov catalog has not synced recently
- Invalid 'after' cursor value may return an error or unexpected page
- Rate limiting or upstream Data.gov API unavailability causing failure
- Truncated descriptions for datasets with very long text fields

## How this service works

Search the Data.gov catalog (300,000+ US federal, state and local open datasets): title, publisher and organisation, description, keywords, themes, access level, last modified and issued dates, whether a download exists, and each distribution (title, format/media type, download or access URL), plus the dataset page URL. Results come in relevance order; pass the returned next cursor to get the following page.

## Output

Returns a JSON object with a count of results, a source URL linking to the Data.gov search page, a next cursor for pagination, and an array of datasets. Each dataset includes its ID, catalog page URL, title, publisher, organization, description, themes, keywords, access level, issued and modified dates, whether a download exists, and a list of distributions (each with title, format, media type, and access/download URL).

## 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 words, e.g. water quality, crime, census tracts (required)"
      },
      "after": {
       "type": "string",
       "description": "Cursor from a previous answer's next field, for the next page"
      },
      "limit": {
       "type": "string",
       "description": "Datasets per page, 1 to 50 (default 20)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "q": "water quality",
  "next": "WzExNi4wNTA0NiwxMywiYTcxMTI2YTItMGQzNi00OTBlLWFmMzYtMTE2NTU5OWVkNmI5Il0=",
  "count": 5,
  "source": "https://catalog.data.gov/search?q=water%20quality&per_page=5",
  "datasets": [
   {
    "id": "https://data.austintexas.gov/api/views/9s6b-5q8a",
    "url": "https://catalog.data.gov/dataset/austin-water-drinking-water-quality-reports",
    "title": "Austin Water - Drinking Water Quality Reports",
    "issued": "2020-11-10",
    "themes": [
     "Utilities and City Services"
    ],
    "spatial": false,
    "keywords": [
     "aw",
     "reports"
    ],
    "modified": "2026-03-19",
    "publisher": "data.austintexas.gov",
    "accessLevel": "public",
    "description": "Austin Water's annual Drinking Water Quality Report site provides information on Austin’s drinking water. The United States Environmental Protection Agency (EPA) requires that all drinking water suppliers in the country provide a water quality report to their customers on a yearly basis.",
    "hasDownload": true,
    "organization": "City of Austin",
    "distributions": [
     {
      "url": "https://www.austintexas.gov/department/water-quality-reports",
      "title": "Drinking Water Quality Reports",
      "format": null,
      "mediaType": "text/html"
     }
    ]
   },
   {
    "id": "490172e5-433d-4eed-816f-5a698c9a5812",
    "url": "https://catalog.data.gov/dataset/drinking-water-laboratory-water-quality-results",
    "title": "Drinking Water - Laboratory Water Quality Results",
    "issued": "2019-08-10T03:21:00.789765",
    "themes": [
     "Water"
    ],
    "spatial": false,
    "keywords": [
     "Chemistry",
     "Contaminant"
    ],
    "modified": "2019-10-29T16:08:32.544888",
    "publisher": "California State Water Resources Control Board",
    "accessLevel": "public",
    "description": "The Division of Drinking Water requires laboratories to submit water quality data directly. The data is received, and published twice monthly on the Division's water quality portal . The resource here now is just a data dictionary for the laboratory analysis data available from that portal, and in t…",
    "hasDownload": true,
    "organization": "State of California",
    "distributions": [
     {
      "url": "https://data.ca.gov/dataset/490172e5-433d-4eed-816f-5a698c9a5812/resource/c2112ffa-cf3f-449c-bea1-e269c76095c0/download/drinking-water-quality-electronic-data-transfer-library.pdf",
      "title": "Drinking Water
… (truncated)
```

## More

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