Nic APIegazette.nic.in ↗
Access recent Extraordinary and Weekly Indian gazette publications, browse by category, and filter the full directory back to 1926 via 3 structured endpoints.
What is the Nic API?
The eGazette API provides structured access to official Indian Government Gazette publications across 3 endpoints, returning fields like ministry, department, subject, gazette ID, issue date, and file size. The get_recent_gazettes endpoint retrieves the latest Extraordinary and Weekly gazette listings from the India eGazette portal homepage, while get_gazettes_by_category and get_gazette_directory enable filtered access by category, part/section, and year.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/4ab86125-80f1-43b5-8008-7de7c06ebde9/get_recent_gazettes' \ -H 'X-API-Key: $PARSE_API_KEY'
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 egazette-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.
"""India eGazette API — browse official gazette publications from egazette.gov.in."""
from parse_apis.India_eGazette_API import EGazette, CategoryId, GazetteCategory, CategoryNotFound
client = EGazette()
# List the most recent extraordinary gazettes from the homepage.
for gazette in client.gazettes.list_recent(limit=3):
print(gazette.ministry, gazette.publish_date, gazette.gazette_id)
# Search the gazette directory for Extra Ordinary gazettes in 2026.
result = client.gazettes.search(category=GazetteCategory.EXTRA_ORDINARY, year="2026", limit=1).first()
if result:
print(result.ministry, result.subject, result.file_size)
# List categorized uploads — Bills & Acts (category 1).
for item in client.category_gazettes.list(category_id=CategoryId.BILLS_AND_ACTS, limit=3):
print(item.ministry___organization, item.part_and_section, item.gazette_id)
# Typed error handling for an invalid category.
try:
for item in client.category_gazettes.list(category_id=CategoryId.LAND_ACQUISITION, limit=2):
print(item.subject, item.publish_date)
except CategoryNotFound as exc:
print(f"Category error: {exc}")
print("exercised: gazettes.list_recent / gazettes.search / category_gazettes.list / CategoryNotFound")
Fetches the homepage listing of the most recent Extra Ordinary and Weekly Gazettes published on the India eGazette portal. Returns up to 4 extraordinary and 3 weekly gazette entries currently displayed on the homepage. No parameters needed — always returns the latest publications.
No input parameters required.
{
"type": "object",
"fields": {
"weekly": "array of weekly gazette objects with ministry, subject, publish_date, gazette_id, and file_size",
"extraordinary": "array of extraordinary gazette objects with ministry, subject, publish_date, gazette_id, and file_size"
},
"sample": {
"data": {
"weekly": [
{
"subject": "This Gazette may contains Multiple Subjects",
"ministry": "This Gazette may contains Multiple Ministries",
"file_size": "0.55 MB",
"gazette_id": "CG-DL-W-06062026-273207",
"publish_date": "06-Jun-2026"
}
],
"extraordinary": [
{
"subject": "JAN VISHWAS,....",
"ministry": "Ministry of Defence",
"file_size": "0.34 MB",
"gazette_id": "CG-DL-E-11062026-273325",
"publish_date": "11-Jun-2026"
},
{
"subject": "Appoints Two Non Official Member in PPVFRA...",
"ministry": "Ministry of Agriculture and Farmers Welfare",
"file_size": "0.57 MB",
"gazette_id": "CG-DL-E-11062026-273324",
"publish_date": "11-Jun-2026"
}
]
},
"status": "success"
}
}About the Nic API
What the API Returns
The eGazette API exposes structured data from egazette.nic.in, the official portal for Indian Government Gazette publications. Each response includes consistent fields across endpoints: ministry, department, office, subject, category, part_and_section, issue_date, publish_date, gazette_id, and file_size. These fields map directly to how the portal organizes official notifications, acts, land acquisition orders, and election documents.
Endpoint Details
get_recent_gazettes requires no parameters and returns up to 4 extraordinary and 3 weekly gazette entries currently shown on the portal homepage — useful for polling for new publications. get_gazettes_by_category accepts a category_id string (e.g. 1 for Bills & Acts, 2 for Election & Bye-Election, 3 for Land Acquisition, 4 for Delhi notices) and returns the most recent uploads for that category, including the s_no serial number and office field not present in all endpoints.
Directory Filtering
get_gazette_directory accepts three optional parameters — year (1926–2026), category ('Extra Ordinary' or 'Weekly'), and part_section (a numeric code whose valid values depend on the selected category) — and returns the first page of up to 15 matching gazette entries plus a total integer indicating how many records match the query. This makes it suitable for building pagination logic or scoping historical lookups to a specific gazette part.
Historical Coverage
The directory endpoint supports year values back to 1926, giving access to decades of official gazette history. The gazette_id field returned across all endpoints can be used as a stable identifier to reference or look up specific publications on the source portal.
The Nic API is a managed, monitored endpoint for egazette.nic.in — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when egazette.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 egazette.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.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Monitor new Bills and Acts by polling
get_recent_gazettesfor changes in the extraordinary gazette listing - Build a land acquisition alert system using
get_gazettes_by_categorywith category_id 3 to surface new orders - Audit election-related notifications by filtering category_id 2 for Bye-Election gazette entries
- Retrieve historical gazette records for a specific year and part/section using
get_gazette_directorywith the year parameter - Cross-reference ministry-specific notifications by filtering directory results by the
ministryfield - Count total gazette publications for a given year and category using the
totalfield from the directory endpoint - Compile a structured archive of Weekly gazettes by iterating
get_gazette_directorywith category set to 'Weekly'
| 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 | 100 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 egazette.nic.in offer an official developer API?+
What does get_gazette_directory return and how do I filter it?+
total count of all matching records. You can filter by year (any 4-digit year from 1926 to 2026), category ('Extra Ordinary' or 'Weekly'), and part_section (a numeric code). All three parameters are optional and default to the current year and 'Extra Ordinary' if omitted. The valid part_section values depend on which category you select.Does the API return the full text or PDF content of gazette documents?+
gazette_id can be used to reference the specific publication on the eGazette portal. You can fork this API on Parse and revise it to add an endpoint that fetches or links directly to gazette document files.