Government — entry 061 of 90
Open Government, Mexico
INEGI (Mexico's national statistics institute) publishes several token-gated REST APIs rather than a keyless open-data catalogue — a live call against its flagship Indicadores API returned a structured JSON error for an invalid token rather than data, confirming a registered token is required (`auth` corrected from `None`). Once authenticated, it serves economic and demographic indicators (INPC, GDP, population) as JSON or XML, and the same responses carry a wildcard `Access-Control-Allow-Origin` header. A separate token-gated API (DENUE) covers the national business directory.
AuthenticationAPI KeySign up with the provider to obtain credentials.
HTTPSSupportedTraffic is encrypted in transit.
CORSEnabledCallable directly from browser JavaScript.
PricingFreeNo paid tier — free for the documented use case.
FormatsJSON, XMLResponses can be requested as JSON or XML.
GreatAPIs Score
Score84
Authentication15/25API key required
Pricing20/20Free to use
Docs14/20Documentation URL provided
Formats15/15Supports 2 response formats
Freshness20/20Verified within 6 months
Auth quickstart
- Sign up with the provider to get an API key.
- Send it on every request as a header
Authorization: <key> - The exact header isn't documented — Authorization is a common default; confirm in the provider's docs.
Stored keyNo key stored
Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.