# Maxwell x402 – Switzerland Open Data Portal Search (opendata.swiss)

> Maxwell x402 – Switzerland Open Data Portal Search (opendata.swiss) 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 datasets from Switzerland's national open data portal (opendata.swiss) 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/ch/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-switzerland-open-data-portal-search-opendata-swiss-59fb8149
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P3snjPewd5j3Mwmmhr_Rd

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-switzerland-open-data-portal-search-opendata-swiss-59fb8149
```

Example prompt: Search Switzerland's national open data portal opendata.swiss for datasets about renewable energy and show me the titles, publishing organizations, and official links for the top results.

## When to prefer this

Use this endpoint when you need to discover or retrieve datasets from Switzerland's official national open data portal (opendata.swiss). Prefer it over generic web search when you need structured metadata (title, publisher, file count, last modified, official URL) about Swiss government open datasets. Choose the France equivalent endpoint for French open data, or EDGAR endpoints for US financial filings.

## Known failure modes

- 404 response when a specific dataset ID does not exist (not charged)
- Empty results list when no datasets match the keyword
- Rate limiting or upstream portal unavailability causing delayed or failed responses
- Stale or missing modification dates when the portal does not provide them
- Licence information is top-level portal terms only; individual dataset licences must be checked on the official dataset page

## How this service works

Search the national open data portal of Switzerland (opendata.swiss) 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 up to 10 matching dataset items (each with id, title, last modified timestamp, source URL, publishing organization, and resource/file count), the search query used, total result count, the data source (opendata.swiss), country (Switzerland), licence information with URL, and the timestamp of when the data was fetched.

## 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.ch.open_data",
  "count": 10,
  "items": [
   {
    "id": "klima-planhinweiskarte-nacht",
    "title": "Klima Planhinweiskarte Nacht",
    "modified": "2026-09-15T00:57:20.431435",
    "sourceUrl": "https://opendata.swiss/en/dataset/klima-planhinweiskarte-nacht",
    "organization": "Canton of Thurgau",
    "resourceCount": 5
   }
  ],
  "query": "klima",
  "family": "open_data",
  "source": "opendata.swiss",
  "country": "Switzerland",
  "licence": {
   "url": "https://opendata.swiss/en/terms-of-use",
   "name": "opendata.swiss terms of use; each dataset states its own terms (open use / at..."
  },
  "fetchedAt": "2026-09-29T13:37:51.963Z",
  "sourceUrl": "https://opendata.swiss/",
  "totalCount": 159
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maxwell-x402-switzerland-open-data-portal-search-opendata-swiss-59fb8149/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)
