Google Finance API endpoint
Returns the stocks Google Finance features on its markets page. Each instrument has its ticker, exchange, name, price, change and change percent, previous close, currency, country, time zone and after-hours data.
/google/finance/markets/featured| Field | Filled in, of 6 checked | Values in the sample |
|---|---|---|
| ticker | 6 | “AAPL” and 5 other values |
| exchange | 6 | NASDAQ in all 6 |
| name | 6 | “Apple Inc” and 5 other values |
| type | 6 | stock in all 6 |
| currency | 6 | USD in all 6 |
| price | 6 | 260.27 to 761.28, median 355.18 |
| change | 6 | -1.67 to 18.32, median 2.45 |
| change_percent | 6 | -0.44 to 2.47, median 0.7 |
| previous_close | 6 | 259.53 to 742.96, median 352.72 |
| timezone | 6 | America/New_York in all 6 |
| google_id | 6 | |
| country | 6 | US in all 6 |
| after_hours | 6 | |
| last_update_unix | 6 | 1,791,910,364 to 1,791,910,416, median 1,791,910,396 |
| identifier | 6 | “AAPL:NASDAQ” and 5 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/google/finance/markets/featured" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": [
{
"ticker": "AAPL",
"exchange": "NASDAQ",
"name": "Apple Inc"
}
]
}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/featured" \
-H "x-api-key: $CRAWLORA_API_KEY"