Overview
Court records, FIRs and contracts name the same act in dozens of ways: IPC, I.P.C., Indian Penal Code 1860, Penal Code. Before you can fetch a section or search cases under an act, you need its exact key. The Act Name Resolver API maps those spellings to the citation key used across the eCourtsIndia statute and case APIs, for data teams cleaning records and apps that accept act names from users.
GET /api/partner/acts/resolve takes name, up to 200 characters, and optional state and year to disambiguate. When the name is clear, match carries the key, title, state, year and India Code URL. When it is ambiguous or unknown, match is omitted and candidates lists the possible acts, which may be empty. Resolve each distinct spelling once, cache the key, and use it with the Act Section, Batch and Case Search APIs.
- Input
- name (free text, up to 200 characters); optional state and year
- Returns
- A single match when unambiguous, plus a list of candidates
- 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
queryThe name as trimmed by the server
match.keyCitation key of the resolved act, for example 1860/45
match.titleOfficial title, for example The Indian Penal Code, 1860
match.stateState for a State Act, null for a Central Act
match.yearYear of the act
match.urlIndia Code page for the act
candidates[]Acts the name could refer to, with the same fields as match
Use cases
Cleaning act names in case data
A data team has fifty thousand case records where the act is written by hand in many forms. It extracts the distinct spellings, resolves each once, caches the keys and writes them back, so later section lookups and statistics use one key per act.
Accepting act names from users
A legal app lets users type an act name and a section. It resolves the name first; if match is set it fetches the section, and if only candidates come back it shows them as choices, for example asking whether IT Act means the Information Technology Act or the Income-tax Act.
Mapping FIR sections
A verification firm reading FIR details sees acts written in short forms. Resolving each to a key lets it fetch the sections and their offence classification, so its reports show what each charge means rather than a bare abbreviation that the client has to look up.
How to use it
- Call GET /api/partner/acts/resolve?name=<act name>, adding state or year if you know them.
- If match is present, cache match.key against that spelling.
- If only candidates come back, ask the user or use other context to choose; do not pick one blindly.
- Use the key with the Act Section, Act Sections Batch or Case Search APIs.
Parameters
name required query The act name as free text. Example: Indian Penal Code state query Prefer a state act. Example: HR year query Year of the act. Example: 1860 Example
Request
curl "https://webapi.ecourtsindia.com/api/partner/acts/resolve?name=Indian%20Penal%20Code&state=HR" \
-H "Authorization: Bearer eci_live_YOUR_KEY" Response (illustrative)
// GET /api/partner/acts/resolve?name=Indian%20Penal%20Code
{
"data": {
"query": "Indian Penal Code",
"match": {
"key": "1860/45",
"title": "The Indian Penal Code, 1860",
"state": null,
"year": 1860,
"url": "https://indiacode.ecourtsindia.com/ipc/"
},
"candidates": [
{ "key": "1860/45", "title": "The Indian Penal Code, 1860", "state": null, "year": 1860, "url": "https://indiacode.ecourtsindia.com/ipc/" }
]
},
"meta": { "request_id": "req_example031" }
}
// An ambiguous name: match is omitted, candidates lists the options
{
"data": { "query": "IT Act", "candidates": [ { "key": "2000/21", "year": 2000 }, { "key": "1961/43", "year": 1961 } ] }
} 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, 1908/5 the CPC. State acts carry a state prefix, such as hr/1948/11.
- Ambiguous act name
- A name that fits more than one act. IT Act could be the Information Technology Act 2000 (2000/21) or the Income-tax Act 1961 (1961/43), and both have sections 43, 66 and 72. The resolver returns candidates instead of guessing.
Good to know
- Returns a match only when the name is unambiguous; otherwise candidates.
- name is limited to 200 characters.
Frequently asked questions
How do I find the India Code key for an act from its name?
Call GET /api/partner/acts/resolve with name set to the act as you have it, for example Indian Penal Code or Code of Criminal Procedure. If the name is unambiguous, match gives the citation key, such as 1860/45, with title, year and India Code link.
What happens if the act name is ambiguous?
match is left out and candidates lists every act the name could be, possibly none. The resolver never guesses. Add state or year to narrow it, or ask the user to choose. IT Act, for instance, could be the Information Technology Act or the Income-tax Act.
Does it understand abbreviations like IPC and CrPC?
Yes, common short forms and the styles courts write, such as Indian Penal Code (I.P.C.), 1860, are resolved. Abbreviations that genuinely fit several acts return candidates rather than a single match. If you know the state or year of the act, pass them to help the resolver choose the right one.
Should I call it every time I see an act name?
No. Resolve each distinct spelling in your data once, cache the returned key, and use it in every later call. Keys are stable identifiers, so a cached mapping stays valid while the corpus holds that act. This keeps your data consistent across every later call.
How is this better than looking up acts by hand on India Code?
By hand you search the government India Code site for each act name and copy an identifier, and you may not notice when a short form fits two acts. The resolver handles thousands of spellings programmatically and flags ambiguity explicitly through candidates.
Can AI assistants resolve act names?
Yes. On the eCourtsIndia MCP server, resolve_act turns an act name into its citation key, for example Indian Penal Code to 1860/45. The statute tools also accept common names directly, and refuse names such as IT Act that are ambiguous.