Discover/Gov API
live

Gov 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.

Endpoint health
verified 2h ago
get_dashboard
get_infographics
get_product_metadata
get_rbi_records
get_plfs_frequency
11/11 passing latest checkself-healing
Endpoints
11
Updated
21d ago

What is the Gov 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.

Try it

No input parameters required.

api.parse.bot/scraper/fe1984a3-bc72-400c-ac08-cc52def9103a/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/fe1984a3-bc72-400c-ac08-cc52def9103a/get_dashboard' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace esankhyiki-mospi-gov-in-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""
MoSPI India Statistics API - Usage Example

Get your API key from: https://parse.bot/settings
"""
from parse_apis.mospi_india_statistics_api import (
    MoSPI, Series, ProductId, NotFoundError
)

mospi = MoSPI()

# Fetch the dashboard overview with themes, products, and trends
dashboard = mospi.dashboards.get()
print(dashboard.infogrphicCount, "infographics published")
for theme in dashboard.themes[:3]:
    print(theme.name, theme.description[:60])

# Fetch product metadata for RBI
rbi_product = mospi.products.get(product_id=ProductId.RBI)
print(rbi_product.product, rbi_product.category, rbi_product.time_period)

# List RBI indicators and drill into one indicator's trade records
indicator = mospi.rbiindicators.list(limit=1).first()
if indicator:
    print(indicator.indicator_code, indicator.label)
    for record in indicator.records.list(limit=3):
        print(record.year, record.trade, record.value, record.unit)

# Query NAS data with a specific series
for nas_record in mospi.nasrecords.list(series=Series.CURRENT, indicator_code="1", limit=3):
    print(nas_record.industry, nas_record.current_price, nas_record.unit)

# Typed error handling around a product lookup
try:
    product = mospi.products.get(product_id="nas")
    print(product.product, product.data_source)
except NotFoundError as exc:
    print(f"Product not found: {exc}")

print("exercised: dashboards.get / products.get / rbiindicators.list / records.list / nasrecords.list")
All endpoints · 11 totalmissing one? ·

Fetches key statistical highlights, themes, visual trends, infographic count, and the product list from the MoSPI dashboard. Returns the current state of the portal's front page data including theme classifications, trend visualizations, and all available statistical products.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "themes": "array of theme objects with theme_id, name, description, sub_theme array",
    "products": "array of product objects with id, product, title, category, period, url",
    "visualTrends": "array of trend objects with trend_id, trend_name, description, visual_link",
    "infogrphicCount": "integer total count of published infographics"
  },
  "sample": {
    "data": {
      "themes": [
        {
          "name": "Financial Statistics",
          "isActive": 1,
          "theme_id": 13,
          "sub_theme": [
            {
              "theme_id": 13,
              "product_url": "/macroindicators?product=rbi",
              "product_name": "Reserve Bank of India (RBI)",
              "sub_theme_id": 24
            }
          ],
          "description": "Provides information related to various financial and economic sectors.",
          "theme_order": 7
        }
      ],
      "products": [
        {
          "id": "nss75e",
          "url": "/macroindicators?product=nss75e",
          "type": "Literacy Rate",
          "title": "Household Social Consumption on Education in India",
          "period": "July 2017 - June 2018",
          "product": "NSS75E",
          "category": "NSS Surveys",
          "product_id": 36
        }
      ],
      "visualTrends": [
        {
          "trend_id": 6,
          "trend_name": "Periodic Labor Force Survey",
          "description": "PLFS data...",
          "trend_order": 6,
          "visual_link": "/macroindicators?product=plfs&tab=chart"
        }
      ],
      "infogrphicCount": 229
    },
    "status": "success"
  }
}

About the Gov API

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.

Reliability & maintenanceVerified

The Gov API is a managed, monitored endpoint for esankhyiki.mospi.gov.in — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when esankhyiki.mospi.gov.in changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official esankhyiki.mospi.gov.in API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2h ago
Latest check
11/11 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • 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_data with series set 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_dashboard themes with metadata from get_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_filters to scope time-series analysis.
  • Monitor monthly employment indicators by querying get_plfs_data with frequency code 3 and a specific indicator_code.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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.

Frequently asked questions
Does MoSPI's eSankhyiki portal have an official developer API?+
MoSPI does not publish a documented public developer API for eSankhyiki. The portal at esankhyiki.mospi.gov.in is designed for browser-based exploration of statistical data.
What demographic breakdowns does `get_plfs_data` return?+
Each PLFS data record includes 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?+
The 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.
Page content last updated . Spec covers 11 endpoints from esankhyiki.mospi.gov.in.
Related APIs in Government PublicSee all →
ibef.org API
Access comprehensive reports on Indian industries and states, browse the latest economic news, and get quick facts about India's economy all in one place. Search across thousands of resources to find detailed insights on specific sectors, regions, and economic trends.
data.rbi.org.in API
Access India's official monetary policy data including real-time money market operations, historical rates by date or month, and RBI reference rates. Retrieve the latest financial data releases directly from the Reserve Bank of India's official sources to monitor interest rates, liquidity operations, and market benchmarks.
data.stats.gov.cn API
Access comprehensive statistical data, economic indicators, and official reports from China's National Bureau of Statistics through simple searches and structured queries. Retrieve detailed articles, data releases, indicator trends, and downloadable documents to analyze China's economic and social statistics.
nseindia.com API
Track live NSE stock prices, monitor indices, analyze option chains, and access corporate announcements with real-time market data from India's National Stock Exchange. View equity quotes with full order books, identify top gainers/losers, analyze 52-week highs/lows, and explore historical price trends all in structured JSON format.
tradingeconomics.com API
Access real-time economic calendars, macroeconomic indicators, and commodity prices across global markets including G20 nations and emerging economies. Monitor historical charts, country-specific economic data, and the latest financial news to track economic trends and make informed investment decisions.
argenstats.com API
Access Argentina's key economic indicators including the EMAE activity index, inflation (IPC), dollar exchange rates (BLUE, CCL, MEP, OFICIAL, and more), country risk, employment, and poverty levels. Retrieve current values, historical series, and forecasting event listings from ArgenStats.
insights.apmiindia.org API
Access comprehensive financial data on Indian PMS providers and investment approaches, including AUM breakdowns, industry dashboards, and detailed provider information. Search and compare investment strategies, view discretionary AUM details, and generate insight reports to analyze the PMS market landscape.
nfib-sbet.org API
Access comprehensive small business economic data from the National Federation of Independent Business (NFIB), including the Optimism Index, historical time-series trends, and detailed survey microdata filterable by industry, region, and employer size. Useful for tracking small business sentiment and analyzing economic indicators over time.