Yahoo Finance API endpoint
Returns ESG and sustainability scores for a Yahoo Finance `symbol` such as `AAPL`, under `modules.esgScores`. When Yahoo recognises the ticker but has no ESG data, `esgScores` comes back empty instead of an error.
/yahoo-finance/ticker/{symbol}/sustainabilityWhen Yahoo recognizes the ticker but currently has no ESG payload, the endpoint
matches yfinance compatibility behavior by returning an empty esgScores
object instead of failing the request.
Path parameters: symbol.
| Field | In the sample | Value in the sample |
|---|---|---|
| symbol | Has a value | “AAPL” |
| modules.esgScores | Empty |
| 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/sustainability" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"symbol": "AAPL",
"modules": {
"esgScores": {}
}
}
}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/sustainability" \
-H "x-api-key: $CRAWLORA_API_KEY"