Government — entry 061 of 90

Open Government, Mexico

Verified Jul 2026

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.

open-datagovernment-datastatisticsmexico
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

Score84out of 100
Authentication15/25API key required
Pricing20/20Free to use
Docs14/20Documentation URL provided
Formats15/15Supports 2 response formats
Freshness20/20Verified within 6 months

Embed this badge

Scored 84 on greatapis.com
<a href="https://greatapis.com/api/open-government-mexico/"><img src="https://greatapis.com/badge/open-government-mexico.svg" alt="Scored 84 on greatapis.com"></a>

Auth quickstart

  1. Sign up with the provider to get an API key.
  2. Send it on every request as a headerAuthorization: <key>
  3. 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.