Google Finance API endpoint
Returns the instruments currently trending on Google Finance, up to `limit` items (default 18). Each has its ticker, exchange, name, price, change and change percent, previous close, currency and after-hours data.
/google/finance/markets/trendingQuery parameters:
limit: optional result limit, defaults to 18| Field | Filled in, of 20 checked | Values in the sample |
|---|---|---|
| ticker | 20 | “.DJI” and 19 other values |
| exchange | 20 | “INDEXDJX” and 11 other values |
| name | 20 | “Dow Jones Industrial Average” and 19 other values |
| type | 20 | stock (11), index (8), etf (1) |
| price | 20 | 0.04 to 51,694.69, median 351.39 |
| change | 19 | -155.86 to 358.6, median 0 |
| change_percent | 19 | -0.43 to 2.49, median -0.02 |
| previous_close | 20 | 0.04 to 51,850.55, median 348.97 |
| timezone | 20 | America/New_York (14), Asia/Tokyo (1), America/Chicago (1) and 4 more |
| google_id | 20 | |
| last_update_unix | 20 | 1,791,879,037 to 1,791,910,419, median 1,791,910,362 |
| identifier | 20 | “.DJI:INDEXDJX” and 19 other values |
| currency | 12 | USD (10), JPY (1), CAD (1) |
| country | 12 | US (10), JP (1), CA (1) |
| after_hours | 9 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| limit | integer | No | Result limit | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/google/finance/markets/trending?limit=10" \ -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/trending?limit=10" \
-H "x-api-key: $CRAWLORA_API_KEY"