Open Government, Mexico API
Overview
The Open Government Mexico (datos.gob.mx) API provides access to thousands of datasets published by Mexican federal government agencies, covering topics such as health, education, security, and infrastructure. No API key is needed — the portal uses a CKAN-compatible API that works with simple GET requests. It complements the INEGI statistical API by offering a broader catalog of raw government datasets.
Beginner Tip
Search for datasets using https://datos.gob.mx/busca/api/3/action/package_search?q=salud to find health-related data. Each dataset entry includes a resources array with direct download links or sub-API endpoints you can query for the actual records.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Open Government, Mexico",
"description": "Mexico Government Open Data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
success Whether the API request was handled successfully result.count Total number of datasets matching the search term result.results[].title Display name of the dataset in Spanish result.results[].organization Mexican government agency that published the dataset result.results[].resources List of files and endpoints available for the dataset result.results[].tags Classification keywords to help discover and filter the dataset Implementation Example
const url = "https://datos.gob.mx/";
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
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Bank Negara Malaysia Open Data
⭐ Beginner's PickBank Negara Malaysia Open Data provides free access to official financial data published by Malaysia's central bank, including exchange rates, interest rates, and key economic indicators.
BCLaws
BCLaws gives you free access to the full text of British Columbia's laws and regulations.
Brazil
⭐ Beginner's PickBrasilAPI is a free, community-driven API that centralizes public data about Brazil in one easy-to-use place.
Brazil Central Bank Open Data
The Brazil Central Bank Open Data API provides free access to official financial and economic data from Brazil s central bank (Banco Central do Brasil).
Brazil Receita WS
Brazil Receita WS lets you look up official information about Brazilian companies using their CNPJ (tax registration number).