MeroLagani APImerolagani.com ↗
Access Nepal Stock Exchange data via the MeroLagani API: stock listings, company search, market summaries, floorsheet transactions, and quarterly reports.
What is the MeroLagani API?
The MeroLagani API provides 6 endpoints covering Nepal Stock Exchange (NEPSE) market data sourced from merolagani.com. You can retrieve a full list of all listed companies via get_stock_list, fetch per-stock financial metrics including EPS, P/E ratio, and 52-week range via get_company_details, pull individual trade-level floorsheet records, and access sector-wise market summaries — all in structured JSON.
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.
"""Walkthrough: Merolagani Stock Market SDK — bounded, re-runnable; every call capped."""
from parse_apis.Merolagani_Stock_Market_API import Merolagani, ParseError
client = Merolagani()
# Search for banking stocks
for summary in client.stock_summaries.search(query="Bank", limit=3):
print(summary.symbol, summary.company_name)
# Get full details for a known stock
stock = client.stocks.get(symbol="NABIL")
print(stock.name, stock.ltp, stock.percent_change, stock.fifty_two_high)
# Get today's market summary
market = client.market_summaries.get()
print(market.mt, market.overall.d, market.overall.t)
# List floorsheet transactions for a specific stock
for txn in client.floorsheet_transactions.list(symbol="NABIL", limit=3):
print(txn.transaction_no, txn.symbol, txn.buyer_broker, txn.seller_broker, txn.quantity, txn.rate, txn.amount)
# Drill-down: get details from a search result
item = client.stock_summaries.search(query="Hydro", limit=1).first()
if item:
try:
detail = item.details()
print(detail.name, detail.ltp, detail.eps)
except ParseError as e:
print(f"error: {e.code}")
print("exercised: stock_summaries.search, stocks.get, market_summaries.get, floorsheet_transactions.list, StockSummary.details")
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 Discovery and Company Data
The get_stock_list endpoint returns the complete set of NEPSE-listed companies, including each company's symbol, full name, and internal ID — useful for building lookup tables or seeding subsequent queries. search_company accepts a free-text query parameter matched against both company names and ticker symbols, returning a results array with matching symbol, company_name, and id fields. Once you have a symbol, get_company_details returns a focused financial snapshot: ltp (last traded price), eps, peRatio, marketCap, fiftyTwoHigh, fiftyTwoLow, and percentChange.
Market Activity and Floorsheet
get_market_summary returns a snapshot of the most recent trading session across five objects: overall (aggregate turnover, quantity, and transaction count), turnover (top stocks by value traded), sector (sector-wise turnover breakdown), broker (top brokers), and stock (individual stock price movements). No parameters are required.
The get_floorsheet endpoint exposes the NEPSE trade log at transaction level. Each record includes transaction_no, symbol, buyer_broker, seller_broker, quantity, rate, and amount. Results are paginated at 500 records per page; use the page parameter to iterate. You can filter by symbol for a single stock, and by from_date and to_date (both in MM/DD/YYYY format) to target a specific session.
Quarterly Reports
get_quarterly_reports filters stock event announcements for financial statement keywords, returning matching items with publication_date, title, and description. The from_date and to_date parameters (both optional, both MM/DD/YYYY) control the date window; when omitted, the endpoint defaults to the current calendar month. The response includes the resolved from_date and to_date values so you can confirm what range was actually queried.
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 stock screener using EPS, P/E ratio, and 52-week range from get_company_details
- Track intraday trade flow for a specific symbol by paginating through get_floorsheet filtered by symbol
- Monitor sector-wise market turnover shifts using the sector object from get_market_summary
- Aggregate quarterly earnings release dates across all listed companies via get_quarterly_reports
- Resolve a partial company name to its NEPSE ticker symbol using search_company before fetching details
- Identify top broker activity in a given session using the broker detail array from get_market_summary
- Populate a company directory with all NEPSE-listed symbols and names via get_stock_list
| 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 MeroLagani have an official developer API?+
What does get_floorsheet return and how do I filter it to a single stock?+
symbol parameter (e.g. NABIL) to limit results to that ticker. Use from_date and to_date in MM/DD/YYYY format to target a specific trading session. Each page holds up to 500 records; use the page parameter to paginate through large result sets.