# Analyst Ratings

Return the analyst ratings island for a ticker: recommendation, target price, rating counts and last close price.

- **Documentation:** [https://scrappa.co/docs/finviz-api/finviz_analyst_ratings](https://scrappa.co/docs/finviz-api/finviz_analyst_ratings)
- **API group:** Finviz API
- **Endpoint:** `GET https://scrappa.co/api/finviz/analyst-ratings`

## 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 |
| --- | --- | --- | --- |
| `ticker` | string | Yes | Finviz ticker, for example AAPL. Required. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/finviz/analyst-ratings?ticker=AAPL"
```

## Example response

```json
{
    "ticker": "AAPL",
    "ratings": {
        "recom": 1.8
    },
    "source": "finviz"
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Unknown ticker | No ratings were returned. |

## 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)
