Open government data: datasets and tables
Search the official open-data portals of Germany, the UK, Canada, Australia and the EU for public datasets (statistics, transport, health, energy, budgets), get their files and licence, and read table rows directly.
POST /api/v1/nodes/open-data
3 actions, one node
Send action plus the fields that action needs, to the same address. Each action has its own price, charged only when it returns a result. Leave out action and you get search.
- Search government open dataaction: search$0.002
Find official government datasets on a topic (Germany, UK, Canada, Australia, EU). Total matches and, per dataset: id, title, publisher, short description, licence, last update, file formats, number of files (fileCount) and its page.
needs: portal, query · optional: rows, publisher, language
- Government dataset files and licenceaction: dataset$0.002
One government dataset: what it contains, its publisher, licence and download links. Title, full description, publisher, licence, tags and its resources: each file's name, format, download link, size, last update and tableId when its rows can be read.
needs: portal, id · optional: language
- Read a government data tableaction: rows$0.002
Read the rows of a government data table (Canada and Australia). Column names and types, up to 100 rows, the total row count and whether more rows follow.
needs: portal, table_id · optional: query, limit, offset
{"action":"search","portal":"au","query":"electric vehicle charging"}{"action":"dataset","portal":"…","id":"…"}POST either body to https://tollnode.com/api/v1/nodes/open-data. From an AI assistant you don't write this yourself: ask in plain words and it picks the action.
Is this the right node?
- Use it when
- A task needs official public data: statistics, transport, health, energy, environment, budgets or locations published by a government (national, regional or city) in Germany, the UK, Canada, Australia or anywhere in the EU.
- Not for
- Live prices or private company data; US federal data (coming); and portals' maps or dashboards (only datasets and their files).
- Typical time
- About 2 seconds per call
How it works
Your agent pays for itself

1Needs something

2Finds it on TollNode

3Pays a few cents

4Gets the result
Two ways to use Open government data: datasets and tables
Way 1 · Pay per call (x402)
For AI agents, no sign-up
Your agent sends the request, gets a 402 with the exact price (from $0.002 per call), signs a USDC payment on Base and retries. Nothing is collected unless the call succeeds.
npx agentcash add https://tollnode.comnpx agentcash@latest fetch https://tollnode.com/api/v1/nodes/open-data -m POST -b '{"rows":5,"query":"electric vehicle charging","action":"search","portal":"au"}'Way 2 · Account + API key
For apps and teams
Create a free account, load a balance with USDC on Base, create an API key and call any node. Same prices; each successful call is deducted from your balance.
curl -X POST https://tollnode.com/api/v1/nodes/open-data \
-H "Authorization: Bearer $TOLLNODE_API_KEY" \
-H "content-type: application/json" \
-d '{"rows":5,"query":"electric vehicle charging","action":"search","portal":"au"}'Step-by-step, with code in JavaScript and Python: full guide for Open government data: datasets and tables.
Input
| Field | Type | Notes |
|---|---|---|
| id | string | dataset: the dataset id from a search resultLimit: up to 200 characters |
| rows | integer | search: how many datasets to return. Default 10Limit: 1 to 25 |
| limit | integer | rows: how many rows. Default 25Limit: 1 to 100 |
| query | string | search: what to look for, in the portal's language (e.g. 'Ladestationen' on de). rows: optional full-text filter on the tableLimit: up to 300 characters |
| action* | enum | search finds datasets; dataset shows one with its files; rows reads a table. Default search (search, dataset, rows) |
| offset | integer | rows: skip this many rows (for paging). Default 0Limit: at least 0 |
| portal* | enum | de Germany (GovData), uk data.gov.uk, ca open.canada.ca, au data.gov.au, eu data.europa.eu (all EU countries) (de, uk, ca, au, eu) |
| language | string | eu: language for titles and descriptions, e.g. de or fr. Default en |
| table_id | string | rows: a file's tableId from the dataset action (ca and au only)Limit: up to 100 characters |
| publisher | string | search on de, uk, ca, au: only this publishing organisation (its short id on the portal)Limit: up to 120 characters |
Example response
{
"query": "electric vehicle charging",
"total": 1711,
"portal": "Australia (data.gov.au)",
"results": [
{
"id": "6e029bcb-9034-4380-800b-91be6eba3fea",
"page": "https://data.gov.au/data/dataset/electric-vehicle-charging-bays",
"title": "Electric vehicle charging bays",
"formats": [
"CSV",
"GEOJSON"
],
"license": "Creative Commons Attribution 4.0",
"updated": "2026-10-02T03:11:40",
"fileCount": 2,
"publisher": "City of Sydney",
"description": "A trial of on-street electric vehicle charging: where the charging bays are and who runs them."
}
],
"attribution": "Open data from Australia (data.gov.au); each dataset carries its own licence (shown per result)."
}FAQ
- When should an agent use the Open government data: datasets and tables node?
- A task needs official public data: statistics, transport, health, energy, environment, budgets or locations published by a government (national, regional or city) in Germany, the UK, Canada, Australia or anywhere in the EU. It is not meant for live prices or private company data; US federal data (coming); and portals' maps or dashboards (only datasets and their files). A call usually takes about 2 seconds.
- What does the Open government data: datasets and tables node return?
- Search the official open-data portals of Germany, the UK, Canada, Australia and the EU for public datasets (statistics, transport, health, energy, budgets), get their files and licence, and read table rows directly. Each call returns depends on the action; see the actions table. Every dataset names its publisher and licence; check the licence before republishing.
- How much does one call cost?
- from $0.002 in USDC on Base per call (one call = one result), charged only when it succeeds, depending on action (rows: $0.002, search: $0.002, dataset: $0.002). No sign-up, subscription or API key.
- What happens if the call fails?
- You are not charged. TollNode checks your signed payment first, runs the node, and only collects the payment if the result is usable. A failed, empty or timed-out call is never settled, so there is nothing to refund.
- How does an AI agent pay?
- With x402. The first request returns HTTP 402 and the exact price. Any x402 wallet signs the USDC payment and retries automatically. In Claude Code or Cursor, run npx agentcash add https://tollnode.com once.
- Can I use an API key instead?
- Yes. Create a free account, add funds in USDC on Base, create an API key and send it as Authorization: Bearer. Each successful call is deducted from your balance at the same price; failed calls cost nothing.