Skip to content
EndpointsDiscovery

Stock Search

Resolve tickers, company names, or CIKs to securities with per-tool coverage flags.

Playground keys are masked and used only for this browser-initiated test. The docs proxy forwards X-API-Key to POST /v1/tools/* and does not store it server-side. Fumadocs may keep the auth value in browser localStorage while this endpoint page is open; StockContext clears it when you leave or unload the page.

POST
/v1/tools/stock_search

Serve security search results.

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request for stock_search.

Response Body

application/json

application/json

curl -X POST "https://api.stockcontext.com/v1/tools/stock_search" \  -H "X-API-Key: $STOCKCONTEXT_API_KEY" \  -H "Content-Type: application/json" \  -d '{"q":"AAPL"}'
{
  "query": "AAPL",
  "items": [
    {
      "security_id": "sec_aapl_common",
      "ticker": "AAPL",
      "exchange": null,
      "class_title": null,
      "is_covered": true,
      "entity": {
        "cik": "0000320193",
        "name": "Apple Inc.",
        "entity_type": "operating"
      },
      "coverage": {
        "is_covered": true,
        "stock_financials": {
          "available": true
        },
        "stock_prices": {
          "available": true
        }
      }
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}