Discover/indiacode.nic.in API
live

indiacode.nic.in APIindiacode.nic.in

Search and retrieve Indian Acts, sections, and subordinate legislation from indiacode.nic.in. 6 endpoints covering Central Acts, State Acts, and section text.

Endpoints
6
Updated
3mo ago
Try it
Results per page
Search type: acts, section, or subordinate
Search keyword
Pagination offset
api.parse.bot/scraper/e9bac3eb-7736-4209-8c66-c21f50945510/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/e9bac3eb-7736-4209-8c66-c21f50945510/search_acts?rpp=3&type=acts&query=tax&start=0' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 6 totalclick to expand

Search for Acts, Sections, or Subordinate Legislations by keyword.

Input
ParamTypeDescription
rppintegerResults per page
typestringSearch type: acts, section, or subordinate
queryrequiredstringSearch keyword
startintegerPagination offset
Response
{
  "type": "object",
  "fields": {
    "rpp": "integer",
    "start": "integer",
    "results": "array",
    "total_results": "integer"
  },
  "sample": {
    "data": {
      "rpp": 3,
      "start": 0,
      "results": [
        {
          "url": "https://www.indiacode.nic.in/handle/123456789/2253?view_type=search&col=123456789/1362",
          "date": "12-Apr-2017",
          "title": "The Goods and ServicesTax(Compensation to States) Act, 2017",
          "act_no": "15",
          "handle_id": "2253"
        },
        {
          "url": "https://www.indiacode.nic.in/handle/123456789/1834?view_type=search&col=123456789/1362",
          "date": "9-Dec-1980",
          "title": "The Hotel-ReceiptsTaxAct, 1980",
          "act_no": "54",
          "handle_id": "1834"
        },
        {
          "url": "https://www.indiacode.nic.in/handle/123456789/2247?view_type=search&col=123456789/1362",
          "date": "23-Aug-2017",
          "title": "The Integrated Goods and ServicesTax(Extension to Jammu and Kashmir) Act, 2017",
          "act_no": "27",
          "handle_id": "2247"
        }
      ],
      "total_results": 60
    },
    "status": "success"
  }
}

About the indiacode.nic.in API

The India Code API provides access to Indian legislation through 6 endpoints covering search, browsing, and full-text retrieval of Central and State Acts from indiacode.nic.in. The get_act_details endpoint returns an act's title, metadata, full section list, and subordinate legislation in a single call. The get_section_detail endpoint delivers both HTML and plain-text renditions of any section along with its footnotes.

Search and Browse Legislation

The search_acts endpoint accepts a query keyword and an optional type parameter — acts, section, or subordinate — to narrow results. Pagination is controlled via start and rpp (results per page), and the response includes total_results so callers can page through large result sets. browse_central_acts supports a browse_type parameter (e.g. shorttitle) to iterate through the Central Acts catalogue in sorted order.

Act Details and Section Content

get_act_details takes a handle_id (for example, 2160) and returns the act's title, act_id, a metadata object, the full sections array, and a subordinate_legislation object listing any linked rules or regulations. Once you have section IDs from that response, get_section_detail accepts the full-format act_id (e.g. AC_CEN_37_85_00001_201618_1517807328460) and a section_id to return content_html, content_text, footnote_html, and footnote_text for that specific provision.

State Acts and Bulk Structured Output

get_state_acts browses legislation for a specific state using a state handle_id (e.g. 2454 for Andaman & Nicobar Islands), returning paginated results in the same format as the Central Acts browse. For bulk extraction, scrape_act_full_structured accepts a handle_id and an optional limit on the number of sections to fetch, and returns a single structured JSON containing all section contents alongside sections_scraped and total_sections_in_act counts — useful when you need an entire act without assembling it section by section.

Common use cases
  • Build a full-text search index of Indian Central and State Acts using search_acts with keyword queries.
  • Display act summaries with metadata and linked subordinate legislation via get_act_details.
  • Render individual statutory provisions with footnotes using content_html from get_section_detail.
  • Export complete acts as structured JSON for offline legal reference using scrape_act_full_structured.
  • Build a state-wise legislation browser by iterating state handle IDs through get_state_acts.
  • Track amendments and related rules by parsing the subordinate_legislation object returned by get_act_details.
  • Power a legal research tool that maps section IDs to plain-text content for NLP processing.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 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 indiacode.nic.in have an official developer API?+
India Code does not publish a documented public REST API for third-party developers. The indiacode.nic.in site is a government legislative information system maintained by the Ministry of Law and Justice, and no official API credentials or documentation are available.
What does `get_act_details` return beyond the act text?+
It returns the act's title, act_id, a metadata object (which includes legislative details such as enactment year and ministry), a sections array listing all sections with their IDs, and a subordinate_legislation object enumerating any rules, regulations, or orders made under that act. You use the section IDs from this response as inputs to get_section_detail.
Does `scrape_act_full_structured` always return all sections?+
Not necessarily. The optional limit parameter caps how many sections have their content fetched. The response includes both sections_scraped and total_sections_in_act, so you can detect when a limit was applied and make additional calls or adjust the limit to retrieve the full act.
Does the API expose bill tracking, parliamentary debate records, or gazette notifications?+
Not currently. The API covers searching Acts and Subordinate Legislation, browsing Central and State Acts, and retrieving section-level text and footnotes. You can fork it on Parse and revise it to add an endpoint targeting gazette or bill-related content.
Are there any known coverage gaps for State Acts?+
State Act coverage depends on what indiacode.nic.in has digitised and indexed. Some states or older legislation may have incomplete section text or missing metadata. The sections_scraped vs total_sections_in_act fields in scrape_act_full_structured are a practical indicator of gaps for any given act.
Page content last updated . Spec covers 6 endpoints from indiacode.nic.in.
Related APIs in Government PublicSee all →
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
mahatenders.gov.in API
Access Maharashtra government tenders from mahatenders.gov.in, browsing them by closing date or by organization with full tender details and pagination support. Find and review procurement opportunities across different government departments in one place.
India Code API – Indian Legislation Data · Parse