Market Data

Get historical stock price data

Changed on

Get end-of-day (EOD) historical price data for stocks.

get/prices

Request

  • Base URL
    https://api.financialdatasets.ai
  • Auth
    API key in header X-API-KEY

Query parameters

tickerstring required

The stock ticker symbol (e.g. AAPL, MSFT).

interval'day' | 'week' | 'month' | 'year' required

The time interval for the price data.

start_datestring date required

The start date for the price data (format: YYYY-MM-DD).

end_datestring date required

The end date for the price data (format: YYYY-MM-DD).

cursorstring

Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.

Response

Price data response

tickerstring

The ticker symbol.

next_page_urlstring

Absolute URL of the next page of results. Present only when more results remain; request it as-is to continue. Each page holds up to 100 records.

Changes

    • info

      added the new optional query request parameter cursor

    • info

      added the optional property to the response with the status