What is an LGD code and why does a village need one?
The Local Government Directory, maintained by the Ministry of Panchayati Raj, gives a numeric code to every state, district, sub-district (tehsil, taluka or mandal), block, gram panchayat and village in India. Government systems increasingly use these codes as the common key. A name can be spelt four ways; the code stays the same.
That matters because India has dozens of villages called Ramgarh, and your customer typed one. Meera Iyer, who runs rural lending at the fictional Sunrise Agro Finance, knows every loan starts with that one small field. Get the village wrong and the land check, the branch and the field visit all go to the wrong place.
How do you find a village's LGD code the official way?
The official source is the Local Government Directory portal, which lets you browse level by level, state to district to sub-district to village, and search by name or code. Open datasets of LGD villages, with pincodes, are also published on the government data portal, and some state land record sites print the LGD village code beside each village name.
These routes work when you know the exact spelling and the tehsil. They are slow when a name arrives misspelt on a form, when two villages in the same district share a name, or when you have hundreds of applications a day. Meera's team used to check portals one village at a time, and officers still reached the wrong village.
How do you find a village's LGD code by name in one call?
Send the name to the Place Search API, spelt any way, three or more characters. The officer types bhadroli and gets Bhadrauli in Sonpur tehsil, Bhadroli in Kheri, Bhadrauli Kalan and Bhadoli in other tehsils, each with its tehsil, district, state, pincode and LGD code, closest match at the top. She picks the one whose tehsil and district fit, and the loan file keeps a fixed code instead of a spelling.
The same search also returns matching districts, tehsils and states in their own lists, so a district typed by name resolves too.
How do you find every village inside a pincode?
A lead gives just a pincode? The Pincode to Village API opens it into every village inside, each with its LGD code, tehsil and district, plus the post office area. In the example, one pincode in Devgarh district covers Ramgarh Khurd and Sonpur in Sonpur tehsil, and Bhawanipur and Mahuli in Kheri tehsil, so the lead goes to the branch that covers the right village.
What does a village profile show before anyone travels?
With the code in hand, the Village Profile API returns the village record: Census 2011 code, pincode, area in hectares, centre point, state, district, tehsil, block and gram panchayat with their codes, neighbouring villages, the government portals that hold its land records, and the number of plots on the register. For Ramgarh Khurd that means gram panchayat Ramgarh, neighbours Ramgarh Kalan, Bhawanipur and Sonpur, and land records on the state portal as khatauni and khasra.
Revenue court case counts appear where the state publishes them, which today means Uttar Pradesh. Add geometry=geojson and the response carries the village boundary for your map.
How do you build a full state to village hierarchy?
The States, Districts, Tehsils and Villages (LGD) APIs walk the hierarchy one level at a time, every level with its own code, plus Census 2011 codes and village counts. Load them once into your master tables, refresh them now and then as new districts are carved out, and every record you hold joins on codes, not spellings.
What can go wrong, and what are the limits?
The common mistake is taking the top match without checking the tehsil and district. Village names repeat widely, even inside one district. Other points to know: hamlets without their own LGD code are not listed as villages; a pincode lookup returns villages, not urban wards; and the Census 2011 code and the LGD code are often the same number but not always, so do not assume they match.
A village profile describes a place. It is information from public sources, not proof of title, and the land record portal it names is where certified copies come from.
Who uses village LGD codes?
Rural lenders, crop insurers, agritech firms, logistics and field teams, survey agencies and GIS teams. One call covers all of India, the codes come from the official Local Government Directory, and the same tools work inside AI agents through the India Property Register MCP server. The video above walks through it.
What each place API gives you
Step by step
- 1
Search the name
Send the village name, spelt as the customer wrote it, to the Place Search API.
- 2
Pick by tehsil and district
Choose the match whose tehsil and district fit the application, not just the top result.
- 3
Store the LGD code
Save the village LGD code in the record instead of the spelling.
- 4
Read the profile
Call the Village Profile API for gram panchayat, neighbours, land record portal and the boundary if you need it.
APIs used in this guide
Place Search API
Find any village, tehsil, district or state by name, or every village inside a pincode.
Pincode to Village API
A pincode area and the villages inside it.
Village Profile API
One village with LGD codes, hierarchy, pincode, area, centre point, boundary GeoJSON, neighbours and land-record sources.
States (LGD) API
All states and union territories with LGD codes and record counts.
Districts (LGD) API
Districts of a state with LGD codes.
Tehsils (LGD) API
Tehsils, talukas, mandals and circles of a district with LGD codes.
Villages (LGD) API
Villages of a tehsil with LGD codes.
India Property Register MCP Server
A remote MCP server for Indian land and property: plots, holders, khata, circle rates, deeds, city tax records, RERA and auctions…
Frequently asked questions
What is an LGD code?
It is the code the Local Government Directory gives every state, district, tehsil and village in India. Unlike a name, the code is fixed, so systems that store it avoid spelling mismatches and same-name villages.
Can I find a village's LGD code if I know just its name?
Yes. Place Search accepts a name of three or more characters, spelt any way, and returns matching villages with tehsil, district, state, pincode and LGD code, closest match at the top, so you can pick the right one.
Does a village profile prove who owns land there?
No. The profile describes the village from public sources: hierarchy, pincode, area, neighbours, the land record portal and revenue court case counts where published. It is information, not proof of title or a certified copy.
Is the LGD code the same as the Census 2011 village code?
For many villages the numbers match, but not always. The Village Profile API returns both where known, so you can join Census 2011 data to current LGD codes safely.
How many digits is a village LGD code?
Village LGD codes are commonly six digits, while state codes are one or two digits. Treat the code as a number you store and pass, not as text you parse.
Can an AI assistant find a village's LGD code?
Yes. Through the India Property Register MCP server, an assistant can search places by name or pincode and read any village in full, including its codes and boundary.
Video transcript
What is the LGD code of this village? India has dozens of villages called Ramgarh. Your customer typed one.
Meera Iyer runs rural lending at Sunrise Agro Finance. Every loan starts with one small field: the village.
Until now, one village came in four spellings. Her team checked portals one by one, and officers still reached the wrong village.
Now the officer types the name, spelt any way, and picks the right match by tehsil and district. The loan keeps a fixed code.
A lead gives only a pincode? One call opens it into every village inside, so the lead reaches the right branch.
Before anyone travels, the village profile is ready: gram panchayat, neighbours, its land record portal, and pending revenue court cases.
Every state, district, tehsil and village has its own code, and each village its boundary. So maps join on codes, not spellings.
One call covers all of India. Official codes from the Local Government Directory, sources you can cite, and it works inside your AI agents.
Lakhs of villages, each with one fixed code. That is how a country's public records finally join up.
Billion Insights Ventures. Explore the APIs at billioninsightsventures dot com slash APIs.
Records shown are information from public sources, read as published. They are not a legal opinion, proof of title or a background verdict. Names and identifiers in examples are fictional.