Open Government, Thailand API
Overview
Thailand Open Government Data API (data.go.th) provides access to datasets published by Thai government agencies on topics like economy, environment, health, and infrastructure. An API key is required and can be obtained free of charge after registration on the portal. It supports JSON responses and is useful for research, civic apps, or learning to work with Southeast Asian public data.
Beginner Tip
Register for a free API key at data.go.th, then include it as the api_key query parameter; start with the /api/3/action/package_search endpoint to discover available datasets.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Open Government, Thailand",
"description": "Thailand Government Open Data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
success True if the CKAN action executed without errors result.results List of dataset metadata objects matching the search result.count Total number of matching datasets in the portal result.results[].title Dataset title, typically in Thai result.results[].resources Available file downloads including format and direct URL Implementation Example
const url = "https://data.go.th/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
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
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →City, Nantes Open Data
City, Nantes Open Data gives developers access to datasets published by Nantes Métropole in France, covering transport, environment, and urban planning.
Code.gov
Code.gov is the U.S.
Data.gov
⭐ Beginner's PickData.gov is the central repository for open data published by U.S.
Deutscher Bundestag DIP
Deutscher Bundestag DIP (Dokumentations- und Informationssystem) provides read access to official German Bundestag data including parliamentary activities, printed materials, persons, and procedures.
FEC
⭐ Beginner's PickThe FEC (Federal Election Commission) API lets you explore campaign finance data from US federal elections, including donations, candidate financials, and committee information.