MeroLagani APImerolagani.com ↗
Access Nepal Stock Exchange data via MeroLagani API: stock listings, company search, market summaries, quarterly reports, and financial metrics like EPS and P/E ratio.
What is the MeroLagani API?
The MeroLagani API provides access to Nepal Stock Exchange (NEPSE) data across 5 endpoints, covering everything from a full stock listing with symbols and internal IDs to per-company financials including EPS, P/E ratio, 52-week high/low, and market cap. The get_market_summary endpoint alone returns sector-wise turnover, top broker activity, and individual stock movements in a single call.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/e0e96569-8b5b-4bb5-9680-0d5927228350/get_stock_list' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace merolagani-com-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
from parse_apis.merolagani_stock_market_api import Merolagani, StockSummary, Stock, MarketSummary, QuarterlyReport
client = Merolagani()
# Search for banking stocks and navigate to full details
for summary in client.stocksummaries.search(query="Bank"):
print(summary.symbol, summary.company_name)
detail = summary.details()
print(detail.ltp, detail.pe_ratio, detail.fifty_two_high, detail.market_cap)
break
# Get full detail for a known stock directly
stock = client.stocks.get(symbol="NABIL")
print(stock.name, stock.ltp, stock.percent_change, stock.eps)
# Get today's market summary
market = client.marketsummaries.get()
print(market.mt, market.overall.d, market.overall.t, market.overall.q)
# List quarterly financial reports for the current month
for report in client.quarterlyreports.list():
print(report.publication_date, report.title)
Get a complete list of all stock symbols and company names listed on NEPSE. Returns all listed companies with their symbol, name, and internal ID. No parameters required.
No input parameters required.
{
"type": "object",
"fields": {
"total": "integer total count of stocks",
"stocks": "array of stock summary objects with symbol, company_name, and id"
},
"sample": {
"data": {
"total": 1638,
"stocks": [
{
"id": "1",
"symbol": "ADBL",
"company_name": "Agriculture Development Bank Limited"
},
{
"id": "3",
"symbol": "CBL",
"company_name": "Civil Bank Ltd"
}
]
},
"status": "success"
}
}About the MeroLagani API
Stock Listings and Company Search
The get_stock_list endpoint returns the complete set of NEPSE-listed companies, each with a symbol, company_name, and internal id. A total count is included so you can verify completeness. The search_company endpoint accepts a query string and performs a case-insensitive match against both name and symbol — useful for fuzzy lookups where the exact ticker is unknown. It returns a total count alongside a results array using the same symbol, company_name, and id shape.
Company-Level Financials
The get_company_details endpoint takes a NEPSE symbol (e.g., NABIL, EBL) and returns a compact financial snapshot: ltp (last traded price), percentChange, fiftyTwoHigh, fiftyTwoLow, eps, peRatio, and marketCap in NPR. All values are returned as strings, so numeric parsing is the caller's responsibility.
Market Summary
The get_market_summary endpoint returns a broad view of the current trading session. The overall object includes turnover (t), traded quantity (q), transaction count (tn), and number of traded stocks (st). Supporting objects — turnover, sector, broker, and stock — each carry a date and a detail array, covering top stocks by turnover, sector-wise turnover breakdown, top brokers, and individual stock movements respectively. The mt field indicates current market status.
Quarterly Financial Reports
The get_quarterly_reports endpoint filters published financial statements by date range using from_date and to_date parameters in MM/DD/YYYY format. When no dates are provided, it defaults to the current calendar month. Each entry in the reports array includes publication_date, title, and description. The response echoes back the effective from_date and to_date so callers can verify which window was applied.
The MeroLagani API is a managed, monitored endpoint for merolagani.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when merolagani.com 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 merolagani.com 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?+
- Build a NEPSE portfolio tracker that pulls
ltpandpercentChangeper symbol viaget_company_details - Screen NEPSE stocks by P/E ratio and market cap using fields returned from
get_company_details - Monitor daily sector-wise turnover from
get_market_summaryto identify active market segments - Alert on quarterly financial report publications using
get_quarterly_reportsfiltered by date range - Populate an autocomplete search for NEPSE companies using
search_companywith partial name or symbol queries - Compare top broker activity across sessions using the
brokerdetail array inget_market_summary - Seed a company database with all NEPSE listings using the full symbol-name-ID list from
get_stock_list
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does MeroLagani have an official developer API?+
What does `get_market_summary` return, and how is it structured?+
overall (aggregate session stats including turnover, quantity, transactions, and traded stock count), turnover (top stocks by turnover), sector (sector-wise turnover), broker (top brokers), and stock (individual stock movements). Each section includes a date field and a detail array. A top-level mt field indicates current market status.Does `get_quarterly_reports` return reports for a specific company or sector?+
Is intraday or tick-by-tick price data available?+
ltp) and session-level aggregate data from get_market_summary, but does not provide intraday OHLCV, historical price series, or tick data. You can fork this API on Parse and revise it to add a historical price endpoint if that data becomes accessible.Are there any known limitations with the `get_quarterly_reports` date format?+
MM/DD/YYYY format (e.g., 01/15/2024). When either parameter is omitted, the endpoint defaults to the first and last day of the current month — it does not accept partial date inputs or ISO 8601 format. Passing an incorrect date format may return empty results without an explicit error.