Open Government, Lithuania API

Free to Use Varies (check documentation)

Overview

The Open Government Lithuania API provides free public access to Lithuanian government datasets through a REST interface, covering areas such as public registries, statistics, geography, and legal documents. No authentication is required, making it easy to start experimenting immediately. It is a useful resource for developers building applications that need official Lithuanian public data.

💡

Beginner Tip

Start by calling https://data.gov.lt/public/api/1/datasets to retrieve a list of available datasets. Each dataset object includes an id you can use to fetch specific records or download resource files.

Available Data

Use case: Integrate lithuania government open data data into web and mobile applications
Open Government, Lithuania data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Open Government, Lithuania",
    "description": "Lithuania Government Open Data",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

items List of dataset objects returned for the current page
items[].id Unique numeric identifier for the dataset
items[].title Name of the dataset, typically in Lithuanian
items[].organization Name of the Lithuanian government body that published the dataset
total Total number of datasets available in the portal
items[].formats List of available file formats for the dataset resources (e.g., CSV, JSON, XML)

Implementation Example

const url = "https://data.gov.lt/public/api/1";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

400 Bad Request Unsupported query parameter name or value in the request URL
Refer to the API documentation at https://data.gov.lt/public/api/1 to see which filter parameters are accepted for each endpoint
Response fields contain Lithuanian text only The API returns metadata in Lithuanian by default
Check if the API supports a lang or locale parameter; otherwise parse the Lithuanian field values or use a translation API alongside the data
Empty datasets array The pagination offset exceeds the total dataset count
Fetch the first page with no offset, read the total field, and calculate the correct number of pages before iterating

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 377ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →