NewMCP for AI
Lithuanian Data Portal documentation
How to find, understand and get the portal’s data — in the browser, through the API or with an AI assistant.
Choose a section
Three ways in
Clicking through the portal, calling the API or asking an AI assistant — it all starts here.
User guide
How to use the portal: smart search, the data catalogue and previewing datasets, downloading, and portal settings.
ReadData API
Programmatic access to every dataset: JSON queries, filters, sorting and export to CSV, Parquet or Excel — with live examples.
ReadNewAI assistants
Connect this documentation to your AI assistant over MCP — it answers from the guide and links to the source.
ReadData API
The same data, one request away
Every dataset on the portal is available programmatically: pick columns, filter, sort and get JSON back. This example returns the counties with the highest average pay in 2024.
- No sign-up and no API key
- Export to CSV, NDJSON, Parquet or XLSX
- A ready-made request in every dataset’s Export window
curl -X POST "https://api.dataportal.gov.lt/namespaces/188600177/tables/S3R640_M3060807_1_en/query" \
-H "Content-Type: application/json" \
-d '{
"select": "counties,s3r640",
"filter": "time_period._co=2024",
"sort": "-s3r640",
"limit": 3
}'import requests
url = "https://api.dataportal.gov.lt/namespaces/188600177/tables/S3R640_M3060807_1_en/query"
query = {
"select": "counties,s3r640",
"filter": "time_period._co=2024",
"sort": "-s3r640",
"limit": 3
}
rows = requests.post(url, json=query).json()["data"]const url = "https://api.dataportal.gov.lt/namespaces/188600177/tables/S3R640_M3060807_1_en/query";
const res = await fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"select": "counties,s3r640",
"filter": "time_period._co=2024",
"sort": "-s3r640",
"limit": 3
}),
});
const { data } = await res.json();Response
{
"data": [
{ "counties": "Capital Region", "s3r640": 2560.8 },
{ "counties": "Vilnius county", "s3r640": 2560.8 },
{ "counties": "Kaunas county", "s3r640": 2505.1 }
],
"total": 13,
"total_pages": 5,
"current_page": 1
}