{"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}