Skip to main content

Notes

  • Keyless for public data. The portal runs CKAN: every action is /api/3/action/{name}, and help_show?name={action} on the portal returns that action’s documentation.
  • Responses are {help, success, result}; on failure success is false and error replaces result, sometimes with HTTP 200, so check success.
  • The API lives under /dati on the host (https://data.gov.lv/dati/api/3/action/…). Metadata and field names are in Latvian.
  • The Register of Enterprises (organization ur) publishes its registers as DataStore resources: the company register (dataset uz, resource 25e80bf3-f107-4ab4-89ef-251b5b9374e9, filter on regcode, the 11-digit registration number), officers (dataset officers), LLC members (members), beneficial owners (patiesie-labuma-guveji), insolvency proceedings (maksatnespejas-procesi), historical names and annual-report financial data (gada-parskatu-finansu-dati). Get each one’s current resource id with datasets.get.

Endpoints

  • result.count is the total; page with start and rows.

Get a dataset

Get a resource

  • datastore_active true means rows.search works on it; otherwise download the url.
  • A read over POST (CKAN accepts every action as a JSON POST). Only resources with datastore_active true can be queried.

List publishing organizations