Discover/Nic API
live

Nic APIcea.nic.in

Access Central Electricity Authority (CEA) India reports via API. Retrieve installed capacity, fuel, hydro, generation, and outstanding dues Excel files by month.

Endpoint health
verified 4d ago
list_all_excel_files
get_monthly_report_files
search_excel_files_by_month_range
3/3 passing latest checkself-healing
Endpoints
3
Updated
26d ago

What is the Nic API?

The CEA India API provides 3 endpoints for cataloging and retrieving Excel and PDF report files published by India's Central Electricity Authority at cea.nic.in. The list_all_excel_files endpoint scans all CEA report sections and returns a catalog with fields including url, filename, category, report_name, and source_page. Monthly and multi-month queries are also supported, covering report types such as installed capacity, fuel, hydro monitoring, renewable generation, and outstanding dues.

Try it
Filter to only scan report pages whose slug contains this keyword (e.g., 'hydro', 'installed', 'fuel'). If omitted or empty, scans all report pages.
api.parse.bot/scraper/acabdc29-d173-467a-87a1-f0ab5b919b44/<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/acabdc29-d173-467a-87a1-f0ab5b919b44/list_all_excel_files?report_page=installed' \
  -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 cea-nic-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.

"""Walkthrough: CEA India Excel Files API — discover and catalog power sector data files."""
from parse_apis.cea_india_excel_files_api import CEA, ReportType, InvalidDateFormat

client = CEA()

# List all Excel files from the "installed" report pages
for file in client.excelfiles.list(report_page="installed", limit=3):
    print(file.filename, file.category, file.month)

# Get a monthly report for a specific type and month
report = client.monthlyreports.get(report_type=ReportType.FUEL, month_year="2025-10")
print(report.report_title, report.month_year, len(report.pdf_files), "PDFs")

# Search for Excel files across a date range
result = client.monthlyexcelfiles.search(
    report_type=ReportType.INSTALLED,
    start_month="2025-08",
    end_month="2025-10",
    limit=5,
).first()
if result:
    print(result.filename, result.month_year, result.file_type)

# Handle a typed error for invalid date format
try:
    client.monthlyexcelfiles.search(
        report_type=ReportType.HYDRO,
        start_month="2025-01",
        end_month="2025-03",
        limit=3,
    ).first()
except InvalidDateFormat as exc:
    print(f"Invalid input: {exc}")

print("exercised: excelfiles.list / monthlyreports.get / monthlyexcelfiles.search")
All endpoints · 3 totalmissing one? ·

Scans report pages on the CEA website and returns a catalog of all currently available Excel files with metadata. Each file includes its download URL, filename, detected category, report name, month label, and source page slug. When report_page is provided, only pages whose slug contains the keyword are scanned; otherwise all 27+ report pages are checked. Pagination is not applicable — the full catalog is returned in one response.

Input
ParamTypeDescription
report_pagestringFilter to only scan report pages whose slug contains this keyword (e.g., 'hydro', 'installed', 'fuel'). If omitted or empty, scans all report pages.
Response
{
  "type": "object",
  "fields": {
    "errors": "array of error strings or null if no errors occurred",
    "excel_files": "array of ExcelFile objects with url, filename, file_type, category, report_name, month, source_page",
    "total_files": "integer - total number of unique Excel files found",
    "pages_scanned": "integer - number of report pages successfully scanned"
  },
  "sample": {
    "data": {
      "errors": null,
      "excel_files": [
        {
          "url": "https://cea.nic.in/wp-content/uploads/installed/2026/04/Website.xlsx",
          "month": "April 2026",
          "category": "installed",
          "filename": "Website.xlsx",
          "file_type": "xlsx",
          "report_name": "Installed Capacity",
          "source_page": "installed-capacity-report"
        }
      ],
      "total_files": 1,
      "pages_scanned": 1
    },
    "status": "success"
  }
}

About the Nic API

What the API Returns

The CEA India API surfaces Excel and PDF report files published by the Central Electricity Authority of India across multiple electricity sector domains. Each file record includes url, filename, file_type, category, report_name, month, and source_page. The list_all_excel_files endpoint accepts an optional report_page keyword filter (e.g., 'hydro', 'installed', 'fuel') to narrow which sections are scanned, and returns total_files and pages_scanned alongside the file array.

Monthly and Range Queries

The get_monthly_report_files endpoint accepts a month_year in YYYY-MM format and a report_type identifier (e.g., installed, executive, fuel, hydro, outstanding, resd, generation, transmission). It returns both pdf_files and excel_files arrays, along with report_entries — table row objects containing cells (array of strings) and links (array of URLs) — and report_title describing the queried section. A check_excel parameter controls whether Excel URLs are derived from PDF file links when direct Excel files are not present.

Multi-Month Range Search

The search_excel_files_by_month_range endpoint iterates across a month window defined by start_month and end_month (both in YYYY-MM format, defaulting to a 3-month lookback). It returns per-file records with month_year, report_type, file_size_bytes, and a verified flag, plus aggregate counts: months_checked, months_with_data, months_with_excel, and total_excel_files. This makes it straightforward to build time-series datasets from CEA reports without manually querying each month.

Report Type Coverage

Supported report_type values span the main CEA publication categories: installed capacity, executive summary, fuel reports, hydro monitoring, outstanding dues, RESD (renewable energy), generation statistics, and transmission. The API defaults to the current month when no month_year is supplied, so queries stay current without requiring callers to track the publication calendar.

Reliability & maintenanceVerified

The Nic API is a managed, monitored endpoint for cea.nic.in — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when cea.nic.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 cea.nic.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
4d ago
Latest check
3/3 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
  • Build a time-series dataset of India's installed generation capacity by querying search_excel_files_by_month_range with report_type: installed over multi-year ranges.
  • Monitor monthly hydro reservoir and generation data by polling get_monthly_report_files with report_type: hydro each month.
  • Catalog all available CEA Excel files across every report section using list_all_excel_files to audit data completeness before a bulk download.
  • Track outstanding dues owed to electricity generators by retrieving outstanding report files month-over-month.
  • Analyze fuel consumption trends for thermal power plants by extracting fuel report Excel files across a date range.
  • Aggregate renewable energy (RESD) generation statistics across quarters using the resd report type in search_excel_files_by_month_range.
  • Automate ingestion of CEA generation and transmission reports into a data warehouse by using get_monthly_report_files on a scheduled basis.
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 the Central Electricity Authority publish an official developer API?+
No. CEA (cea.nic.in) does not offer a documented public developer API or data service. Reports are published as downloadable Excel and PDF files on their website. This API provides structured programmatic access to those files.
What does `get_monthly_report_files` return beyond just file links?+
In addition to pdf_files and excel_files arrays, it returns report_entries — the rows of the report table, each with a cells array (text content) and a links array (URLs found in that row). It also returns report_title, report_type, and the queried month_year. This lets you inspect the report table structure, not just download the files.
How does the `verified` field work in `search_excel_files_by_month_range` results?+
The verified field on each file record indicates whether the Excel file URL was confirmed to exist directly, as opposed to being derived from a corresponding PDF link. When check_excel is enabled and no direct Excel file is found, a URL is generated from the PDF path; those entries will have verified set to false.
Does the API expose the actual data inside CEA Excel files, such as numeric capacity figures or generation values?+
Not currently. The API returns file metadata and download URLs — fields like url, filename, file_type, category, and month_year — but does not parse or extract the tabular contents of the Excel files themselves. You can fork this API on Parse and revise it to add an endpoint that downloads a specific file and returns its sheet contents as structured data.
Are there any gaps in historical coverage for older CEA reports?+
Coverage depends on which files CEA has published and retained on their website. Reports prior to the years CEA began posting Excel files digitally may not be available. The pages_scanned and months_with_data response fields help identify where the source has gaps. For report types with sparse historical archives, months_with_excel may be lower than months_checked.
Page content last updated . Spec covers 3 endpoints from cea.nic.in.
Related APIs in Government PublicSee all →
ccee.org.br API
Access real-time electricity spot prices (PLD) and search CCEE documents and board meeting minutes to stay informed on Brazil's energy market. Filter and retrieve current pricing data and historical meeting records to track energy market developments.
caiso.com API
Access real-time and intraday data from California's electricity grid (CAISO), including current demand and forecasts, generation supply mix, renewable energy levels, CO2 emissions and carbon intensity, locational marginal prices (LMPs), and overall grid operating status.
citypower.co.za API
Check real-time loadshedding schedules, outage status, and electricity tariffs for Johannesburg, plus access customer service information, billing details, and company news. Plan your power usage with loadshedding schedules and stay updated on City Power's latest announcements, FAQs, and contact information.
csr.gov.in API
Search and analyze India's corporate social responsibility initiatives by accessing company CSR spending, project details, and financial contributions broken down by state, sector, and year. Track top CSR performers, compare spending amounts across companies, and explore how businesses are investing in social causes nationwide.
energy-charts.de API
Monitor real-time electricity prices, production data, and market forecasts across Germany and Europe to track energy costs and grid conditions. Access day-ahead and intraday pricing, power generation forecasts, cross-border trading flows, and traffic signal alerts for comprehensive energy market insights.
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.
eskom.co.za API
Check real-time loadshedding status, browse electricity tariffs and procurement tenders, and access Eskom's media statements and investor relations documents. Stay informed about South Africa's power supply situation and find official announcements, tender opportunities, and financial information all in one place.
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.