Discover/devgan.in API
live

devgan.in APIdevgan.in

Access Indian legal acts (IPC, BNS, CrPC, and more) via API. Browse chapters, retrieve section text, classifications, cross-references, and search across 9 acts.

Endpoints
9
Updated
3mo ago
Try it

No input parameters required.

api.parse.bot/scraper/329dad50-19e1-4420-82c2-d39a09736dc4/<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/329dad50-19e1-4420-82c2-d39a09736dc4/list_acts' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 9 totalclick to expand

List all available acts on the site. Returns a static list of supported Indian legal acts with their abbreviations and internal IDs.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "acts": "array of act objects with abbreviation, full_name, and act_id"
  },
  "sample": {
    "data": {
      "acts": [
        {
          "act_id": "1",
          "full_name": "Indian Penal Code, 1860",
          "abbreviation": "IPC"
        },
        {
          "act_id": "10",
          "full_name": "Bharatiya Nyaya Sanhita, 2023",
          "abbreviation": "BNS"
        }
      ]
    },
    "status": "success"
  }
}

About the devgan.in API

The devgan.in API exposes 9 endpoints covering Indian Bare Acts including the IPC, BNS, CrPC, CPC, HMA, IDA, IEA, MVA, and NIA. Use get_section to retrieve a section's full text, offence classification, bail status, cognizance type, triable_by court, compoundability, and cross-references — all in a single call. Other endpoints cover chapter listings, flat section indexes, keyword search, and IPC-to-BNS cross-referencing.

Acts and Coverage

The API covers nine Indian statutes available on devgan.in: BNS (Bharatiya Nyaya Sanhita), IPC (Indian Penal Code), CrPC (Code of Criminal Procedure), CPC (Code of Civil Procedure), HMA (Hindu Marriage Act), IDA (Indian Divorce Act), IEA (Indian Evidence Act), MVA (Motor Vehicles Act), and NIA (Negotiable Instruments Act). list_acts returns the full set with abbreviations and internal IDs. get_act_details returns the full name, a header line, and a meta description for any of the nine acts.

Chapters and Sections

list_chapters returns an array of chapter objects — each with chapter_number, title, slug, and url — for a given act abbreviation. get_chapter accepts both act and chapter_num (e.g., '05a' for alphanumeric chapters; single digits are zero-padded automatically) and returns every section in that chapter with section_number, title, plain text, and raw html. list_all_sections gives a flat index of all sections for an act, useful for building navigation or populating a search index.

Section Detail and Classification

get_section is the most field-dense endpoint. For a given act and section_num it returns the section title, full description text, a classification object (containing an offences array, cognizance, bail, and triable_by fields), composition (compoundability notes), an array of cross_references with text and URL, and a navigation object with prev, next, and index links. Not all sections carry a classification object — it is null for procedural or non-penal provisions.

Search and Cross-References

search_act accepts an act abbreviation and a query string (keyword or section number) and returns matching section objects plus a matches_found count string like '7 Matches'. get_ipc_bns_crossreference returns the mapped equivalent sections between IPC and BNS for a given section number, which is useful when migrating references from the old code to the new Sanhita. navigate_section returns only the prev and next section numbers and the act index URL — a lightweight call for building sequential readers.

Common use cases
  • Build a legal research tool that retrieves IPC or BNS section text, bail status, and triable_by court in one get_section call.
  • Generate a side-by-side IPC-to-BNS mapping table using get_ipc_bns_crossreference across all IPC sections.
  • Power a bare-act search widget using search_act to find sections by keyword (e.g., 'murder', 'cheque', 'negligence').
  • Create a sequential bare-act reader app using navigate_section to walk forward and backward through sections.
  • Index all sections of an act for offline or full-text search by iterating list_all_sections and get_section.
  • Display chapter-level tables of contents for legal education apps using list_chapters.
  • Automate classification checks — bail type, cognizance, triable_by — across a list of section numbers for legal analytics.
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 devgan.in have an official developer API?+
No. devgan.in does not publish an official developer API or documented programmatic access. This Parse API provides structured access to the act and section data available on the site.
What does the `classification` object in `get_section` contain?+
The classification object contains an offences array (describing the nature of the offence), cognizance (whether the offence is cognizable or non-cognizable), bail (bailable or non-bailable), and triable_by (the court tier that hears the matter). It is null for sections that do not define a penal offence, such as definitional or procedural provisions.
Does the API return the full text of amendments or notifications appended to a section?+
Not currently. The API returns the section body as it appears on devgan.in, including the description and html fields, but does not expose separately tagged amendment history or gazette notifications. You can fork it on Parse and revise to add an endpoint that targets amendment annotations if the source page carries them.
Are all nine acts structured with chapters and sections, or do some use a different hierarchy?+
Most acts are organized into chapters retrieved via list_chapters, but chapter_num accepts alphanumeric identifiers (e.g., '05a') to handle acts with sub-divided chapters. If an act uses a part or schedule structure rather than numbered chapters, those divisions may not be returned by list_chapters. You can fork it on Parse and revise to add endpoint logic for schedule or part-level navigation.
Can I search across all nine acts at once with a single query?+
No. search_act requires a specific act abbreviation per call, so a cross-act search requires one call per act. The API covers all nine supported acts individually. You can fork it on Parse and revise to add a multi-act search endpoint that fans out and merges results.
Page content last updated . Spec covers 9 endpoints from devgan.in.
Related APIs in Government PublicSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
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.
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.
maradminbot.com API
Search and retrieve official Marine Corps MARADMIN announcements from Marines.mil, filtering by year, status, and keyword to stay updated on the latest personnel and administrative directives. Get detailed information about specific announcements by number or browse the most recent updates to ensure you never miss critical Marine Corps guidance.
13f.info API
13f.info API
illinoisreportcard.com API
Search and analyze comprehensive performance data for Illinois public schools, districts, and the state, including academic achievements in ELA, math, and science, student demographics, teacher and administrator information, school finances, and environmental conditions. Compare schools side-by-side, track growth metrics, and access accountability ratings and school highlights to make informed decisions about education quality.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.