{"ok":true,"site":"data-gov","host":"data.gov.uk","about":"data.gov.uk (National Data Library): the UK government's open data directory. The CLI searches and reads dataset metadata through the public CKAN JSON API, lists data files and previews from dataset pages, and browses the curated theme collections and their chart data.","commands":[{"command":"search-datasets","summary":"Search the UK open data directory (CKAN package_search). Returns dataset metadata including publisher, licence and resources. Filter with Solr fq, sort, and page by offset.","params":[{"name":"q","type":"string","required":true,"description":"Free-text keyword query, e.g. 'air quality'"},{"name":"fq","type":"string","description":"Solr filter query. Examples: organization:bristol-city-council (publisher slug), res_format:CSV (file format), license_id:uk-ogl (Open Government Licence only). Combine filters with AND."},{"name":"sort","type":"string","description":"Sort order. 'score desc, metadata_modified desc' means most relevant; 'metadata_modified desc' means most recent.","oneOf":["score desc, metadata_modified desc","metadata_modified desc","title_string asc","title_string desc"]},{"name":"rows","type":"number","description":"Number of results per page (max 1000)","default":20},{"name":"start","type":"number","description":"Result offset for pagination (0-based)","default":0}],"exampleUrl":"https://clify-dev.netlify.app/data-gov/search-datasets?q=air+quality"},{"command":"get-dataset","summary":"Get full metadata for one dataset by its UUID or CKAN name (CKAN package_show). Includes publisher, licence, description and every resource with its URL, format and date.","params":[{"name":"id","type":"string","required":true,"description":"Dataset UUID (the first path segment after /dataset/ on data.gov.uk) or CKAN dataset name"}],"exampleUrl":"https://clify-dev.netlify.app/data-gov/get-dataset?id=bfaf890c-0ebc-42f7-954d-9cde251902a2"},{"command":"list-dataset-files","summary":"List the data links shown on a dataset page on data.gov.uk: name, format, date, and the link or preview URL for each file.","params":[{"name":"id","type":"string","required":true,"description":"Dataset UUID"},{"name":"slug","type":"string","required":true,"description":"Dataset slug (the CKAN 'name'), e.g. bristol-air-quality"}],"exampleUrl":"https://clify-dev.netlify.app/data-gov/list-dataset-files"},{"command":"preview-datafile","summary":"Open the preview page for one data file of a dataset. Shows the file title and a preview, or a message saying no preview is available.","params":[{"name":"id","type":"string","required":true,"description":"Dataset UUID"},{"name":"slug","type":"string","required":true,"description":"Dataset slug"},{"name":"file_id","type":"string","required":true,"description":"Data file (CKAN resource) UUID, taken from a preview link or from resources[].id"}],"exampleUrl":"https://clify-dev.netlify.app/data-gov/preview-datafile"},{"command":"list-filter-options","summary":"List the filter values the directory search offers (publisher names, topics and formats). Use these to build search filters.","params":[],"exampleUrl":"https://clify-dev.netlify.app/data-gov/list-filter-options"},{"command":"list-collections","summary":"List the curated theme collections on the data.gov.uk home page (Business and economy, Environment, etc.).","params":[],"exampleUrl":"https://clify-dev.netlify.app/data-gov/list-collections"},{"command":"list-collection-topics","summary":"List the topics inside a theme collection, e.g. environment has weather and air-quality.","params":[{"name":"theme","type":"string","required":true,"description":"Collection theme slug: business-and-economy, environment, government-and-parliament, land-and-property, people, transport, early-years"}],"exampleUrl":"https://clify-dev.netlify.app/data-gov/list-collection-topics"},{"command":"get-collection-topic","summary":"Get a collection topic page: headline chart title, description, the chart-data download link and the external 'get the data' link.","params":[{"name":"theme","type":"string","required":true,"description":"Collection theme slug, e.g. environment"},{"name":"topic","type":"string","required":true,"description":"Topic slug, e.g. weather, air-quality"}],"exampleUrl":"https://clify-dev.netlify.app/data-gov/get-collection-topic"},{"command":"download-collection-chart-data","summary":"Download the raw data behind a collection topic's headline chart, e.g. the UK annual mean temperature series.","params":[{"name":"theme","type":"string","required":true,"description":"Collection theme slug"},{"name":"topic","type":"string","required":true,"description":"Topic slug"}],"exampleUrl":"https://clify-dev.netlify.app/data-gov/download-collection-chart-data"}]}