Overview
Since 1 July 2024, new criminal cases cite the BNS, BNSS and BSA, while older cases, judgments and textbooks still use IPC, CrPC and Evidence Act numbers. Anyone working across the two needs a reliable converter: IPC 420 is now BNS 318, and BNS 318 covers IPC 415, 418 and 420. The IPC to BNS Converter API returns that mapping from the India Code corpus, for drafting tools, case apps and research.
GET /api/partner/acts/{key}/sections/{number}/equivalents returns the act, the unit and number you asked about, and an equivalents array. Each entry gives the other code's key, title, unit and number, a relation (near-identical or close, with other values possible for weaker mappings) and a direction (successor or predecessor). It is lighter than the Act Section API, which adds the text and offence classification.
- Input
- Act citation key and section number, for example 1860/45 and 420; optional unit
- Returns
- Equivalent sections in the old or new code with relation and direction
- Coverage
- IPC and BNS, CrPC and BNSS, Indian Evidence Act and BSA
- 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
act.key / titleThe act you asked about, for example 2023/45, The Bharatiya Nyaya Sanhita, 2023
unit / numberThe provision you asked about
equivalents[].keyCitation key of the other code, for example 1860/45 for the IPC
equivalents[].titleTitle of the other code
equivalents[].numberMatching section number in the other code
equivalents[].relationnear-identical or close (weaker mappings may use other values)
equivalents[].directionsuccessor if the entry is the newer provision, predecessor if older
Use cases
Now BNS badges in a case app
A case management app shows charges from older FIRs under IPC numbers. For each section it calls the converter and displays a small badge such as now BNS 318, so advocates preparing for trial see both numbers without opening a comparison table.
Research across the changeover
A researcher studying cheating cases wants matters filed before and after July 2024. She converts IPC 420 to BNS 318 and then searches cases under both provisions, so the dataset is not cut in half by the renumbering and the trend across both periods can be compared.
Updating templates and checklists
A law firm revising its bail application templates runs every CrPC section in them through the converter to find the BNSS numbers. Close rather than near-identical relations are flagged for a lawyer to reread, since the wording may have changed.
How to use it
- Pick the act key: 1860/45 for the IPC, 2023/45 for the BNS, 1974/2 for the CrPC; use the Act Name Resolver API if unsure.
- Call GET /api/partner/acts/{key}/sections/{number}/equivalents, for example /acts/1860/45/sections/420/equivalents.
- Read each entry's number, relation and direction.
- Where the relation is close, fetch both sections with the Act Section API to compare the wording.
Parameters
key required path Act citation key. Example: 2023/45 number required path Section number. Example: 318 Example
Request
curl "https://webapi.ecourtsindia.com/api/partner/acts/2023/45/sections/318/equivalents" \
-H "Authorization: Bearer eci_live_YOUR_KEY" Response (illustrative)
// GET /api/partner/acts/2023/45/sections/318/equivalents
{
"data": {
"act": {
"key": "2023/45",
"title": "The Bharatiya Nyaya Sanhita, 2023",
"state": null,
"year": 2023,
"number": "45",
"in_force": true,
"url": "https://indiacode.ecourtsindia.com/bns/"
},
"unit": "s",
"number": "318",
"equivalents": [
{ "key": "1860/45", "title": "The Indian Penal Code, 1860", "unit": "s", "number": "415", "relation": "near-identical", "direction": "predecessor" },
{ "key": "1860/45", "title": "The Indian Penal Code, 1860", "unit": "s", "number": "418", "relation": "close", "direction": "predecessor" },
{ "key": "1860/45", "title": "The Indian Penal Code, 1860", "unit": "s", "number": "420", "relation": "close", "direction": "predecessor" }
]
},
"meta": { "request_id": "req_example024" }
} 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
- BNS, BNSS and BSA
- The Bharatiya Nyaya Sanhita, Bharatiya Nagarik Suraksha Sanhita and Bharatiya Sakshya Adhiniyam, all of 2023, which replaced the Indian Penal Code, the Code of Criminal Procedure and the Indian Evidence Act from 1 July 2024. Sections were renumbered and some rewritten.
- Near-identical and close
- How well two sections correspond. Near-identical means the new provision carries the old one over with little change. Close means the substance matches but wording, scope or structure differs, so the texts should be compared before relying on the mapping.
- 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.
Good to know
- Returns 404 EQUIVALENTS_NOT_FOUND when a section has no old/new mapping.
- Close relations mean the wording differs; compare both texts before relying on them.
Frequently asked questions
What is IPC 420 in BNS?
IPC section 420, cheating and dishonestly inducing delivery of property, corresponds to BNS section 318, with a close relation. Call GET /api/partner/acts/1860/45/sections/420/equivalents to get this mapping, or the Act Section API to read both texts and the offence classification side by side.
Can I convert CrPC sections to BNSS and Evidence Act to BSA?
Yes. The same endpoint covers CrPC to BNSS and Indian Evidence Act to BSA, in both directions. Use the act key of the code you start from, such as 1974/2 for the CrPC, and the section number; the response lists the equivalents in the other code.
Why does one BNS section map to several IPC sections?
The new codes merged and reorganised many provisions. BNS 318, for example, brings together IPC 415, 418 and 420. The equivalents array lists every match, each with its own relation and direction, so you can see exactly which old sections a new one covers.
How is this better than an IPC to BNS comparison table?
Printed and PDF tables are static, hard to search and easy to misread. This API returns the mapping for a section as structured data from the India Code corpus, with the relation marked, so software can show both numbers and link to the text without anyone looking up a table.
What if a section has no equivalent?
If the section exists but has no old or new code mapping, the API returns 404 EQUIVALENTS_NOT_FOUND. Many sections of the new codes are new provisions, and many acts outside the criminal codes have no counterpart at all. Use the Act Section API to read such a section.
Can I ask ChatGPT or Claude to convert IPC to BNS?
Yes. With the eCourtsIndia MCP server connected, ask for example IPC 420 in BNS. The assistant calls map_provision for the mapping, or lookup_provision to read the new section's text and bail status, so the answer comes from the official text rather than memory.