Google Finance API endpoint
Searches Google Finance for instruments matching a company name or ticker query and returns results with ticker, exchange, name, price, currency, and change data. Use a returned ticker with quote, company, chart, or news endpoints.
/google/finance/contextQuery parameters:
q: required search query| Field | Filled in, of 5 checked | Values in the sample |
|---|---|---|
| ticker | 5 | “AAPL” and 4 other values |
| exchange | 5 | NYSE (3), NASDAQ (2) |
| name | 5 | “Apple Inc” and 4 other values |
| type | 5 | stock in all 5 |
| currency | 5 | USD in all 5 |
| price | 5 | 53.92 to 545.87, median 344.17 |
| change | 5 | -0.66 to 5.4, median 3.2 |
| change_percent | 5 | -1.21 to 3.93, median 0.87 |
| previous_close | 5 | 54.58 to 541.15, median 340.97 |
| timezone | 5 | America/New_York in all 5 |
| google_id | 5 | |
| country | 5 | US in all 5 |
| after_hours | 5 | |
| last_update_unix | 5 | 1,791,910,396 to 1,791,910,409, median 1,791,910,398 |
| identifier | 5 | “AAPL:NASDAQ” and 4 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| q | string | Yes | Search query | apple | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/google/finance/context?q=apple" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "apple",
"items": [
{
"ticker": "AAPL",
"exchange": "NASDAQ",
"name": "Apple Inc"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/finance.contextResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | finance.ContextResponse | No | ||||
| data.items | array | No | Instrument record, 18 fields: after_hours, change, change_percent, country, currency, exchange, google_id, identifier, last_update_unix, name, previous_close, price and 3 more. Described under Google Finance Featured Stocks API. | |||
| data.query | string | No | apple | |||
| 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/google/finance/context?q=apple" \
-H "x-api-key: $CRAWLORA_API_KEY"