Browse the docs

Search API

Search symbols and company names across stocks, ETFs, indices, crypto and currencies, with matching news stories attached.

GET/v1/finance/search

Request

curl -H "x-api-key: $KEY" \
  "https://api.stockdataapi.com/v1/finance/search?q=apple"

Send your key in the x-api-key header. Try it in the browser with your own key.

Parameters

q
querystringrequired
Search text, 1–30 characters.
quotesCount
queryinteger
Symbol matches to return, 0–20.
Default: 6
newsCount
queryinteger
News stories to return, 0–20.
Default: 4

Behavior

  • A query is fetched from the source when storage holds fewer matches than you asked for, or its news has aged out, and then not again for an hour.
  • A ticker that has never been requested before answers on the first call instead of coming back empty.

Example response

{
  "explains": [],
  "count": 2,
  "quotes": [
    {
      "symbol": "AAPL",
      "shortname": "Apple Inc.",
      "longname": "Apple Inc.",
      "exchange": "NMS",
      "exchDisp": "NasdaqGS",
      "quoteType": "EQUITY",
      "typeDisp": "Equity",
      "sector": "Technology",
      "industry": "Consumer Electronics",
      "index": "quotes",
      "score": 2.0,
      "isYahooFinance": true
    }
  ],
  "news": [
    {
      "uuid": "9803606d-a324-3864-8d4b-284e7d19d15f",
      "title": "Apple's latest quarter tops estimates",
      "publisher": "Reuters",
      "link": "https://www.reuters.com/technology/apple-latest-quarter-tops-estimates",
      "providerPublishTime": 1786120200,
      "type": "STORY",
      "thumbnail": null
    }
  ],
  "nav": [],
  "lists": [],
  "researchReports": [],
  "screenerFieldResults": [],
  "totalTime": 24
}
json

Every plan includes this endpoint.

Create your free key