# Search Financial Instruments

Search for financial instruments by name, symbol, or keyword. Returns matching stocks, ETFs, cryptocurrencies, and other tradable assets. After resolving the symbol and exchange, use the [Google Finance quote API](/docs/google-finance-api/google_finance_quote) to fetch the complete stock profile, key stats, financials, and news.

- **Documentation:** [https://scrappa.co/docs/google-finance-api/google_finance_search](https://scrappa.co/docs/google-finance-api/google_finance_search)
- **API group:** Google Finance API
- **Endpoint:** `GET https://scrappa.co/api/google-finance/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Search query (stock symbol, company name, or crypto) |
| `hl` | string | No | Language code (default: en) |
| `gl` | string | No | Country code (default: us) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/google-finance/search?q=AAPL&hl=en&gl=us"
```

## Example response

```json
{
    "results": [
        {
            "symbol": "AAPL",
            "exchange": "NASDAQ",
            "name": "Apple Inc",
            "type": 0,
            "currency": "USD",
            "current_price": 261.73,
            "price_change": -13.77,
            "percent_change": -5,
            "previous_close": 275.5,
            "country": "US"
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Missing required query parameter |  |
|  | Google Finance request failed |  |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
