Browse the docs

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

query
querystring
Text typed so far, 1–30 characters.
q
querystring
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 query or as q; 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"
      }
    ]
  }
}
json

Every plan includes this endpoint.

Create your free key