81trust / 100
Ch Open Data
by Maxwell x402 in Search & web
x402 APIPassing, checked 2 h ago
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.
GET https://api.maxwellinternational.ai/v1/gov/ch/open-data
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 77 ms typical, 77 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.maxwellinternational.ai/v1/gov/ch/open-data?q=klima"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.maxwellinternational.ai%2Fv1%2Fgov%2Fch%2Fopen-data
const res = await pay("https://api.maxwellinternational.ai/v1/gov/ch/open-data?q=klima");
console.log(await res.json());Example input
{
"q": "klima"
}Example output
{
"count": 10,
"country": "Switzerland",
"family": "open_data",
"hash": "54ebb98f801c816f",
"items": [
{
"id": "klima-planhinweiskarte-nacht",
"modified": "2026-09-15T00:57:20.431435",
"organization": "Canton of Thurgau",
"resourceCount": 5,
"sourceUrl": "https://opendata.swiss/en/dataset/klima-planhinweiskarte-nacht",
"title": "Klima Planhinweiskarte Nacht"
}
],
"licence": {
"name": "opendata.swiss terms of use; each dataset states its own terms (open use / at...",
"url": "https://opendata.swiss/en/terms-of-use"
},
"ok": true,
"query": "klima",
"sku": "gov.ch.open_data",
"source": "opendata.swiss",
"sourceUrl": "https://opendata.swiss/",
"totalCount": 159
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 93 ms | $0.005 |
| 7 h ago | Passed | 402 | 77 ms | $0.005 |