Yahoo Finance API endpoint
Returns analyst data for a Yahoo Finance `symbol` such as `AAPL`, as `modules` keyed by Yahoo module name: recommendation trend, upgrade and downgrade history, price targets and estimates, where Yahoo provides them.
/yahoo-finance/ticker/{symbol}/analystsReturns Yahoo Finance analyst recommendations, upgrades, downgrades, price target, and estimate modules.
Path parameters: symbol.
| Field | Filled in, of 972 checked | Values in the sample |
|---|---|---|
| action | 500 | main (300), reit (148), down (27) and 2 more |
| currentPriceTarget | 500 | 0 to 400, median 240 |
| epochGradeDate | 500 | 1,671,536,813 to 1,791,830,866, median 1,729,504,489 |
| firm | 500 | “JP Morgan” and 50 other values |
| fromGrade | 450 | “Overweight” and 12 other values |
| priceTargetAction | 485 | Raises (193), Maintains (189), Lowers (75) and 1 more |
| priorPriceTarget | 500 | 0 to 400, median 225 |
| toGrade | 500 | “Overweight” and 14 other values |
| 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/analysts" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"symbol": "AAPL",
"modules": {
"recommendationTrend": {},
"upgradeDowngradeHistory": {}
}
}
}Request schema
No body schema
Response schema
#/definitions/yahoofinance.moduleResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | yahoofinance.ModuleResponse | No | ||||
| data.modules | object | No | Data grouped by section. | |||
| 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/analysts" \
-H "x-api-key: $CRAWLORA_API_KEY"