Yahoo Finance API endpoint
Returns the corporate actions for a Yahoo Finance `symbol` such as `AAPL`: `dividends`, `splits` and `capital_gains`. Dividend and capital-gain entries carry a Unix timestamp and an amount; split entries carry a ratio such as `4:1`.
/yahoo-finance/ticker/{symbol}/actions| Field | Filled in, of 92 checked | Values in the sample |
|---|---|---|
| amount | 92 | 0 to 0.27, median 0.12 |
| date | 92 | 547,738,200 to 1,786,368,600, median 1,423,146,600 |
| timestamp | 92 | 541,573,200 to 1,780,286,400, median 1,417,410,000 |
| 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/actions" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"dividends": [
{
"timestamp": 1777857600,
"amount": 0.26
}
],
"splits": []
}
}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/actions" \
-H "x-api-key: $CRAWLORA_API_KEY"