data.gov.lv
Open data portalsLVdata.gov.lv
The Latvian national open-data catalogue, almost entirely CC0.
Capabilities (18)
GET /v1/data/datagovlv/dataset1 creditFull metadata for one dataset: title, notes, licence, organization, tags, extras and the complete resource list with download URLs and formats.
GET /v1/data/datagovlv/dataset-dcat1 creditOne dataset serialised as DCAT-AP RDF in JSON-LD, with dcat:Distribution nodes for each resource (the EU data.europa.eu interchange form rather than CKAN's native shape).
GET /v1/data/datagovlv/dataset-names1 creditFlat JSON array of every dataset slug on the portal, in alphabetical order.
GET /v1/data/datagovlv/datasets1 creditSolr-backed search over every dataset published on the Latvian open data portal; returns a page of 20 full dataset records plus the total match count and facets.
GET /v1/data/datagovlv/dataset-suggest1 creditLightweight typeahead: matching datasets as {name, title, match_field} objects, no resources or descriptions.
GET /v1/data/datagovlv/group1 creditMetadata for one thematic group: title, description, image and dataset count.
GET /v1/data/datagovlv/group-datasets1 creditA page of up to 20 full dataset records belonging to one thematic group, with the group's total count.
GET /v1/data/datagovlv/groups1 creditEvery thematic group (subject category) on the portal with its name, display title, description and dataset count.
GET /v1/data/datagovlv/licenses1 creditEvery licence the portal offers publishers, as {id, title, url, od_conformance, osd_conformance} objects.
GET /v1/data/datagovlv/organization1 creditMetadata for one publishing organization: title, description, contact extras, dataset count and (optionally) its datasets.
GET /v1/data/datagovlv/organization-datasets1 creditA page of up to 20 full dataset records published by one organization, with the total count for that publisher.
GET /v1/data/datagovlv/organizations1 creditEvery publishing organization on the portal with its name, display title, description, image and dataset count.
GET /v1/data/datagovlv/resource1 creditMetadata for one file or API endpoint attached to a dataset: download URL, format, size, description and datastore flag.
GET /v1/data/datagovlv/resource-rows1 creditUp to 100 parsed rows of a tabular resource straight from CKAN's DataStore, with the column schema and total row count, so no file download or CSV parsing is needed.
GET /v1/data/datagovlv/resource-search1 creditSearches resource metadata (not datasets) across the whole portal and returns up to 50 matching resource records with their download URLs.
GET /v1/data/datagovlv/site-status1 creditThe portal's CKAN version, site title, locale and the list of installed CKAN extensions.
GET /v1/data/datagovlv/tag1 creditThe id, name and vocabulary of one tag, and optionally every dataset carrying it.
GET /v1/data/datagovlv/tags1 creditFlat JSON array of every free tag used on the portal.
Response example
The shape of data from datagovlv/dataset (Dataset detail). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"help": "https://data.gov.lv/dati/lv/api/3/action/help_show?name=package_show",
"success": true,
"result": {
"applicable_legislation": "http://data.europa.eu/eli/reg_impl/2023/138/oj",
"author": null,
"author_email": null,
"creator_user_id": "a3e5c20b-17d7-45e6-b100-2d190fa0ff11",
"frequency": "http://publications.europa.eu/mdr/authority/frequency/CONT",
"hvd_category": "http://data.europa.eu/bna/c_164e0bf5",
"id": "40d80be5-0c09-47c4-80f3-fad4bec19f33",
"isopen": false,
"issued": "2024-07-09",
"language": "lv",
"license_id": "CC0-1.0",
"license_title": "CC0-1.0",
"maintainer": "",
"maintainer_email": "meteo.dati@lvgmc.lv",
"metadata_created": "2022-10-25T15:09:41.515722",
"metadata_modified": "2026-10-21T02:32:39.397932",
"modified": "2024-10-14",
"name": "hidrometeorologiskie-noverojumi",
"notes": "Meteoroloģiskie un hidroloģiskie operatīvie dati par pēdējo stundu. Meteoroloģiskie un hidroloģiskie arhīva dati par pēdējām 365 dienām.",
"num_resources": 11,
"num_tags": 3,
"organization": {
"id": "3be449dc-edf3-46ae-a089-4e27ef5abd60",
"name": "lvgmc",
"title": "Latvijas Vides, ģeoloģijas un meteoroloģijas centrs",
"type": "organization",
"description": "Sniegt valsts attīstībai stratēģiski svarīgus augstas kvalitātes pakalpojumus ģeoloģijas, hidroloģijas, gaisa kvalitātes, klimatoloģijas, meteoroloģijas un bīstamo atkritumu apsaimniekošanas jomā, kā arī nodrošināt šo pakalpojumu sniegšanai nepieciešamās infrastruktūras efektīvu pārvaldīšanu.",
"image_url": "2017-09-12-052658.942827LVGMC1300-AM.png",
"created": "2017-06-16T09:04:49.460583",
"is_organization": true,
"approval_status": "approved",
"state": "active"
},
"owner_org": "3be449dc-edf3-46ae-a089-4e27ef5abd60",
"private": false,
"spatial_text": "Latvija",
"state": "active",
"title": "Hidrometeoroloģiskie novērojumi",
"type": "dataset",
"url": null,
"version": null,
"groups": [
{
"description": "",
"display_name": "Vide",
"id": "e479940a-ec31-4b14-971e-b6c961ae486e",
"image_display_url": "",
"name": "vide",
"title": "Vide"
}
],
"resources": [
{
"cache_last_updated": null,
"cache_url": "",
"conformsTo": "",
"created": "2022-10-25T15:10:27.134188",
"datastore_active": true,
"description": "Datu kopa satur meteoroloģisko parametru mērījumus par pēdējām 48 stundām. Datu kopa tiek atjaunota ik stundu. \r\n\r\nOperatīvajiem datiem veikta tikai pamata datu kontrole, līdz ar to iespējamas atšķirības vērtības, pēc tam, kad datiem veikta papildu datu pārbaude. \r\n\r\n**Station_id** – Meteoroloģiskās…",
"format": "CSV",
"hash": "",
"id": "17460efb-ae99-4d1d-8144-1068f184b05f",
"last_modified": "2026-10-21T02:17:09.593414",
"metadata_modified": "2026-10-21T02:17:09.631911",
"mimetype": "text/csv",
"mimetype_inner": "",
"name": "Meteoroloģiskie operatīvie dati",
"package_id": "40d80be5-0c09-47c4-80f3-fad4bec19f33",
"package_name": "hidrometeorologiskie-noverojumi",
"package_title": "Hidrometeoroloģiskie novērojumi",
"position": 0,
"resource_type": "",
"size": 1542057,
"state": "active",
"url": "https://data.gov.lv/dati/dataset/40d80be5-0c09-47c4-80f3-fad4bec19f33/resource/17460efb-ae99-4d1d-8144-1068f184b05f/download/meteo_operativie_dati.csv",
"url_type": "upload"
},
{
"cache_last_updated": null,
"cache_url": "",
"conformsTo": "",
"created": "2022-10-25T15:11:10.300536",
"datastore_active": "true",
"description": "Datu kopa satur hidroloģisko parametru mērījumus par pēdējām 48 stundām. Datu kopa tiek atjaunota ik stundu. \r\n\r\nOperatīvajiem datiem veikta tikai pamata datu kontAsk with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Dataset detail
Use data.gov.lv (datagovlv) from fastCRW Pergamon, capability "Dataset detail" (dataset). You already have a dataset name or UUID from a search and need its resources, licence or full description. Example options: id=hidrometeorologiskie-noverojumi. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovlv" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset as DCAT-AP JSON-LD
Use data.gov.lv (datagovlv) from fastCRW Pergamon, capability "Dataset as DCAT-AP JSON-LD" (dataset-dcat). You are feeding a European data catalogue or an RDF pipeline and want standards-shaped metadata instead of CKAN's package dict. Example options: id=hidrometeorologiskie-noverojumi. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovlv" and capability "dataset-dcat". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
All dataset names
Use data.gov.lv (datagovlv) from fastCRW Pergamon, capability "All dataset names" (dataset-names). You want the complete inventory of dataset ids to iterate over, rather than a scored search page. Example options: limit=100, offset=0. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovlv" and capability "dataset-names". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset search
Use data.gov.lv (datagovlv) from fastCRW Pergamon, capability "Dataset search" (datasets). You want to find datasets on this portal by keyword, filter, or recency, and you do not already know a dataset id. Example options: q=statistika, fq=res_format:CSV, sort=metadata_modified desc. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovlv" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
Per dataset. Measured live: CC0-1.0 on 1,446 of 1,567 datasets (92.3%) and CC BY 4.0 on 121 (7.7%).
https://data.gov.lv/dati/lvAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: data.gov.lv
Cache: up to 3600s
