Discover/Hf API
live

Hf APImemic-nse-quotes-api.hf.space

Access Indian NSE stock quotes and NIFTY 50 market summary data via 2 endpoints. Get price, volume, change, PE ratio, advances/declines, and market tone.

This API takes change requests — .
Endpoint health
verified 2h ago
get_market_summary
1/1 passing latest checkself-healing
Endpoints
2
Updated
3h ago

What is the Hf API?

This API exposes 2 endpoints for Indian National Stock Exchange data: get_quotes retrieves price, volume, and change metrics for one or more NSE-listed symbols in a single request, while get_market_summary returns a snapshot of NIFTY 50 index conditions including open, high, low, PE ratio, advances/declines, and a market tone string — no authentication or input required for the summary endpoint.

This call costs1 credit / call— charged only on success
Try it
Comma-separated NSE stock symbols (e.g. RELIANCE,TCS,INFY). Symbols are uppercased automatically.
api.parse.bot/scraper/48798639-860f-44f5-8978-4d43e065432d/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X POST 'https://api.parse.bot/scraper/48798639-860f-44f5-8978-4d43e065432d/get_quotes' \
  -H 'X-API-Key: $PARSE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "symbols": "RELIANCE,TCS"
}'
Python SDK · recommended

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 memic-nse-quotes-api-hf-space-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: NSE Quotes API — market summary and stock quotes."""
from parse_apis.memic_nse_quotes_api_hf_space_api import NseQuotes, InputFormatInvalid

client = NseQuotes()

# Fetch current market summary with NIFTY 50 index data.
market = client.market_summaries.get()
print(market.market_tone, market.summary)
print(f"NIFTY change: {market.nifty_change_pct}%")

# Access the NIFTY 50 index details from the indices map.
nifty = market.indices.get("nifty_50")
if nifty is not None:
    print(f"{nifty.index_name}: last={nifty.last} PE={nifty.pe} advances={nifty.advances} declines={nifty.declines}")

# Fetch quotes for specific symbols; handle per-symbol errors gracefully.
try:
    result = client.quote_results.fetch(symbols="RELIANCE,TCS")
except InputFormatInvalid as e:
    print(f"Invalid input: {e.message}")
else:
    print(f"Quotes returned: {result.count}")
    for sym, quote in result.quotes.items():
        print(f"  {sym}: {quote}")
    for sym, err in result.errors.items():
        print(f"  {sym} error: {err}")

print("exercised: market_summaries.get / quote_results.fetch")
All endpoints · 2 totalmissing one? ·

Fetch stock quotes for one or more NSE-listed symbols. Returns available price data and per-symbol errors when the upstream NSE source cannot resolve a symbol. Accepts a comma-separated list of NSE symbols (e.g. RELIANCE, TCS, INFY). The upstream data source may intermittently fail to return data for valid symbols; errors are reported per symbol in the response.

Input
ParamTypeDescription
symbolsrequiredstringComma-separated NSE stock symbols (e.g. RELIANCE,TCS,INFY). Symbols are uppercased automatically.
Response
{
  "type": "object",
  "fields": {
    "count": "integer count of symbols that returned price data",
    "errors": "object mapping symbol names to error messages for symbols that failed to resolve",
    "quotes": "object mapping symbol names to their quote data (price, volume, change, etc.)",
    "success": "boolean indicating whether the API call itself succeeded"
  },
  "sample": {
    "data": {
      "count": 0,
      "errors": {
        "TCS": "Expecting value: line 1 column 1 (char 0)",
        "INFY": "Expecting value: line 1 column 1 (char 0)",
        "RELIANCE": "Expecting value: line 1 column 1 (char 0)"
      },
      "quotes": {},
      "success": true
    },
    "status": "success"
  }
}

About the Hf API

Stock Quotes via get_quotes

The get_quotes POST endpoint accepts a symbols parameter containing a comma-separated list of NSE ticker symbols (e.g. RELIANCE,TCS,INFY). Symbols are automatically uppercased. The response includes a quotes object keyed by symbol, each containing price, volume, and change data. A separate errors object maps any unresolvable symbols to descriptive error messages, and a count integer tells you how many symbols returned valid data. This partial-success design means a single bad symbol in a batch does not block results for the rest.

Market Summary via get_market_summary

The get_market_summary GET endpoint requires no inputs and returns a current snapshot of NSE market conditions. The indices object is keyed by index identifier (e.g. nifty_50) and contains fields: last, open, high, low, previous_close, and change_pc. Top-level fields include nifty_change_pct (a numeric percentage change for the day), market_tone (a string like mildly positive or negative), and a human-readable summary sentence suitable for display or alerting pipelines.

Error Handling and Availability

Both endpoints return a success boolean at the top level. The get_quotes endpoint documents that the upstream NSE data source may intermittently fail to resolve symbols, so callers should always inspect both the quotes and errors objects in the response rather than assuming all requested symbols resolved successfully.

Reliability & maintenanceVerified

The Hf API is a managed, monitored endpoint for memic-nse-quotes-api.hf.space — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when memic-nse-quotes-api.hf.space 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 memic-nse-quotes-api.hf.space 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.

Last verified
2h ago
Latest check
1/1 endpoint passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Display live NSE stock prices for a watchlist using get_quotes with a batch of symbols
  • Trigger portfolio alerts when nifty_change_pct from get_market_summary crosses a threshold
  • Show a market sentiment badge using the market_tone field in a financial dashboard
  • Log daily NIFTY 50 open/high/low/close snapshots from indices.nifty_50 for historical tracking
  • Validate NSE ticker symbols by checking the errors object in the get_quotes response
  • Feed a screener tool with PE ratio and advances/declines data from the market summary endpoint
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 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.

Frequently asked questions
Does NSE provide an official developer API?+
NSE (National Stock Exchange of India) does not publish a free, documented public REST API for real-time market data. Data access is typically available through licensed data vendors or the NSE's own trading terminals.
What does get_quotes return when a symbol can't be resolved?+
The response still returns success: true for the overall call, but the unresolvable symbol appears in the errors object with an error message instead of in quotes. The count field reflects only the symbols that returned valid price data, so you can use it to detect partial failures in a batch request.
Does the API cover indices beyond NIFTY 50, such as NIFTY Bank or NIFTY Midcap?+
The get_market_summary endpoint currently returns data keyed to nifty_50. Other NSE indices like NIFTY Bank or NIFTY Midcap 100 are not covered by the existing endpoints. You can fork this API on Parse and revise it to add a dedicated endpoint for additional indices.
Is historical OHLC or intraday chart data available?+
Not currently. Both endpoints return current-session snapshots: live quote data from get_quotes and a single market summary from get_market_summary. Historical price series and intraday tick data are not exposed. You can fork this API on Parse and revise it to add a historical data endpoint.
Can I retrieve fundamentals like EPS, dividend yield, or book value through get_quotes?+
The get_quotes endpoint returns price and volume metrics including change data. Fundamental ratios such as EPS, dividend yield, and book value are not part of the response schema. The get_market_summary endpoint does expose a PE ratio at the index level. You can fork this API on Parse and revise it to surface per-symbol fundamental data.
Page content last updated . Spec covers 2 endpoints from memic-nse-quotes-api.hf.space.
Related APIs in FinanceSee all →
nseindia.com API
Track live NSE stock prices, monitor indices, analyze option chains, and access corporate announcements with real-time market data from India's National Stock Exchange. View equity quotes with full order books, identify top gainers/losers, analyze 52-week highs/lows, and explore historical price trends all in structured JSON format.
hdfcsec.com API
Track real-time equity market movements by finding the most active NSE stocks, top gainers and losers, 52-week highs and lows, and detailed stock quotes. Search for specific stocks and get comprehensive market overviews to make informed investment decisions.
nasdaq.com API
Track real-time and historical stock prices, ETF and mutual fund quotes, cryptocurrency data, and comprehensive company financials including earnings, dividends, and SEC filings all from one source. Research market trends with institutional holdings, short interest data, retail trading activity, and market movers to make informed investment decisions.
niftyindices.com API
niftyindices.com API
nepalstock.com.np API
Access real-time stock prices, market indices, and trading data from Nepal's stock exchange (NEPSE). Retrieve live price updates, market summaries, top performers, and detailed information on listed securities.
nepsealpha.com API
Track Nepal's stock market in real-time with live prices, historical OHLCV data, and detailed sector summaries, while leveraging technical and fundamental analysis signals to make informed trading decisions. Monitor floorsheet transactions, assess investment risks, and search specific symbols all from a single comprehensive market data platform.
barchart.com API
Monitor live stock quotes and commodity prices, analyze options chains with gamma exposure data, and access historical market time series to track top-performing stocks. Use real-time and historical data to make informed trading and investment decisions across equities and commodities.
chartink.com API
Access real-time and historical stock market data from Indian exchanges (NSE/BSE) to analyze fundamentals, technical indicators, and OHLCV metrics, plus run custom stock screeners to find investment opportunities. Search for specific stocks and browse all listed symbols to build data-driven trading strategies and investment research.