Yahoo Finance API endpoint
Lists the Yahoo Finance industries, each with a `key` and a `name`. It takes no parameters. Pass a returned `key` to `/yahoo-finance/industries/{key}` for that industry's detail.
/yahoo-finance/industriesLists Yahoo Finance industry keys.
Path parameters: none.
Query parameters: none.
Notable response behavior: use a returned key with /yahoo-finance/industries/{key}.
| Field | Filled in, of 145 checked | Values in the sample |
|---|---|---|
| key | 145 | |
| name | 145 | “Advertising Agencies” and 144 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/yahoo-finance/industries" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"items": [
{
"key": "semiconductors",
"name": "Semiconductors"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/yahoofinance.domainListResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | yahoofinance.DomainListResponse | No | ||||
| data.items | array | No | Sectors or industries in the list. | |||
| data.items[].key | string | No | technology | Identifier of the sector or industry. Use it with the matching endpoint. | ||
| data.items[].name | string | No | Technology | Display name of the sector or industry. | ||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 500 | Internal Server Error | #/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/industries" \
-H "x-api-key: $CRAWLORA_API_KEY"