# Peers

> A company's peers: companies in the same line of business and of a similar size, each with its price and market value.

Source: https://wiseview.ai/docs/api/companies-peers

`GET https://api.wiseview.ai/v1/companies/{symbol}/peers`

A company's peers: companies in the same line of business and of a similar size, each with its price and market value.

Each call counts against your allowance.

## Parameters

| Name | In | Type | What it does |
| --- | --- | --- | --- |
| `symbol` (required) | path | ticker | Stock ticker, like AAPL. |

## Answer

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

```json
[
  {
    "symbol": "MSFT",
    "companyName": "Microsoft Corporation",
    "price": 517.3,
    "mktCap": 3845000000000
  }
]
```

## Samples

```bash
curl "https://api.wiseview.ai/v1/companies/AAPL/peers" \
  -H "Authorization: Bearer $WISEVIEW_API_KEY"
```

```python
import os
import requests

response = requests.get(
    "https://api.wiseview.ai/v1/companies/AAPL/peers",
    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/companies/AAPL/peers", {
  headers: { "Authorization": `Bearer ${process.env.WISEVIEW_API_KEY}` },
});
if (!response.ok) throw new Error(`WiseView answered ${response.status}`);
console.log(await response.json());
```
