# data.gouv.fr Dataset Search

> data.gouv.fr Dataset Search is a paid API for AI agents from x402-v2-mint-data-gouv-datasets.vercel.app, paid per call via x402, $0.020142/call, status unknown (last checked 2026-11-20).

Searches the French government open data catalog (data.gouv.fr) by keyword, returning paginated dataset results.

## Facts

- Endpoint: POST https://x402-v2-mint-data-gouv-datasets.vercel.app/v1/data-gouv-datasets?utm_source=zero.xyz
- Price: $0.020142/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/data-gouv-fr-dataset-search-679e72be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-UX5-5a5B4V1ZQhKY20ec

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 data-gouv-fr-dataset-search-679e72be -d '<json body>'
```

Example prompt: Search the French government open data catalog on data.gouv.fr for datasets about air quality, and show me the first 10 results on page 1.

## When to prefer this

Use this endpoint when you need to search the French government's official open data catalog (data.gouv.fr) by keyword. Prefer this over Eurostat or other EU-level data sources when the user specifically needs French national or local public datasets. It is keyless (no API key required) and uses x402 micropayment — ideal for agents that need pay-per-query access without registration. Do not confuse with Eurostat SDMX endpoints which serve EU-wide statistical data rather than France-specific open data.

## Known failure modes

- 402 Payment Required returned before payment is settled (expected x402 flow — client must pay and retry)
- 400 with charged:false if payment settled but query is empty or invalid
- Pagination out of range (page > 100 or page_size > 50) results in validation error
- No results returned for very niche or misspelled queries
- Timeout or 5xx if data.gouv.fr upstream API is unavailable

## How this service works

data.gouv.fr datasets search (keyless). POST {q}/{page?}/{page_size?}. Unpaid empty → 402; after settle empty/invalid → 400 charged:false. Disclose adjacency: eurostat-dataset (FR open data catalog ≠ Eurostat SDMX).

## Output

Returns a JSON object with ok:true, the skill name 'data-gouv-datasets', a charged:true flag confirming payment was processed, and a summary field. The main payload contains paginated dataset listings from the data.gouv.fr catalog matching the query, including dataset titles, descriptions, and metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string",
   "maxLength": 256
  },
  "page": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1
  },
  "page_size": {
   "type": "integer",
   "maximum": 50,
   "minimum": 1
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "data-gouv-datasets",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/data-gouv-fr-dataset-search-679e72be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-data-gouv-datasets.vercel.app](https://www.zero.xyz/host/x402-v2-mint-data-gouv-datasets.vercel.app/llms.txt)
