Overview
Charge sheets, contracts and compliance checklists cite many provisions at once. Fetching them one by one is slow and wasteful. The Act Sections Batch API takes a list of up to 50 references, each an act key, an optional unit and a number, and returns every section it finds in one response. Legal apps use it to render all sections on a page, and data teams use it to enrich records in bulk.
The response has a sections array and a not_found array. Each found entry echoes requested, normalised (trimmed, unit defaulted), alongside the act and section objects. Comparing requested with section.number shows when a sub-clause such as 318(4) resolved to section 318. Duplicates are collapsed. For a single section use the Act Section API, and for every citation on a court case use the Case Provisions API.
- Input
- JSON body: sections, an array of 1 to 50 { key, unit?, number }
- Returns
- Found sections with full act and section detail, plus a not_found list
- Coverage
- India Code corpus: Central and State Acts, the Constitution, CPC First Schedule, rules and notifications; 4.2 lakh+ statutory provisions
- Source
- India Code corpus on indiacode.ecourtsindia.com
- Auth
- Bearer API key or OAuth via the MCP server
- Register
- eCourtsIndia (ecourtsindia.com)
- Data source
- Public court records published by the Supreme Court, High Courts, district courts and tribunals, harvested daily and refreshed on demand.
What it returns
sections[].requestedYour reference as normalised: key, unit and number
sections[].actAct key, title, state, year, number and in-force status
sections[].section.heading / textSection heading and full text
sections[].section.offenceCognizable, bailable, punishment and triable-by, where the section is an offence
sections[].section.offence_sourceown, or the equivalent section the classification came from
sections[].section.equivalentsOld or new code equivalents with relation and direction
not_found[]References the corpus does not hold
error.codeBATCH_SIZE_EXCEEDED, INVALID_SECTION_REF or INVALID_ACT_KEY for bad input
Use cases
Charge sheet explainer
A criminal law app lets a user paste the sections listed in a charge sheet. It sends them as one batch and shows each section's heading, text, bail status and old or new number on a single screen, with any unknown references flagged from not_found for the user to check.
Bulk enrichment of case data
A data team holding thousands of case records with section numbers enriches them overnight. It groups distinct references into batches of 50, stores each returned section against its key and number, and records not_found items for manual review, so the next run only asks for references it has not seen.
Compliance checklist builder
A consultant preparing a labour law compliance checklist for a factory lists the relevant sections of several Central and State Acts. One batch call returns the text of all of them, ready to paste into the checklist with their India Code links.
How to use it
- Build a list of references, each { "key": "1860/45", "unit": "s", "number": "420" }; unit defaults to s.
- POST up to 50 at a time as {"sections": [...]} to /api/partner/acts/sections/batch.
- Match results to inputs with sections[].requested; compare with section.number for sub-clauses.
- Log not_found entries; they are references the corpus does not hold.
Parameters
sections required body Array of { key, unit?, number }. Example: [{"key":"1860/45","number":"420"}] Example
Request
curl -X POST "https://webapi.ecourtsindia.com/api/partner/acts/sections/batch" \
-H "Authorization: Bearer eci_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"sections": [{"key":"1860/45","number":"420"}]}' Response (illustrative)
// POST /api/partner/acts/sections/batch
// {"sections": [{"key":"2023/45","number":"318(4)"}, {"key":"1860/45","number":"999"}]}
{
"data": {
"sections": [
{
"requested": { "key": "2023/45", "unit": "s", "number": "318(4)" },
"act": { "key": "2023/45", "title": "The Bharatiya Nyaya Sanhita, 2023", "year": 2023, "in_force": true },
"section": {
"unit": "s",
"number": "318",
"heading": "Cheating",
"text": "(1) Whoever, by deceiving any person, fraudulently or dishonestly induces ...",
"offence": { "cognizable": false, "bailable": true, "punishment": "Imprisonment for 3 years, or fine, or both.", "triable_by": "Any Magistrate." },
"offence_source": "own",
"equivalents": [
{ "key": "1860/45", "unit": "s", "number": "420", "relation": "close", "direction": "predecessor" }
],
"url": "https://indiacode.ecourtsindia.com/bns/section/318/"
}
}
],
"not_found": [
{ "key": "1860/45", "unit": "s", "number": "999" }
]
},
"meta": { "request_id": "req_example025" }
} Authenticate with Authorization: Bearer eci_live_…. Every response field is documented in the eCourtsIndia API documentation. Assistants can also call this through the eCourtsIndia MCP server.
Glossary
- Act citation key
- The identifier eCourtsIndia uses for an act in the India Code corpus, built from year and act number: 1860/45 is the Indian Penal Code, 2023/45 the Bharatiya Nyaya Sanhita, 1974/2 the CrPC. State acts carry a state prefix, such as hr/1948/11.
- Cognizable and bailable
- A cognizable offence is one where police may register an FIR and arrest without a warrant. A bailable offence is one where bail is a matter of right. The classification, punishment and triable-by court come from the criminal procedure schedule.
- Sub-clause resolution
- When you ask for a sub-clause such as 318(4), the batch returns the whole parent section 318. The requested field keeps your original reference, so you can see that the match is at section level and point the reader to the right clause.
Good to know
- Maximum 50 references per request.
- Sub-clauses resolve to their parent section.
Frequently asked questions
How many sections can I fetch in one request?
Up to 50. Send {"sections": [...]} with 1 to 50 entries, each with key, number and an optional unit. More than 50 returns 400 BATCH_SIZE_EXCEEDED. Duplicate references are collapsed, so the same section asked for twice is returned once. Split longer lists into several batches.
Can I fetch IPC and BNS sections together in one batch?
Yes. A batch can mix acts freely, for example IPC 420 with key 1860/45 and BNS 318 with key 2023/45, alongside State Acts and constitutional articles. Each entry is resolved on its own and returned with its act details, so one call can cover old and new codes together.
What does not_found mean?
not_found lists the references the India Code corpus does not hold, such as a section number that does not exist in that act. It is not an error for the batch as a whole. Report these as not in the corpus rather than as law that does not exist.
What makes a batch request invalid?
An empty array, a blank number or an unknown unit in any entry returns 400 INVALID_SECTION_REF, and a malformed act key returns 400 INVALID_ACT_KEY. Fix the offending entry and resend; valid keys look like 1860/45 or hr/1948/11. The Act Name Resolver API turns act names into keys.
Is this quicker than looking up sections on the India Code site?
Much quicker for more than a handful. On the government India Code site you open each act and section separately. The batch returns up to 50 sections, with text, offence classification and equivalents, in one structured response that software can use directly.
Can AI assistants fetch many sections at once?
Yes. On the eCourtsIndia MCP server, lookup_provisions fetches up to 50 provisions in one call. You can paste a list of sections into Claude or ChatGPT and ask for a table of headings, bail status and new code numbers, built from the corpus text.