Autocomplete API
Symbol suggestions as someone types, in YH's legacy ResultSet shape, built for search boxes.
GET/v6/finance/autocomplete
Request
curl -H "x-api-key: $KEY" \
"https://api.stockdataapi.com/v6/finance/autocomplete?query=apple"Send your key in the x-api-key header. Try it in the browser with your own key.
Parameters
queryquerystring
Text typed so far, 1–30 characters.
qquerystring
Alternative spelling of
query; query wins when both are sent.Also accepted, for compatibility with existing clients, and ignored: lang, region.
Behavior
- Send the text as
queryor asq; a request with neither is a 400.
Example response
{
"ResultSet": {
"Query": "apple",
"Result": [
{
"symbol": "AAPL",
"name": "Apple Inc.",
"exch": "NMS",
"exchDisp": "NasdaqGS",
"type": "E",
"typeDisp": "Equity"
}
]
}
}jsonRelated endpoints
- Search APISymbol and news search across the whole universe
- Quote APILatest quote snapshots, batched up to 50 symbols
Every plan includes this endpoint.
Create your free key