CNBC API: Get market snapshot
Returns CNBC levels and changes for major stock indexes and U.S. futures, optionally by region. Quote times and market-status labels are null when CNBC does not show them; quotes may be delayed.
Unofficial. Not affiliated with or endorsed by CNBC.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Region optional
region Market region to include, such as "europe". Defaults to "us".
us
One of
us,europe,asia,all. Defaultus.
Input as JSON
{ "region": "us"}Output
{ "markets": [ { "name": "Dow Jones Industrial Average", "as_of": null, "level": 52867.98, "page_url": "https://www.cnbc.com/quotes/.DJI" , "cnbc_symbol": ".DJI", "change_points": 11.89, "market_status": null, "change_percent": 0.02 }, { "name": "S&P 500", "as_of": null, "level": 7663.43, "page_url": "https://www.cnbc.com/quotes/.SPX" , "cnbc_symbol": ".SPX", "change_points": -93.74, "market_status": null, "change_percent": -1.21 }, { "name": "Nasdaq Composite", "as_of": null, "level": 26008.859, "page_url": "https://www.cnbc.com/quotes/.IXIC" , "cnbc_symbol": ".IXIC", "change_points": -693.999, "market_status": null, "change_percent": -2.6 } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"cnbc.com/get_market_snapshot","input":{"region":"us"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "cnbc.com/get_market_snapshot" , "input": { "region": "us" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "cnbc.com/get_market_snapshot" , "input": { "region": "us" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run cnbc.com/get_market_snapshot# with {"region":"us"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [], "properties": { "region": { "enum": [ "us", "europe", "asia", "all" ], "type": "string", "default": "us", "description": "Market region to include, such as \"europe\". Defaults to \"us\"." } }}Output schema
{ "type": "object", "required": [ "markets" ], "properties": { "markets": { "type": "array", "items": { "type": "object", "required": [ "name", "level", "change_points", "change_percent", "as_of", "market_status", "cnbc_symbol", "page_url" ], "properties": { "name": { "type": "string", "description": "Index or futures name." }, "as_of": { "type": [ "string", "null" ], "description": "Time of the quote with its UTC offset, if provided by CNBC." }, "level": { "type": [ "number", "null" ], "description": "Most recent reported level." }, "page_url": { "type": "string", "description": "CNBC quote page." }, "cnbc_symbol": { "type": "string", "description": "CNBC quote symbol.", "x-fous-developer": true }, "change_points": { "type": [ "number", "null" ], "description": "Change from the previous close in points." }, "market_status": { "type": [ "string", "null" ], "description": "CNBC market-status label if one is explicitly provided." }, "change_percent": { "type": [ "number", "null" ], "description": "Change from the previous close as a percentage number." } }, "additionalProperties": false }, "description": "Market quotes in the requested regional order." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
cnbc.com/get_market_snapshot- Returns
- name, level, change points and percent, as-of time, market status, CNBC symbol, page URL
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method cnbc.com/get_market_snapshot with the inputs above.
Ask your agent
- What are the current levels and daily changes for the major U.S. stock indexes?
- Show me how Asian stock indexes are trading right now, including point and percent changes.
- Give me a snapshot of European market indexes with their latest levels and whether the market is open.
- I need the S&P 500, Dow, and Nasdaq futures levels from cnbc.com along with their as-of times.
- Pull a combined view of all global regions' index levels and changes, noting any delayed quotes.
See more
All CNBC methodsLists CNBC article headlines in the order they appear on a public news section page, with summary, time, authors and image.
cnbc.com/list_headlinesSearches CNBC-published articles by keyword, with optional publication date range, sort order and pagination. Excludes videos, wire stories and press releases.
cnbc.com/search_newsLists major stock market indexes on Google Finance with their current levels, changes and quote times. Quotes may be delayed, and indexes Google does not show are left out.
google.com/list_market_indexesGet a delayed US-listed stock snapshot from its ticker or company name. Analyst labels summarize Finviz's 1-5 mean score; dividend yield uses the estimated dividend when available. Missing metrics return null.
finviz.com/get_stock_snapshotLists Yahoo Finance's top gainers, top losers, most active stocks, or regional trending tickers in Yahoo's order, with price, change, volume and market cap.
finance.yahoo.com/list_market_moversLists CNN headlines in the order shown on a chosen news section page (top stories, US, world, politics, business, health, entertainment or science), with each story's summary, publication time, authors and image when available. Promotions and video-only items are left out.
cnn.com/list_headlinesGets a stock's latest MSN Money quote and key facts by company name or ticker and listing country. Quotes may be delayed outside market hours.
msn.com/get_stock_quoteGets current quoted prices for energy, metals, and agricultural commodities from Investing.com's real-time futures page, optionally for one commodity. Some quotes may be delayed or indicative; units are null when the contract specification is missing.
investing.com/get_commodity_prices