esankhyiki.mospi.gov.in APIesankhyiki.mospi.gov.in ↗
Access India's official macroeconomic data via the MoSPI eSankhyiki API: RBI indicators, NAS national accounts, PLFS labor surveys, infographics, and metadata.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/fe1984a3-bc72-400c-ac08-cc52def9103a/get_dashboard' \ -H 'X-API-Key: $PARSE_API_KEY'
Fetches the key statistical highlights, themes, and product list from the dashboard.
No input parameters required.
{
"type": "object",
"fields": {
"msg": "string indicating fetch status",
"data": "object containing themes, visualTrends, infogrphicCount, and products arrays"
},
"sample": {
"data": {
"msg": "Data fetched successfully",
"data": {
"themes": [
{
"name": "Financial Statistics",
"theme_id": 13
}
],
"products": [
{
"id": "mnre",
"title": "Renewable Power (Installed Capacity)",
"product": "MNRE",
"product_id": 32
}
],
"visualTrends": [
{
"trend_id": 6,
"trend_name": "Periodic Labor Force Survey"
}
],
"infogrphicCount": 215
}
},
"status": "success"
}
}About the esankhyiki.mospi.gov.in API
The MoSPI eSankhyiki API provides 11 endpoints covering India's official macroeconomic statistics published by the Ministry of Statistics and Programme Implementation. Using endpoints like get_rbi_records, get_nas_data, and get_plfs_data, developers can retrieve paginated time-series data for RBI trade indicators, National Accounts Statistics broken down by base year and price series, and Periodic Labour Force Survey records segmented by state, gender, sector, and age group.
Dashboard and Infographics
The get_dashboard endpoint returns the top-level structure of the eSankhyiki portal, including theme groupings, visual trend summaries, an infographic count, and the list of available products such as rbi, nas, plfs, and cpi. These product IDs feed directly into get_product_metadata, which returns each product's category, data source, frequency, time period coverage, and a plain-text description. The get_infographics endpoint delivers paginated infographic objects with fields for product_title, about_infographics, key_takeaways, source, and infographics_image. Keep the limit parameter at 10 or below — larger values on later pages can trigger upstream timeouts.
RBI and NAS Indicators
RBI data is accessed in two steps. First, get_rbi_indicators returns the full list of indicator codes and labels (e.g., code 1 for Direction of Foreign Trade). Then get_rbi_records accepts a required sub_indicator_code plus optional page and limit parameters, returning records with indicator, year, trade, value, and unit fields. National Accounts Statistics follow a similar pattern: get_nas_indicators exposes available base years, series types, frequency codes, and indicator codes, while get_nas_filters narrows down valid combinations. get_nas_data then returns paginated records carrying both current_price and constant_price values alongside base_year, series, year, indicator, industry, and unit.
PLFS Labour Force Data
The PLFS endpoints cover India's Periodic Labour Force Survey. get_plfs_frequency lists available frequency codes (Annual, Quarterly, Monthly). get_plfs_indicators accepts a frequency_code and returns the relevant indicator list with codes and visualization hints. get_plfs_data is the most granular endpoint, returning records with year, indicator, state, gender, sector, AgeGroup, value, and unit fields. The year filter expects a four-digit calendar year (e.g., 2023), not a fiscal year range. Pagination is controlled via page and limit parameters, with meta_data in the response providing totalRecords, totalPages, and recordPerPage.
- Track India's trade direction trends over time using RBI indicator records filtered by
sub_indicator_code. - Compare GDP components at current and constant prices using
get_nas_datawithseriesset to 'Current' or 'Constant'. - Analyze state-level labor force participation by gender and sector using PLFS records from
get_plfs_data. - Build a statistical dashboard overview by combining
get_dashboardthemes with metadata fromget_product_metadata. - Populate an economics research tool with infographic summaries and key takeaways from
get_infographics. - Filter NAS data by frequency (annual vs. quarterly) using
get_nas_filtersto scope time-series analysis. - Monitor monthly employment indicators by querying
get_plfs_datawith frequency code3and a specificindicator_code.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does MoSPI's eSankhyiki portal have an official developer API?+
What demographic breakdowns does `get_plfs_data` return?+
state, gender, sector (rural/urban), and AgeGroup fields alongside the indicator, year, value, and unit. You can filter results by frequency_code (Annual, Quarterly, Monthly) and indicator_code, and further narrow by a four-digit calendar year.Are there any pagination limitations I should know about?+
get_infographics endpoint is the most sensitive to pagination parameters — setting limit above 10 on later pages can cause upstream timeouts. For all other paginated endpoints (get_rbi_records, get_nas_data, get_plfs_data), the response includes a meta_data object with totalRecords, totalPages, and recordPerPage to help you navigate result sets safely.Does the API cover CPI or other MoSPI products beyond RBI, NAS, and PLFS?+
get_dashboard lists all available products (including cpi), and get_product_metadata returns metadata for any product ID. Dedicated data-record endpoints currently cover RBI, NAS, and PLFS. Endpoints for pulling CPI time-series records directly are not included in the current API. You can fork it on Parse and revise to add the missing endpoint.Can I retrieve NAS data for a specific industry or base year through filtering?+
get_nas_filters accepts series, frequency_code, and indicator_code to scope the valid filter combinations before querying. get_nas_data then returns records with an industry field and a base_year field in each row, but direct filtering by industry or base_year as query parameters is not exposed in the current API. You can fork it on Parse and revise to add those filter parameters.