# Analyst view

> Sell-side analysts' price targets, the ratings consensus, and recent upgrades and downgrades.

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

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

Sell-side analysts' price targets, the ratings consensus, and recent upgrades and downgrades.

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
{
  "priceTargets": [
    {
      "targetHigh": 325,
      "targetLow": 200,
      "targetConsensus": 268.5
    }
  ],
  "ratings": [
    {
      "strongBuy": 4,
      "buy": 21,
      "hold": 13,
      "sell": 1,
      "strongSell": 1,
      "consensus": "Buy"
    }
  ],
  "recentChanges": [
    {
      "gradingCompany": "Example Securities",
      "previousGrade": "Hold",
      "newGrade": "Buy",
      "action": "upgrade"
    }
  ]
}
```

## Samples

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

```python
import os
import requests

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