Yahoo Finance API endpoint
Returns fund data for an ETF or mutual fund `symbol` such as `SPY`, under `modules`: the fund profile, top holdings, equity holdings, bond holdings and sector weightings.
/yahoo-finance/ticker/{symbol}/funds| Field | Filled in, of 11 checked | Values in the sample |
|---|---|---|
| realestate | 1 | 0.02 |
| consumer_cyclical | 1 | 0.09 |
| basic_materials | 1 | 0.02 |
| consumer_defensive | 1 | 0.04 |
| technology | 1 | 0.4 |
| communication_services | 1 | 0.1 |
| financial_services | 1 | 0.11 |
| utilities | 1 | 0.02 |
| industrials | 1 | 0.08 |
| energy | 1 | 0.03 |
| healthcare | 1 | 0.09 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| symbol (path) | string | Yes | Yahoo Finance symbol such as SPY | SPY | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/yahoo-finance/ticker/SPY/funds" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"symbol": "SPY",
"modules": {
"fundProfile": {},
"topHoldings": {}
}
}
}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/SPY/funds" \
-H "x-api-key: $CRAWLORA_API_KEY"