# Valuation and ratios

> A company's key metrics and ratios (P/E, margins, returns, debt), enterprise value, a fair-value estimate, and its Altman Z and Piotroski scores.

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

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

A company's key metrics and ratios (P/E, margins, returns, debt), enterprise value, a fair-value estimate, and its Altman Z and Piotroski scores.

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
{
  "keyMetrics": [
    {
      "marketCap": 3750000000000,
      "enterpriseValueTTM": 3790000000000
    }
  ],
  "ratios": [
    {
      "priceToEarningsRatio": 33.7,
      "netProfitMargin": 0.269
    }
  ],
  "enterpriseValue": [],
  "fairValue": [
    {
      "dcf": 221.4
    }
  ],
  "scores": [
    {
      "altmanZScore": 9.8,
      "piotroskiScore": 7
    }
  ]
}
```

## Samples

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

```python
import os
import requests

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