Com APInepalstock.com.np ↗
Access real-time NEPSE indices, stock prices, market summaries, top performers, and historical OHLC data for all listed securities via a structured JSON API.
What is the Com API?
This API exposes 8 endpoints covering Nepal Stock Exchange (NEPSE) market data, from live index values to per-security OHLC history. get_nepse_index returns all four major indices — NEPSE, Sensitive, Float, and Sensitive Float — with current value, 52-week range, and percentage change. get_today_prices delivers intraday prices for every traded security, and get_stock_history provides paginated daily trade records going back up to a year per request.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/200a3fbe-2c84-436d-8f67-6c08621de86e/get_nepse_index' \ -H 'X-API-Key: $PARSE_API_KEY'
Get current values and changes for various NEPSE indices including NEPSE Index, Sensitive Index, Float Index, and Sensitive Float Index. Returns all four indices with their current value, day range, 52-week range, and percentage change.
No input parameters required.
{
"type": "object",
"fields": {
"items": "array of Index objects with id, index name, currentValue, close, high, low, change, perChange, previousClose, fiftyTwoWeekLow, fiftyTwoWeekHigh"
},
"sample": {
"data": {
"items": [
{
"id": 58,
"low": 2722.67,
"high": 2744.18,
"close": 2733.6,
"index": "NEPSE Index",
"change": 2.57,
"perChange": 0.09,
"currentValue": 2736.17,
"previousClose": 2736.18,
"fiftyTwoWeekLow": 2487.18,
"fiftyTwoWeekHigh": 3002.08
}
]
},
"status": "success"
}
}About the Com API
Index and Market-Wide Data
get_nepse_index returns a flat array of index objects, each carrying currentValue, previousClose, change, perChange, fiftyTwoWeekLow, and the intraday high/low for all four NEPSE indices. get_market_summary complements this with aggregate market metrics — total turnover, total traded shares, number of transactions, scrips traded, and market capitalization — returned as key-value detail/value pairs. get_index_history accepts an index_id parameter (58 = NEPSE, 57 = Sensitive, 62 = Float, 63 = Sensitive Float) and a zero-based page number, returning 20 records per page with businessDate, closingIndex, openIndex, highIndex, lowIndex, turnoverValue, turnoverVolume, and totalTransactions.
Per-Security Data
get_today_prices lists every security traded on index 58 for the current session, including symbol, lastTradedPrice, percentageChange, and totalTradeQuantity. get_stock_detail accepts either a ticker symbol (e.g. NABIL) or a numeric securityId and returns two structured objects: securityData with metadata such as sector, email, and activeStatus, and securityMcsData with the session's openPrice, highPrice, lowPrice, closePrice, previousClose, and trade volume. search_stocks takes an optional query string and performs a case-insensitive partial match against both symbol and company name, returning id, symbol, securityName, and activeStatus for each result.
Historical Data and Rankings
get_stock_history returns paginated daily records for a single security identified by symbol or numeric ID. The optional start_date and end_date parameters accept ISO YYYY-MM-DD strings; when omitted, the endpoint defaults to the last 365 days. Each page contains up to 20 records with businessDate, highPrice, lowPrice, closePrice, totalTradedQuantity, totalTradedValue, and totalTrades. Pagination metadata includes pageNumber, totalPages, and totalElements. get_top_performers accepts a type parameter to rank securities by different criteria and returns up to 10 entries with symbol, ltp, percentageChange, pointChange, and securityName.
The Com API is a managed, monitored endpoint for nepalstock.com.np — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when nepalstock.com.np changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official nepalstock.com.np API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Track daily NEPSE index movements by pulling
currentValue,change, andperChangefromget_nepse_index. - Build a NEPSE stock screener using
get_today_pricesto filter securities bypercentageChangeortotalTradeQuantity. - Backfill historical OHLC charts for any listed security using
get_stock_historywith a customstart_date/end_daterange. - Display a live market dashboard combining
get_market_summaryturnover and capitalization figures with real-time index values. - Identify top movers at market close by querying
get_top_performerswith different ranking types. - Autocomplete stock search in a portfolio tracker using
search_stockswith partial symbol or company name input. - Compare sector-level performance by aggregating
securityData.sectorfields from multipleget_stock_detailcalls.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 200 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
| Team | $300/mo | 20,000 | 300 req/min |
| Company | $1,000/mo | 100,000 | 500 req/min |
Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Nepal Stock Exchange offer an official developer API?+
What does `get_stock_detail` return beyond basic price data?+
get_stock_detail returns two objects. securityData includes the security's sector classification, email contact, and activeStatus. securityMcsData covers the full session OHLC — openPrice, highPrice, lowPrice, closePrice — along with previousClose, totalTradeQuantity, and lastTradedPrice. You can pass either a ticker symbol like ADBL or a numeric security ID like 397.How far back does `get_index_history` go, and how is it paginated?+
totalPages and totalElements fields in the response let you determine the full depth available. Use the zero-based page parameter to step through all pages. The historical depth is determined by what NEPSE's records contain — there is no hard cutoff imposed by the API itself.Does the API cover broker-level data, order book depth, or pre-market activity?+
Can I retrieve data for delisted or suspended securities?+
search_stocks endpoint filters to non-delisted securities and returns an activeStatus field, but delisted security history is not exposed through the current endpoints. get_stock_detail and get_stock_history are intended for active listings. You can fork this API on Parse and revise it to add coverage for delisted securities if needed.