Yahoo Finance API endpoint
Returns the valuation measures table from Yahoo Finance key statistics for a `symbol` such as `AAPL`, as `headers` and `rows` keyed by column, for example Market Cap. Returns an upstream error when Yahoo does not serve the table.
/yahoo-finance/ticker/{symbol}/valuationPath parameters: symbol.
Query parameters: none.
Notable response behavior: returns an upstream error when Yahoo serves a consent or challenge page instead of the table.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| symbol (path) | string | Yes | Yahoo Finance symbol such as AAPL | AAPL | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/yahoo-finance/ticker/AAPL/valuation" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"symbol": "AAPL",
"headers": [
"Market Cap",
"Current"
],
"rows": [
{
"Market Cap": "3.0T"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/yahoofinance.valuationResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | yahoofinance.ValuationResponse | No | ||||
| data.headers | array | No | Column headers of the valuation table. | |||
| data.rows | array | No | Valuation measures, one object per row. | |||
| data.symbol | string | No | AAPL | Ticker symbol, for example `AAPL`. | ||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/yahoo-finance/ticker/AAPL/valuation" \
-H "x-api-key: $CRAWLORA_API_KEY"