Sign inTry it

Suche offene Daten der Schweiz.

Searches the Swiss open government data portal opendata.swiss like its dataset search page: dataset title, link, publishing organisation and short description. First results page only (about 20 datasets, most relevant first). Returns an empty list when nothing matches.

No reports yetRead-only, no login
Site
opendata.swiss, Switzerland
Version
v1
Runs, last 7 days
No reports yet
sha256
902bfcec58c2…

Run it with your agent

after installing Wield

Ask in plain words. Your agent finds this recipe and calls it:

“Suche offene Daten der Schweiz.”

Read-only: it changes nothing on the site. No login needed.

{
  "tool": "run",
  "arguments": {
    "recipe_id": "opendata.swiss/search-open-data",
    "params": {
      "query": "Verkehr"
    }
  }
}

Requests

sent from your browser, in order
  1. 1GET/de/dataset?qServer-rendered dataset search /de/dataset?q=…; read-only GET. Each result is an li.dataset-item with a heading link to /de/dataset/<name>, the organisation in span.organization and the description paragraph in the dataset content.

Parameters

from your agent
querystringrequiredTopic or keyword for the dataset, e.g. 'Verkehr', 'Bevölkerung', 'Gesundheit'

Returns

to your agent
datasetsobject[]description, organization, title, url
querystring

Where it can send

  • opendata.swiss

Anything else is blocked by the extension.

Reads from your session

Nothing. Your browser attaches the site's cookies by itself.

Used only in requests to the addresses on the left. Never sent to wield.run or your agent.

Checks

a run passes when
  • length(output.datasets) > `0`
  • length(output.datasets[?starts_with(url, 'https://opendata.swiss/de/dataset/')]) == length(output.datasets)
  • length(output.datasets[?title != `null`]) == length(output.datasets)

Raw recipe

Served as canonical JSON from /api/v1/recipes/opendata.swiss/search-open-data, so its sha256 matches the ETag and the index.

Check it yourself
curl -s https://wield.run/api/v1/recipes/opendata.swiss/search-open-data | shasum -a 256
# 902bfcec58c22e1af62f0a7ece8c2f2cc88dc47ebc1a1f3c7561a6e56dd5ad29
opendata.swiss/search-open-data.json, v1
{
  "description": "Searches the Swiss open government data portal opendata.swiss like its dataset search page: dataset title, link, publishing organisation and short description. First results page only (about 20 datasets, most relevant first). Returns an empty list when nothing matches.",
  "effect": "read",
  "id": "opendata.swiss/search-open-data",
  "keywords": [
    "opendata.swiss",
    "open data",
    "offene daten",
    "datensatz",
    "datensätze",
    "schweiz",
    "switzerland",
    "suisse",
    "statistik",
    "verkehr",
    "bevölkerung",
    "gesundheit",
    "ogd"
  ],
  "output": {
    "schema": {
      "properties": {
        "datasets": {
          "items": {
            "properties": {
              "description": {
                "description": "Short description from the listing, may be truncated",
                "type": [
                  "string",
                  "null"
                ]
              },
              "organization": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "title",
              "url"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "query": {
          "type": "string"
        }
      },
      "required": [
        "query",
        "datasets"
      ],
      "type": "object"
    },
    "value": "{query: params.query, datasets: steps.search.datasets[?title != `null` && href != `null`].{title: title, url: join('', ['https://opendata.swiss', href]), organization: organization, description: description}}"
  },
  "params": {
    "additionalProperties": false,
    "properties": {
      "query": {
        "description": "Topic or keyword for the dataset, e.g. 'Verkehr', 'Bevölkerung', 'Gesundheit'",
        "maxLength": 100,
        "minLength": 2,
        "type": "string"
      }
    },
    "required": [
      "query"
    ],
    "type": "object"
  },
  "provenance": {
    "method": "har",
    "notes": "GET /de/dataset?q=…: the HTML contains the first page of dataset results (li.dataset-item, 20 per page). Title and link come from the heading link, organisation from span.organization, description from the last paragraph of the dataset content. Selectors use semantic class names, no hashed classes. Tags, formats and update dates are not returned.",
    "recorded_at": "2026-11-08T16:35:00.000Z",
    "recorded_by": "wield-forge (claude-haiku agent)"
  },
  "requires_login": false,
  "schema": "https://wield.run/schema/recipe/v1.json",
  "site": {
    "country": "CH",
    "id": "opendata.swiss",
    "language": "de",
    "name": "opendata.swiss",
    "origin": "https://opendata.swiss",
    "origins": [
      "https://opendata.swiss"
    ]
  },
  "steps": [
    {
      "description": "Server-rendered dataset search /de/dataset?q=…; read-only GET. Each result is an li.dataset-item with a heading link to /de/dataset/<name>, the organisation in span.organization and the description paragraph in the dataset content.",
      "expect": {
        "assert": "status == `200` && contains(body, 'dataset')",
        "content_type": "html",
        "status": [
          200
        ]
      },
      "extract": {
        "html_items": {
          "datasets": {
            "fields": {
              "description": {
                "selector": "div.dataset-content > p:last-child"
              },
              "href": {
                "attr": "href",
                "selector": "h3.dataset-heading a"
              },
              "organization": {
                "selector": "span.organization"
              },
              "title": {
                "selector": "h3.dataset-heading a"
              }
            },
            "max": 60,
            "selector": "li.dataset-item"
          }
        }
      },
      "id": "search",
      "request": {
        "headers": {
          "Accept": "text/html"
        },
        "method": "GET",
        "query": {
          "q": "{{params.query}}"
        },
        "url": "/de/dataset"
      }
    }
  ],
  "task": "Suche offene Daten der Schweiz",
  "tos": {
    "notes": "Not reviewed. One search page per call, the same page a visitor loads. The site's terms on automated access were not checked.",
    "reviewed": false
  },
  "verify": {
    "checks": [
      "length(output.datasets) > `0`",
      "length(output.datasets[?starts_with(url, 'https://opendata.swiss/de/dataset/')]) == length(output.datasets)",
      "length(output.datasets[?title != `null`]) == length(output.datasets)"
    ],
    "example_params": {
      "query": "Verkehr"
    },
    "max_ms": 5000
  },
  "version": 1
}