API Docs
This API is private. Every request needs either a logged-in browser session (this site) or an API key sent as Authorization: Bearer <key>. Generate a key below — it's shown once, so copy it immediately.
Your API keys
Log in to generate and manage API keys.
Endpoints
GET /api/stocks— All stocks, latest snapshot. ?sector=hydro&sort=-change_pctGET /api/stocks/NABIL— Single stockGET /api/stocks/NABIL/history?days=90— Daily OHLC time series (?days=all for the full archive)GET /api/market/summary— Breadth, top gainers/losers, most active
Example
curl -H "Authorization: Bearer <your-api-key>" \ https://nepse-api-eight.vercel.app/api/stocks/NABIL/history?days=90
Full field-by-field reference — every response shape, status code, and caching header — is in API.md in the repository.