# Symbol search

> Find a stock by its ticker or by its company name: each match with its ticker, name and exchange.

Source: https://wiseview.ai/docs/api/search

`GET https://api.wiseview.ai/v1/search`

Find a stock by its ticker or by its company name: each match with its ticker, name and exchange.

Each call counts against your allowance.

## Parameters

| Name | In | Type | What it does |
| --- | --- | --- | --- |
| `query` (required) | query | text | A ticker or part of a company name, like apple. |
| `limit` | query | whole number, 1–50 | How many matches. Leave it out for `10`. |

## Answer

`data`, abridged — real answers carry more fields:

```json
[
  {
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "currency": "USD",
    "exchange": "NASDAQ"
  }
]
```

## Samples

```bash
curl "https://api.wiseview.ai/v1/search?query=apple" \
  -H "Authorization: Bearer $WISEVIEW_API_KEY"
```

```python
import os
import requests

response = requests.get(
    "https://api.wiseview.ai/v1/search?query=apple",
    headers={"Authorization": f"Bearer {os.environ['WISEVIEW_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
```

```javascript
const response = await fetch("https://api.wiseview.ai/v1/search?query=apple", {
  headers: { "Authorization": `Bearer ${process.env.WISEVIEW_API_KEY}` },
});
if (!response.ok) throw new Error(`WiseView answered ${response.status}`);
console.log(await response.json());
```
