# Maxwell x402 – US Open Data Portal Search (data.gov)

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

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

## Facts

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

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-us-open-data-portal-search-data-gov-03344380
```

Example prompt: Search the US government's open data portal (data.gov) for datasets about renewable energy — give me titles, publishing organizations, and links to the official pages.

## When to prefer this

Use this endpoint when you need to discover or retrieve metadata for publicly available US government datasets from catalog.data.gov. Prefer it over generic web search when you specifically want structured dataset metadata (title, organization, file count, official link) for US federal or state open data. Choose sibling endpoints for equivalent portals in Austria, Germany, the EU, or Czechia.

## Known failure modes

- Dataset ID not found: returns 404, not charged
- Keyword returns zero results: empty items array
- Portal temporarily unavailable: fetch timeout or upstream error
- Missing modified date: field may be null if portal doesn't provide one
- totalCount may be null if portal doesn't return total result count

## How this service works

Search the national open data portal of the United States (catalog.data.gov) 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: dataset ID, title, last modified date, source URL on catalog.data.gov, publishing organization name, and resource/file count. Also includes the search query echoed back, the data source label, country, license info, and fetch timestamp. Uncached results return a 404 if not found and are fetched within about a minute.

## 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.us.open_data",
  "count": 10,
  "items": [
   {
    "id": "nyc-climate-budgeting-report-climate-alignment-assessment-and-capital-climate...",
    "title": "NYC Climate Budgeting Report: Climate Alignment Assessment and Capital Climat...",
    "modified": "2026-08-11",
    "sourceUrl": "https://catalog.data.gov/dataset/nyc-climate-budgeting-report-climate-alignme...",
    "organization": "City of New York",
    "resourceCount": 3
   }
  ],
  "query": "climate",
  "family": "open_data",
  "source": "data.gov catalogue (GSA)",
  "country": "United States",
  "licence": {
   "url": "https://www.usa.gov/government-copyright",
   "name": "U.S. Government Works (public domain) for federal metadata; each dataset stat..."
  },
  "fetchedAt": "2026-09-29T13:35:32.004Z",
  "sourceUrl": "https://catalog.data.gov/",
  "totalCount": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maxwell-x402-us-open-data-portal-search-data-gov-03344380/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)
