{"description":"Searches the data.NSW open-data portal (CKAN) like its dataset search: title, description, publishing organisation, tags, formats, last update and link. Up to 20 datasets per call, best match first.","effect":"read","id":"data.nsw.gov.au/search-open-data","keywords":["data.nsw","data.nsw.gov.au","open data","datasets","data portal","government data","statistics","ckan","Department of Premier and Cabinet","Roads and Traffic Authority of New South Wales","Audit Office of New South Wales","Treasury","Vegetation","FIS"],"output":{"schema":{"properties":{"datasets":{"items":{"properties":{"description":{"type":["string","null"]},"formats":{"items":{"type":"string"},"type":"array"},"modified":{"type":["string","null"]},"organization":{"type":["string","null"]},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"},"url":{"type":"string"}},"required":["title","url"],"type":"object"},"type":"array"},"query":{"type":"string"},"total":{"type":["integer","null"]}},"required":["query","datasets"],"type":"object"},"value":"{query: params.query, total: steps.search.count, datasets: (steps.search.results || `[]`)[?name != `null`].{title: title || name, description: notes || `null`, organization: organization.title || `null`, tags: (tags || `[]`)[:8].name, formats: (resources || `[]`)[?format != '' && format != `null`].format, modified: metadata_modified || `null`, url: join('', ['https://data.nsw.gov.au/data/dataset/', name])}}"},"params":{"additionalProperties":false,"properties":{"query":{"description":"Words to search datasets for, e.g. 'Department of Premier and Cabinet'","maxLength":200,"minLength":2,"type":"string"}},"required":["query"],"type":"object"},"provenance":{"method":"har","notes":"CKAN's documented read API, the one the portal's own dataset search calls. Verified live with the portal's three most used tags. About: data.NSW brings together a list of NSW Government datasets available in one searchable website. The NSW Government aims to make data more accessible to the public and to industry to stimulate innovati","recorded_at":"2026-11-08T17:38:31.199Z","recorded_by":"wield-forge family ckan (CKAN API template)"},"requires_login":false,"schema":"https://wield.run/schema/recipe/v1.json","site":{"country":"AU","id":"data.nsw.gov.au","language":"en","name":"data.NSW","origin":"https://data.nsw.gov.au","origins":["https://data.nsw.gov.au"]},"steps":[{"description":"CKAN's package_search action, the API the portal's own dataset search uses.","expect":{"assert":"body.success == `true`","content_type":"json","status":[200]},"extract":{"json":{"count":"result.count","results":"result.results"}},"id":"search","request":{"headers":{"Accept":"application/json"},"method":"GET","query":{"q":"{{params.query}}","rows":"20"},"url":"/data/api/3/action/package_search"}}],"task":"Search open datasets on data.NSW","tos":{"notes":"Not reviewed. Public open-data catalogue; one API search per call. Dataset licences vary: check each dataset's licence.","reviewed":false},"verify":{"checks":["length(output.datasets) > `0`","length(output.datasets[?starts_with(url, 'https://data.nsw.gov.au/data/dataset/')]) == length(output.datasets)"],"example_params":{"query":"Department of Premier and Cabinet"},"max_ms":8000},"version":1}