Yahoo Finance API endpoint
Returns the stock split events for a Yahoo Finance `symbol` such as `AAPL`, each with a Unix timestamp and a split ratio such as `4:1`. The response object also has `dividends` and `capital_gains` fields.
/yahoo-finance/ticker/{symbol}/splits| Field | Filled in, of 5 checked | Values in the sample |
|---|---|---|
| date | 5 | 550,848,600 to 1,598,880,600, median 1,109,601,000 |
| denominator | 5 | 1 |
| numerator | 5 | 2 to 7, median 2 |
| splitRatio | 5 | 2:1 (3), 7:1 (1), 4:1 (1) |
| timestamp | 5 | 549,518,400 to 1,590,984,000, median 1,101,877,200 |
| 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/splits" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"splits": [
{
"timestamp": 1598880600,
"splitRatio": "4:1"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/yahoofinance.actionsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | yahoofinance.ActionEvents | No | ||||
| data.capital_gains | array | No | Capital gain distributions in the period. | |||
| data.dividends | array | No | Dividend payments in the period. | |||
| data.splits | array | No | Stock splits in the period. | |||
| 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/splits" \
-H "x-api-key: $CRAWLORA_API_KEY"