/v1/table
Table metadata (variables and value codes)
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/latvia-stats-api/v1/table" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/latvia-stats-api/v1/table", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/latvia-stats-api/v1/table");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/latvia-stats-api/v1/table",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"path": "VEK/PC/PCI/PCI021m",
"title": "Consumer price indices and changes by commodity groups (ECOICOP ver.2) by Commodity group (ECOICOP ver.2), Indicator and Time period",
"variables": [
{
"code": "ECOICOP_V2",
"text": "Commodity group (ECOICOP ver.2)",
"time": false,
"n_values": 375,
"sample_values": [
{
"code": "0",
"text": "GOODS AND SERVICES - TOTAL"
},
{
"code": "20.01",
"text": "Goods - total"
},
{
"code": "20.02",
"text": "Non-food goods"
},
{
"code": "20.03",
"text": "Services"
},
{
"code": "20.04",
"text": "Food, alcoholic beverages and tobacco"
},
{
"code": "01",
"text": "Food and non-alcoholic beverages"
}
]
},
{
"code": "ContentsCode",
"text": "Indicator",
"time": false,
"n_values": 6,
"sample_values": [
{
"code": "PCI021m2",
"text": "2010=100"
},
{
"code": "PCI021m3",
"text": "2015=100"
},
{
"code": "PCI021m",
"text": "2025=100"
},
{
"code": "PCI021m4",
"text": "12-month average over the previous 12-month average"
},
{
"code": "PCI021m5",
"text": "% over the previous period"
},
{
"code": "PCI021m6",
"text": "% over the corresponding period of previous year"
}
]
},
{
"code": "TIME",
"text": "Time period",
"time": true,
"n_values": 317,
"sample_values": [
{
"code": "2000M01",
"text": "2000M01"
},
{
"code": "2000M02",
"text": "2000M02"
},
{
"code": "2000M03",
"text": "2000M03"
…