Api'S FOR STOCK

Hi

 

Im working on installing API's to retrieve stock data from NSE into spreadsheets. I've tried several but not working because they are all foreign API's for their stocks. Is there any API which works in India, free to use and easy to install and run?

 

Reg

Replies (2)
Quick Summary
Finding reliable APIs for Indian stock data (NSE) can be challenging as many are geared towards global markets. This discussion explores several options, including unofficial methods using the NSE India website, broker-backed APIs like Zerodha Kite and Upstox, and community APIs on platforms like RapidAPI. While official, free, and unrestricted APIs for NSE data are scarce, practical solutions like Google Apps Script combined with unofficial NSE endpoints offer a way to pull live prices into spreadsheets. For financial fundamentals, services like Screener.in are recommended, but always verify data sources and terms of use, especially for commercial applications.

You're on the right track — many APIs out there (like Yahoo Finance, Alpha Vantage, IEX Cloud) mainly serve US/global markets, and retrieving NSE (India) stock data is tricky due to restrictions.

But yes, there are a few India-based APIs (some free, some limited) that can help you pull NSE stock data into spreadsheets.


βœ… Best APIs for NSE (India) Stock Data

πŸ”Ή 1. NSE India (Official Website) – Unofficial API

While NSE doesn't officially offer a public API, developers use web-scraping or unofficial endpoints.

Example Endpoint:

 
https://www.nseindia.com/api/quote-equity?symbol=INFY

❗ You'll need to set custom headers (like user-agent) and use it via Python, Apps Script, etc.

πŸ”§ How to Use:

  • Write a Google Apps Script (for Google Sheets) or Python scriptt

  • Include headers to mimic a browser request

β›” Limitations:

  • Can break anytime (not officially supported)

  • Rate-limited

  • NSE blocks bots aggressively


πŸ”Ή 2. Groww / Zerodha Kite / Upstox APIs (For Trading + Data)

These are broker-backed APIs — need account & token.

Platform Access Type Notes
Zerodha Kite Connect Paid β‚Ή2000/month for access, very powerful
Upstox API Free/Paid Good documentation
Groww API Beta/invite-based Use with Groww account

βœ… Includes live prices, historical data, orders, etc.
⚠ Requires you to be a customer and go through API token setup.


πŸ”Ή 3. RapidAPI – Unofficial NSE API

Some developers have hosted NSE stock APIs on RapidAPI.

Example:

  • NSE Stock API – returns quotes, option chains, etc.

  • Needs API key (free tier usually available)


πŸ”Ή 4. Value Research / Screener.in (For Fundamentals)

While they don't offer real-time data:

  • Screener.in allows export to Excel

  • Great for financials, P&L, balance sheet, ratios

Use it for analysis, not price tracking.


πŸ”Ή 5. Google Sheets Add-ons (Limited Support)

  • =GOOGLEFINANCE("NSE:INFY") used to work, but now inconsistent for Indian stocks.

  • You can try:

    • MoneyControl Scraper

    • Yahoo Finance (via Apps Script) — also limited for Indian stocks


βœ… Recommendation (Free & Practical)

If you want free + spreadsheet integration, try this:

πŸ“Œ Method: Google Sheets + Apps Script + NSE Unofficial API

  1. Go to Google Sheets > Extensions > Apps Script

  2. Paste this code:

 
function getNSEPrice(symbol) { var url = "https://www.nseindia.com/api/quote-equity?symbol=" + symbol; var options = { "method": "get", "headers": { "User-Agent": "Mozilla/5.0" } }; var response = UrlFetchApp.fetch(url, options); var json = JSON.parse(response.getContentText()); return json["priceInfo"]["lastPrice"]; }
  1. Save it, then use:

 
=getNSEPrice("INFY")

in your sheet.

⚠ You may need to run it manually first to authorize the scriptt.


🧠 Summary

API Type Source Free? Best For
Unofficial NSE nseindia.com βœ… Basic live prices
Broker APIs Zerodha, Upstox ❌ Live trading + data
Screener / ValueResearch Screener.in βœ… Financials & ratios
RapidAPI Community APIs βœ… (limited) Options & quotes
GoogleFinance Google Sheets ❌ (Inconsistent) Hit or miss for NSE

For NSE-listed stocks, try Yahoo Finance via `yfinance` for spreadsheet workflows; it is straightforward and free for typical personal or research use, but it is an unofficial source and data availability, delays and usage limits can change. For Excel or Google Sheets, you can also use NSE’s public website data where accessible, but NSE does not provide a general, unrestricted free API for production use. Check the provider’s terms before using data in client-facing or commercial work.

Stock-data workflows often feed valuation models, audit schedules and investment reports, so validate timestamps and corporate actions before relying on the output. Manual downloads and refreshes are difficult to maintain; automation reduces repetitive work while professional judgment stays in control. At Jir AI, our 2,000+ AI agents and 650+ integrations streamline GST, ITR, TDS, TCS and other compliance workflows, helping reduce manual workload by up to 70%. WhatsApp us to discuss your workflow https://wa.me/message/3HVOZ7HIY4ESC1.

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
23 November 2026
dombivali east-->fresher accountant

dombivali east--> veer cloud software opc pvt ltd

Thane

Graduate (Any)

View Details
Company
Featured ARTICLESHIP 17 November 2026
Associate/ Article Trainee

M/s. A V C & Co.

New Delhi

CA Inter

View Details
Company
25 November 2026
Account Executive

Aarti HR Services

Navi Mumbai

B.Com

View Details
Company
Featured 07 November 2026
Chartered Accountant

DPV & Associates

Chennai

CA

View Details
Company
30 November 2026
CHARTERED ACCOUNTANT

R VENDER GUPTA AND ASSOCIATES

New Delhi

CA

View Details
Company
10 November 2026
FP&A Executive

Gujarat Guardian

Ankleshwar

CA Final

View Details
Company
ARTICLESHIP 17 November 2026
Vacancy for Articleship

Promptitude Accounting Services Private limited

Bengaluru

B.Com

View Details
Company
12 November 2026
Tax Product Specialist

BharatX.ai

Gurgaon

B.Com

View Details