GET
/
historical
/
{symbol}
Get historical stock price data
curl --request GET \
  --url https://api.fcontext.com/historical/{symbol} \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": [
    {
      "date": "2024-01-02T00:00:00.000Z",
      "open": 187.15,
      "high": 188.44,
      "low": 183.89,
      "close": 185.64,
      "adjclose": 185.24,
      "volume": 82488200
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 250,
    "total": 250,
    "hasNext": false
  },
  "message": "Historical data retrieved successfully",
  "timestamp": "2024-01-02T12:00:00Z"
}

Authorizations

X-API-Key
string
header
required

Query Parameters

symbol
string
required

Stock symbol

Minimum length: 1
startDate
string

Start period date string in YYYY-MM-DD format

endDate
string

End period date string in YYYY-MM-DD format

interval
enum<string>
default:1d

Historical data interval

Available options:
1d,
1wk,
1mo
events
string

Events to include (dividends, splits)

includeAdjustedClose
boolean
default:true

Include adjusted close price

lang
string
default:en-US

Language code

region
string
default:US

Region code

Response

Historical data retrieved successfully

success
boolean
required

Indicates successful API response

data
object[]
required

Array of historical price data points

pagination
object
required

Pagination information

timestamp
string
required

ISO 8601 timestamp of the response

message
string

Optional success message

meta
object

Optional metadata including pagination, statistics, and additional context