Google Finance API endpoint
Returns the market indices Google Finance lists, such as the Dow Jones Industrial Average. Each index has its ticker, exchange, name, current value, change and change percent, previous close and last update time.
/google/finance/markets/indices| Field | Filled in, of 35 checked | Values in the sample |
|---|---|---|
| ticker | 35 | “.DJI” and 34 other values |
| exchange | 25 | “INDEXDJX” and 19 other values |
| name | 35 | “Dow Jones Industrial Average” and 34 other values |
| type | 35 | index (20), crypto (10), other (5) |
| price | 35 | 0.08 to 207,035.13, median 7,803.25 |
| change | 35 | -2,031.78 to 1,570.1, median -3.99 |
| change_percent | 35 | -1.82 to 2.91, median -0.07 |
| previous_close | 35 | 0.08 to 209,066.9, median 7,807.24 |
| timezone | 20 | “America/New_York” and 10 other values |
| google_id | 35 | |
| last_update_unix | 35 | 1,791,873,903 to 1,791,910,411, median 1,791,909,804 |
| identifier | 35 | “.DJI:INDEXDJX” and 34 other values |
| currency | 5 | USD in all 5 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/google/finance/markets/indices" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": [
{
"ticker": ".DJI",
"exchange": "INDEXDJX",
"name": "Dow Jones Industrial Average"
}
]
}Request schema
No body schema
Response schema
#/definitions/finance.instrumentsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | array | No | ||||
| data[].after_hours | object | No | Price and change in after-hours trading. | |||
| data[].after_hours.change | number | No | -3.37 | Price change, in the same unit as `price`. | ||
| data[].after_hours.change_percent | number | No | -1.3 | Price change as a percentage. | ||
| data[].after_hours.price | number | No | 255.65 | Price in after-hours trading. | ||
| data[].change | number | No | -3.37 | Price change shown by Google Finance, in the same unit as `price`. | ||
| data[].change_percent | number | No | -1.3 | Price change as a percentage, as Google Finance shows it. | ||
| data[].country | string | No | US | Country code of the instrument, for example `US`. | ||
| data[].currency | string | No | USD | Currency code the instrument is priced in, for example `USD`. | ||
| data[].exchange | string | No | NASDAQ | Exchange the instrument trades on, for example `NASDAQ`. | ||
| data[].google_id | string | No | /m/07zmbvf | Google's id for the instrument, for example `/m/07zmbvf`. | ||
| data[].identifier | string | No | AAPL:NASDAQ | Instrument identifier in `TICKER:EXCHANGE` form, for example `AAPL:NASDAQ`. Use it as the `quote` path parameter. | ||
| data[].last_update_unix | integer | No | 1777077000 | Time of the latest price update, in Unix seconds. | ||
| data[].name | string | No | Apple Inc | Instrument name, for example `Apple Inc`. | ||
| data[].previous_close | number | No | 236.35 | Closing price of the previous trading day. | ||
| data[].price | number | No | 255.65 | Latest price of the instrument. | ||
| data[].ticker | string | No | AAPL | Ticker symbol of the instrument. | ||
| data[].timezone | string | No | America/New_York | IANA time zone of the instrument's market, for example `America/New_York`. | ||
| data[].type | string | No | stock | Kind of instrument: `stock`, `index`, `crypto`, `etf` or `other`. | ||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 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/google/finance/markets/indices" \
-H "x-api-key: $CRAWLORA_API_KEY"