{"description":"Searches data.gouv.fr, the French government open data portal, like its dataset search page: dataset title, link and short description, in the site's order. Also returns the total number of matching datasets as shown on the page. First page only (about 20 datasets). Returns an empty list when nothing matches.","effect":"read","id":"data.gouv.fr/search-open-data","keywords":["data.gouv.fr","data gouv","open data","données ouvertes","jeux de données","datasets","statistiques","population","transports","élections","france","government"],"output":{"schema":{"properties":{"datasets":{"items":{"properties":{"description":{"description":"Short description, may be truncated","type":["string","null"]},"title":{"type":"string"},"url":{"type":"string"}},"required":["title","url"],"type":"object"},"type":"array"},"query":{"type":"string"},"total_text":{"description":"Result count as shown on the page, e.g. '2754 résultats'","type":["string","null"]}},"required":["query","datasets"],"type":"object"},"value":"{query: params.query, total_text: steps.search.total_text || `null`, datasets: map(&{title: title, description: description || `null`, url: join('', ['https://www.data.gouv.fr', href])}, steps.search.datasets[?title != `null` && href != `null`] || `[]`)}"},"params":{"additionalProperties":false,"properties":{"query":{"description":"Search term, e.g. 'population', 'transports', 'élections'","maxLength":100,"minLength":2,"type":"string"}},"required":["query"],"type":"object"},"provenance":{"method":"har","notes":"One GET to /datasets/search?q=…, which answers 200 server-rendered HTML (Nuxt SSR) with 20 dataset articles per page. Titles and links come from the h3 link, descriptions from the short paragraph, and the result count from data-testid=search-result-count. Hrefs are relative (/datasets/…) and are joined to the origin. Views and download counts are not returned because only aria-labels carry them.","recorded_at":"2026-11-08T15:30:00.000Z","recorded_by":"wield-forge (claude-haiku agent)"},"requires_login":false,"schema":"https://wield.run/schema/recipe/v1.json","site":{"country":"FR","id":"data.gouv.fr","language":"fr","name":"data.gouv.fr","origin":"https://www.data.gouv.fr","origins":["https://www.data.gouv.fr"]},"steps":[{"description":"Server-rendered dataset search page /datasets/search?q=…; read-only GET. Each result is an article inside the result list; the title link is the h3 link.","expect":{"content_type":"html","status":[200]},"extract":{"html":{"total_text":{"selector":"[data-testid='search-result-count']"}},"html_items":{"datasets":{"fields":{"description":{"selector":"p.overflow-wrap-anywhere"},"href":{"attr":"href","selector":"h3 a"},"title":{"selector":"h3 a"}},"max":50,"selector":"ul li article"}}},"id":"search","request":{"headers":{"Accept":"text/html"},"method":"GET","query":{"q":"{{params.query}}"},"url":"/datasets/search"}}],"task":"Search French open datasets","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[?title != `null`]) == length(output.datasets)","length(output.datasets[?starts_with(url, 'https://www.data.gouv.fr/datasets/')]) == length(output.datasets)"],"example_params":{"query":"population"},"max_ms":5000},"version":1}