TollNode

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.

request body: search
{"action":"search","portal":"au","query":"electric vehicle charging"}
request body: dataset
{"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

Explained in 5 minutes →
  1. Step 1: Needs something. Mid-task, your agent needs an image, a search or a voice.

    1Needs something

  2. Step 2: Finds it on TollNode. It picks the right tool. The price is shown up front.

    2Finds it on TollNode

  3. Step 3: Pays a few cents. Its wallet pays for that one use. No sign-up.

    3Pays a few cents

  4. Step 4: Gets the result. The result comes straight back. If it fails, it's free.

    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.

add TollNode to Claude Code, Cursor or Codex (once)
npx agentcash add https://tollnode.com
or call it directly
npx 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
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

FieldTypeNotes
idstringdataset: the dataset id from a search resultLimit: up to 200 characters
rowsintegersearch: how many datasets to return. Default 10Limit: 1 to 25
limitintegerrows: how many rows. Default 25Limit: 1 to 100
querystringsearch: 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*enumsearch finds datasets; dataset shows one with its files; rows reads a table. Default search (search, dataset, rows)
offsetintegerrows: skip this many rows (for paging). Default 0Limit: at least 0
portal*enumde 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)
languagestringeu: language for titles and descriptions, e.g. de or fr. Default en
table_idstringrows: a file's tableId from the dataset action (ca and au only)Limit: up to 100 characters
publisherstringsearch 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.