Markets

Stock Prices API

Split-adjusted closing prices for up to 20 tickers at once, daily, weekly or monthly, in one table with a column per ticker.

Overview

Exchange closing prices for the companies we cover, adjusted for splits, returned as one table: a row per day, week or month and a column per ticker, so several stocks line up without joining.

Ask for up to 20 tickers at once over any range; a ticker we have no prices for is listed under missing rather than failing the call.

CoverageSourceUpdated
1,596 listed companiesExchange closing prices, split-adjustedDaily, after the close

Authenticate with a data key in the x-inference-key header (get one).

Prices

Closing prices for one or more tickers, a column each.

GET/v1/data/prices

Query parameters

NameTypeDescription
tickersrequiredstringComma-separated tickers, up to 20: NVDA,MSFT.
fromdateFirst date, YYYY-MM-DD.
todateLast date, YYYY-MM-DD.
everystringDaily, weekly or monthly: the last close in each week or month.dwmDefault d

Response

FieldTypeDescription
tickersstring[]The tickers returned.
missingstring[]Tickers asked for with no prices on file.
everystringd, w or m, as asked.
fromdate | nullFirst date asked for.
todate | nullLast date asked for.
adjustedstringsplits: prices are adjusted for splits.
sourcestringWhere the prices come from.
rows[].datedateThe day, or the last trading day of the week or month.
rows[].<TICKER>number | nullEach ticker's close.
truncatedbooleanWhether rows were cut to the most recent 6,000.
withheldstring | nulldisplay_rights when prices cannot be shown.

Errors

StatusWhen
400A parameter is missing or malformed; the message names it and says what would work.
401No data key, or a revoked or unknown one, or its account has no payment method on file.
404None of the tickers has prices on file.
429The key is over its requests a minute. Wait and retry.
Prices
curl "https://api.theinference.org/v1/data/prices?tickers=NVDA,MSFT&from=2026-11-01" \
  -H "x-inference-key: tik_your_key"
Response
{
  "tickers": [
    "NVDA",
    "MSFT"
  ],
  "missing": [],
  "every": "d",
  "from": "2026-11-01",
  "to": null,
  "adjusted": "splits",
  "source": "exchange closing prices",
  "rows": [
    {
      "date": "2026-11-02",
      "NVDA": 202.06,
      "MSFT": 507.12
    },
    {
      "date": "2026-11-03",
      "NVDA": 206.69,
      "MSFT": 520.99
    },
    "… 17 more"
  ],
  "truncated": false,
  "withheld": null
}

200 is a real response to the request above, trimmed.

Subscribe to TheInference for free