# Find a stock, fund or index by name (v1)

Searches Google Finance the way its search box does and returns the matching stocks, ETFs, funds and indexes, best first, each with its `symbol` for /google-finance/quote, exchange, type, currency and current price. A name nothing matches returns an empty `results`.

- Platform: Google Finance
- Request: `GET https://api.toolzerhub.com/v1/google-finance/search`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/google-finance/search-google-finance

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `query` | query | yes | string | Company or fund name, ticker, or part of either, as typed into Google Finance's search box: apple, reliance, s&p 500, vanguard 500. |
| `language` | query | no | string | Language of names, descriptions and news, such as en or de. Default: en. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/google-finance/search?query=<query>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
