Guides
Real tasks solved with India API. Every request in them is tested, and the code is MIT-0: paste it anywhere.
- 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.