About this API
eSankhyiki, launched in 2024 by India's Ministry of Statistics and Programme Implementation (MoSPI), is a single platform that brings the country's official statistics together in one place. Its REST API (host api.mospi.gov.in) exposes macroeconomic series programmatically — the documentation covers several endpoints, the best-documented being the Wholesale Price Index (WPI). A GET request with parameters such as year, month and Format=JSON returns records with index values broken down by commodity groups and sub-groups (primary articles, fuel & power, manufactured products). The data is free and published as Indian open government data; MoSPI releases its reference code, including a pilot MCP server, under the MIT License. Because the server rejects cross-origin requests, the API suits server-side integrations, data pipelines and AI-agent tooling rather than direct browser calls.
Frequently asked questions
Do I need an API key?
No. The tested public endpoint (e.g. /api/wpi/getWpiRecords) returns JSON and HTTP 200 with no authorization header or key. The manual mentions a token, but the open statistical endpoints respond without authentication.
What data does this API return?
Official Indian macroeconomic statistics published by MoSPI, chiefly the Wholesale Price Index (WPI) broken down by commodity groups (primary articles, fuel & power, manufactured products). Each record carries year, month, group and index value as JSON.
Can this API be called directly from a browser?
No. The server rejects requests carrying a browser Origin header with HTTP 403 (even though CORS headers appear in the response), so front-end code cannot read the data. The API must be called server-side — which is why there is no live 'Try it' button here.
Who runs this API?
The Ministry of Statistics and Programme Implementation (MoSPI) and its National Statistical Office (NSO), Government of India, through the eSankhyiki platform — the single point of access to India's official statistics.