Free APIs for India.
Pincodes, IFSC, GSTIN, holidays and Indian-language tools. No key needed to start; a free key raises the limits.
curl https://api.dharun.dev/v1/pincode/637001?utm_medium=home{
"data": {
"pincode": "637001",
"district": "Namakkal",
"stateCode": "TN",
"state": "Tamil Nadu",
"offices": [
{
"name": "Namakkal H.O",
"type": "Head Office",
"delivery": true,
"division": "Namakkal",
"region": "Western Region, Coimbatore",
"circle": "Tamilnadu",
"district": "Namakkal",
"stateCode": "TN",
"state": "Tamil Nadu",
"latitude": 11.2155833,
"longitude": 78.1702778
},
{
"name": "Namakkal Bazaar S.O",
"type": "Post Office",
"delivery": false,
"division": "Namakkal",
"region": "Western Region, Coimbatore",
"circle": "Tamilnadu",
"district": "Namakkal",
"stateCode": "TN",
"state": "Tamil Nadu",
"latitude": 11.2240556,
"longitude": 78.1703333
},
{
"name": "Namakkal Fort S.O",
"type": "Post Office",
"delivery": false,
"division": "Namakkal",
"region": "Western Region, Coimbatore",
"circle": "Tamilnadu",
"district": "Namakkal",
"stateCode": "TN",
"state": "Tamil Nadu",
"latitude": 11.238,
"longitude": 78.166
}
]
},
"meta": {
"source": {
"name": "All India Pincode Directory",
"url": "https://www.data.gov.in/resource/all-india-pincode-directory-till-last-month",
"licence": "Government Open Data License - India (GODL)",
"version": "23760720 bytes",
"retrieved": "2026-10-13",
"attribution": "Contains data from the All India Pincode Directory, Department of Posts, published on data.gov.in under the Government Open Data License - India."
}
}
}No key to start
Call it from your server or straight from a browser. CORS is open, and every answer has the same { data, meta } shape. A free key raises the limits.
Open source
The code is on GitHub under AGPL-3.0. Every response names its data source, its version and its licence.
Private by default
No cookies, no ads, no IP addresses in the logs. Personal values you send are never logged. Details
Every API.
81 APIs in one shape. Each has its own page with parameters, a real response and code to copy.
Money and business
- Company logosLogos and details for companies listed on NSE and BSE.
- Brand, stock and asset logosLogos for unlisted Indian brands, global stocks, crypto, indices, ETFs and commodities.
- IFSC and banksIFSC to bank and branch.
- QR codes and barcodesQR codes, UPI payment QR codes and barcodes as SVG or PNG, and reading them from a photo.
- HSN and SAC codesGST classification codes for goods and services.
- Mutual fund NAVsLatest net asset value of every Indian mutual fund scheme.
- Number to wordsNumbers and rupee amounts in words, the Indian way.
- Format checksCheck the format of a GSTIN, PAN or IFSC.
- GST invoiceA GST tax invoice as a PDF from JSON, with the tax worked out.
- Money calculatorsSIP, EMI, GST, income tax, HRA, gratuity, PPF, capital gains and trade charges.
- Indian number formattingLakh and crore grouping, 1.2 Cr short forms, rupees and Indian-script digits.
- UPI handles and payment QR codesWhich app and bank is behind @okaxis, and what a UPI or Bharat QR code says.
- RBI rates and exchange ratesRepo rate, CRR and SLR, FBIL reference exchange rates, lending and deposit rates, and bond yields.
- Derivative expiriesNSE and BSE futures and options expiry dates, moved for holidays.
- Gold and silver ratesToday's gold (24K, 22K, 18K...), silver and platinum rates from IBJA, and their history.
- Index constituentsWhich companies are in Nifty 50, Bank Nifty, Nifty 500 and 28 more NSE indices, and which indices a stock is in.
- Mandi pricesToday's wholesale prices of vegetables, fruit, grain and pulses in India's markets, from Agmarknet.
- Card BIN lookupWhich network, card type and bank a card's first six digits belong to: Visa, Mastercard, RuPay, debit or credit.
Places and transport
- PincodesPincode to post office, district and state.
- RTO codesVehicle registration code to transport office.
- Railway stationsIndian Railways station codes to stations, and back.
- ConstituenciesWhich assembly and Lok Sabha constituency a place is in.
- AirportsAirport codes to airports, and airports by city.
- StatesStates and union territories with their codes.
- Address readerA free-text Indian address split into house, street, locality, city, state and pincode, checked.
- HelplinesNational emergency and helpline numbers.
- Air qualityThe air quality index at CPCB's monitoring stations across India, updated hourly.
- Villages and LGD codesEvery state, district, sub-district and village of India with its LGD and Census 2011 codes, and village PIN codes.
- HospitalsAbout 30,000 hospitals across India with their kind, system of medicine, phone and position, from the National Hospital Directory.
- Census 2011 figuresPopulation, households, literacy, sex ratio and workers for India, every state, district, sub-district and town, from the 2011 census.
Dates and calendars
- HolidaysBank, government and stock market holidays.
- Working daysBank, market, settlement and government working days.
- PanchangHindu almanac for any date and place: tithi, nakshatra, Rahu kalam and more.
- Sun and moonSunrise, sunset, twilight, moonrise and the moon's phase for any date and place.
- Today in IndiaIndia's "now" in one call: date, financial year, working days, holidays, market and panchang.
- Indian date toolsFinancial and assessment year, quarter, the Saka, Tamil and Hijri dates, and ages.
- FestivalsHindu, Tamil, Sikh, Jain, Buddhist, Islamic and Christian festival dates for any year, computed.
Language and text
- ThirukkuralAll 1,330 kurals in Tamil with English translations.
- Text toolsChunk documents, redact identifiers and names, moderate, count tokens, detect language.
- TransliterationRewrite text between Indian scripts and Roman letters, or turn Roman typing into an Indian script.
- Tamil legacy encodingsOld Tamil text that shows as accented Latin letters, to Unicode and back.
- SpeechSpeech to text, text to speech in Hindi, Telugu, Malayalam and English, and noise removal.
- Embeddings and rerankingVectors for semantic search in Indian languages and English, and a reranker to order results.
- TranslationTranslate between English and 22 Indian languages with IndicTrans2.
- Indic text toolsLetters as readers count them, dictionary order, look-alike fixes, braille and keyboard layouts.
- Search your own documentsUpload documents, ask a question, get the best passages back: retrieval for your own AI app.
- IPC to BNS section finderWhich section of the Bharatiya Nyaya Sanhita replaced IPC 302, and the same for CrPC to BNSS and the Evidence Act to BSA.
- Indian classicsAathichoodi, the Bhagavad Gita in Sanskrit and Kabir's couplets, a line or verse at a time, with transliteration.
- Small LLM (English)Summarise, classify, extract to JSON and rewrite English text with a small open model, and an OpenAI-compatible chat.
Network and contact checks
- IP address locationIP address to country, state, city and network.
- Email checksIs an email address well formed, throwaway, and able to receive mail.
- DNS checkA domain's DNS records at four public resolvers at once.
- Phone numbersCheck and format an Indian phone number, and see whose series it is.
- Traceroute from IndiaThe network path from a server in India to any host, with loss and latency per hop.
- WhoisWho registered a domain, an IP network or an AS number, through RDAP.
- TLS checkA website's certificate and TLS setup, checked from India.
- IPv6 checkIs a domain ready for IPv6: website, nameservers and mail.
- HTTP probe from IndiaHow fast a URL answers from India: DNS, connect, TLS, first byte and the CDN edge.
- Website iconsThe icon of any website as a square PNG, for lists of links and bookmarks.
- Web pagesLink previews, a page as Markdown for agents, and HTML and Markdown to each other.
- STD codesThe landline STD code of every town and area in India, and which area a landline number belongs to.
Files, documents and media
- OCRText from photos, scans and scanned PDFs, in English and ten Indian languages.
- Image toolsResize and convert pictures, remove backgrounds, and compare pictures by how they look.
- PDF toolsMerge, split, rotate and compress PDFs, read their text and draw their pages.
- Typst to PDFTurn a Typst document into a PDF, with Indian scripts set correctly.
- Audio and video toolsConvert, trim, draw a waveform or take a frame, with ffmpeg.
- Document readingPDFs and scans to Markdown and tables; invoices, receipts, cheques and bank statements read and checked; Aadhaar masking and redaction.
Developer tools
- Regex testerRun a regular expression against a text and see every match, explained.
- Fake test dataMade-up Indian people, companies and addresses for testing apps.
- Generated imagesShare images, code screenshots, avatars, placeholders and charts from a URL.
- Batch lookupsUp to 1,000 lookups in one request.
- README badgesSmall SVG badges: market open or closed, the next holiday, a dataset's freshness, or your own.
- Data format toolsJSON, YAML, TOML, CSV and XML to each other; text and JSON differences; spreadsheets to JSON and back.
- Developer utilitiesCron in words, UUIDs and ULIDs, hashes and HMACs, JWT decoding, user agents and time zones.
- ColoursColour conversions, WCAG contrast checks and the palette of a picture.
- Request binsA private address that records what is sent to it, for testing webhooks.
- Throwaway databasesA private SQLite database for a day, over HTTP.
- MCP toolsFind the right tool among the MCP server's, and connect to only the sets you need.
- Agent notesA small private key-value store, for agents and scripts that must remember between runs.
Ready for AI assistants.
Connect the MCP server and Claude, ChatGPT, Cursor or VS Code can look up Indian data on their own. Add the Agent Skill and your coding agent knows the whole API.
Set it upclaude mcp add --transport http india-api https://api.dharun.dev/mcpnpx skills add dharunashokkumar/api.dharun.devGuides.
Real tasks, solved with code you can paste.
- Handle India API errors, rate limits and retriesEvery error has the same JSON shape; rate limits are weighted per endpoint and told in RateLimit headers. A reusable client in Python and JavaScript with timeouts, retries and backoff.
- IFSC lookup in Node.js with caching and clean errorsNormalise what users type, check the format before calling, cache branches for a day, and tell apart a mistyped code, an unknown branch and a network failure, in Node.js with no dependencies.
- Make a GST tax invoice PDF from JSONSend the seller, buyer and items with HSN codes and GST rates, and get back an A4 tax invoice PDF with CGST, SGST or IGST worked out, the HSN summary and the amount in words.
- Pincode autofill in React, with post office choice and cancellationA React hook that looks up a six-digit pincode as it is typed, cancels stale requests, fills district and state but leaves them editable, and lets the user pick the post office.
- Pull fields out of customer messages with a free small LLMTurn free-text enquiries into JSON that always matches your schema, classify them, and use the OpenAI SDK against India API's small hosted model by changing the base URL.
- Read Tamil, Hindi and English text from photos and scanned PDFsOCR receipts, forms and scanned pages in eleven Indian languages with Tesseract on India API, choose the right language codes, read the confidence, and get better results from phone photos.
- Translate app content into Indian languagesTranslate app strings between English and 22 Indian languages with IndicTrans2, keep placeholders safe, translate at build time, and know when a person should review.
- Use India API from an MCP client (Claude, Cursor, VS Code)Connect an AI assistant to India API's MCP server, load only the tool sets you need, add your key, check the connection, and fix the usual problems.
- Pincode autofill and IFSC lookup in a Flutter appFill in district and state from a pincode, check an IFSC code and show a company logo in Flutter, with the http package and no API key.
- Pincode autofill and IFSC lookup in an Android app (Kotlin)Fill in district and state from a pincode and check an IFSC code in an Android app with Kotlin coroutines and HttpURLConnection, no library and no key.
- Get warned before a TLS certificate expiresCheck your sites' certificates from a daily cron job and get an alert when one is close to expiry, invalid or missing an intermediate.
- Bank holidays, working days and T+1 settlement datesFind whether a date is a bank holiday in a state, the next working day, N working days ahead, and NSE settlement dates, in Python.
- Check a GSTIN or PAN before you save itCatch typing mistakes in GSTINs and PANs with the check character, and read the state and PAN out of a GSTIN, in JavaScript.
- Fill city and state from a pincode in a web formLook up the district and state as soon as someone types a six-digit pincode, with plain JavaScript and no API key.
- Make a UPI payment QR code for an amountGenerate a QR code that any UPI app can scan to pay a set amount to your UPI ID, or a upi://pay link for a button on mobile.
- Mask Aadhaar, PAN and phone numbers before an LLM sees themMask Indian personal identifiers in text before it reaches a language model or a log, with check-digit validation so ordinary numbers are left alone.
- Show NSE and BSE company logos in your appPut a listed company's logo in an img tag by ticker or ISIN, as SVG or sized PNG, with an initials tile when no logo exists.
- Show the bank and branch for an IFSC codeTurn an IFSC into a bank name, branch and address, and check that the branch takes NEFT, RTGS, IMPS or UPI before you send money there.
- Write rupee amounts in words for invoices and chequesSpell an amount the Indian way, with lakh and crore, rupees and paise, in English, Hindi or Tamil.
Questions.
Is it free?
Yes, and there is no paid plan. Most endpoints need no key: each address gets 600 units a minute, and a few endpoints that do heavy work count as more than one. A free API key raises that to 3000 a minute per key, and the model endpoints (OCR, speech, translation, embeddings and the like) will need one after a notice period.
Do I need an API key?
Not for most endpoints. A free key gives you your own, larger allowance; get one at /signup with just your email address (we mail you a code; no password). Send it as Authorization: Bearer <key>. The model endpoints will need a key from the date on /keys.
Can I use it in a commercial app?
Yes. Calling the API puts no licence on your app. The data keeps the licence of its source, named in every response under meta.source; a few sources ask for a credit line. The code examples on this site are MIT-0, so you can paste them anywhere.
Where does the data come from?
From official publications such as the Reserve Bank of India, India Post, NSE and the GST council, and from open datasets such as OurAirports and Wikipedia. Every response says which source it used, its version and when it was retrieved.
What do you log?
One line per request with the path, the status, the time taken and roughly where it came from (country, state, city and internet provider, looked up from the address). IP addresses are never written to the log, and endpoints that take personal values (phone numbers, email addresses, text you send) leave their input out of the log entirely.
Is my text sent to an AI company?
No. Translation, speech to text, moderation, name detection, embeddings and the other model-based APIs run open models on this server itself. What you send is not passed to any other service, not kept and not used to train anything.
Can I run it myself?
Yes. The whole service is open source under AGPL-3.0: one Go program and its datasets. The README explains how to build and run it.
Does it work with AI assistants?
Yes. There is an MCP server at /mcp with no authentication, an Agent Skill, a Claude Code plugin, an OpenAPI description and llms.txt.