Search Indian stocks and funds by name or industry term and get NSE symbol, BSE scrip code, RIC codes, sector and trend labels
View all Indian Stock Exchange API endpoints →Searches Indian listed instruments for a text term and returns a JSON array of match objects. query is required (for example tata). The endpoint documentation describes it as a search within an industry; the observed probe (query=tata) returned HTTP 200 with a JSON array of 17 objects, every one with the same ten keys: id (an internal identifier such as S0003051), commonName, stockType, exchangeCodeBse (the BSE numeric scrip code as a string), exchangeCodeNsi (the NSE symbol), bseRic, nseRic (Reuters-style codes such as TCS.BO and TCS.NS), mgIndustry, mgSector and activeStockTrends, an object with shortTermTrends, longTermTrends and overallRating. In the probe, stockType was Equity for 12 rows, Fund for 3 ETF rows and null for 2 rows; exchangeCodeNsi was null for one row and exchangeCodeBse was an empty string for one fund. Also in the probe, mgIndustry and mgSector were null in all 17 rows and all three trend fields held the text NA. The unverified source example shows these fields populated (for instance Software & Programming, Technology, Bearish and Bullish), and it lists TATAMOTORS and Tata Motors DVR where the probe returned TMCV and TMPV, so treat the example values as illustrative. No pagination or filter parameter is declared, and the maximum number of matches is unverified. The data is informational, not investment advice.
API Features
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/api/project/indian-stock-exchange-api/industry-search API Response (JSON)
{} curl -X GET 'https://api.opendata-api.com/api/project/indian-stock-exchange-api/industry-search?key=<API_KEY>&query=tata'
Query Result
Use Cases
- A typeahead search box that returns the NSE symbol, BSE scrip code and RIC for each match as the user types a company name.
- An identifier crosswalk table of internal id, NSE symbol, BSE numeric code and RIC loaded into a data warehouse to join feeds from different vendors.
- A peer-list builder that searches a group name such as tata and keeps only the Equity rows, dropping ETF and fund lines.
- A pre-screen that reads the trend labels on each search row before spending a detail call, skipping rows reported as NA.
- A duplicate-share-class detector that flags ordinary and differential-voting lines from the same group by their similar names.
- A chat-bot step that turns a user-typed company name into an NSE symbol before calling quote or history endpoints.
Frequently asked questions
What does the Industry Search endpoint return?
A JSON array of match objects. In the probe for query=tata it returned 17 objects, each with id, commonName, stockType, exchangeCodeBse, exchangeCodeNsi, bseRic, nseRic, mgIndustry, mgSector and an activeStockTrends object holding shortTermTrends, longTermTrends and overallRating.
Which parameter do I need to send?
Only query, which is required. Pass a search term such as tata. The probe used query=tata and returned HTTP 200.
How do I get the NSE symbol and BSE code for a company name?
Read exchangeCodeNsi for the NSE symbol and exchangeCodeBse for the BSE numeric scrip code in each match. The bseRic and nseRic fields give the matching RIC codes, for example TCS.BO and TCS.NS in the probe row for Tata Consultancy Services.
Why are mgIndustry and mgSector null and the trend fields NA?
In the probe for tata, mgIndustry and mgSector were null and all three activeStockTrends fields were the text NA in every one of the 17 rows. The source example shows populated values, so handle null and NA as normal values rather than errors.
Does the list contain only stocks?
No. The probe also returned ETF rows with stockType Fund and two rows with a null stockType, one of which had a null NSE symbol. Filter on stockType equal to Equity if you only want listed company shares.
Can I search by industry name instead of company name?
The endpoint documentation describes the search as querying an industry, but only a company-name stem (tata) was probed. Industry terms such as software or auto are unverified, so test your term before relying on it.
Are the codes in the documentation example still current?
Not always. The source example lists TATAMOTORS and Tata Motors DVR, while the probe returned TMCV for Tata Motors and TMPV for Tata Motors Passenger Vehicles Ltd. Always rely on a live response for current symbols and scrip codes.