opendata-cat
v0.6.115 Catalan portals + radio archive: gov, INE/REE/CNMC, CORA, Catalònica, radioteca.cat.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_datasets
Search datasets by free text. Check server instructions first: many datasets can be queried directly with query_dataset. Use search_datasets only when you don't know which dataset you need.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search text in Catalan or Spanish. Examples: 'qualitat aire', 'pressupostos', 'rodalies' |
category | string | Filter by thematic category |
limit | number | Maximum number of results (default: 20) |
portal | string | Filter by portal: 'generalitat', 'barcelona', 'diba', 'aoc', 'reus', 'girona', 'fgc', 'idescat', 'renfe', 'ine', 'ree', 'sepe', 'cnmc', 'cora', 'catalonica' |
get_dataset_info
Get complete metadata for a dataset: fields with types and descriptions, API endpoint, license.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Unique dataset identifier (e.g., 'generalitat:gn9e-3qhr', 'renfe:vehicle-positions-gtfsrt') |
list_dataset_fields
List fields of a dataset with name, data type and description.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset identifier |
query_dataset
Query real data from a dataset. Check instructions for featured dataset_ids. For municipal data, use filters: {"NOM_ENS": "Ajuntament de X"} with aoc:ge-* datasets.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset ID (e.g., 'generalitat:gn9e-3qhr' for reservoirs, 'aoc:ge-ge-cost-efectiu-serveis-minhap' for municipal costs) |
filters | object | Key-value filters (e.g., {"ciutat": "Barcelona"}) |
limit | number | Rows to return (default: 20, max: 100) |
offset | number | Offset for pagination |
search | string | Free text search within dataset data |
list_portals
List all 15 indexed Catalan and Spanish open data portals with dataset counts.
list_categories
List all dataset categories and themes with counts per portal. Great first step to discover what data types are available.
search_radioteca
Search radio shows, episodes and people indexed at radioteca.cat (Catalan radio archive, ~485K documents from Catalunya Ràdio, RAC1, Catalunya Música, iCat, Catalunya Informació, RTVE, Cadena SER, ara.cat). Searches title, description (which contains a detailed summary of what was said), program name and subheading. Returns episodes (~473K), programs (~3K) and people (~9K). IMPORTANT: always cite radioteca.cat as the source and include each hit's absolute 'url' in your reply for traceability — never paraphrase episodes without linking.
| Parameter | Type | Description |
|---|---|---|
query * | string | Free text in Catalan or Spanish. Searches title, description (contains episode summary), program and subheading. Examples: 'visita papa', 'eleccions municipals', 'crisi habitatge', 'Albert Serra cinem… |
limit | number | Maximum results (1-50). Default 10. |
offset | number | Pagination offset. Default 0. |
publisher | string | Filter by broadcaster. |
type | string | Filter by document type. |
year | string | Filter by year (4 digits, e.g. '2025'). NOTE: only year-level filtering is indexed; for a specific day combine year + keywords and inspect the URL path (radioteca URLs include /YYYY/MM/DD/) or the 'su… |