# Get Fund Ratings

Get the parent Morningstar star-bucket distribution for one fund SecId from search. ratingSource is parent and ratingDistribution lists each star bucket with its share of net assets. This is not the fund own star or medalist rating. One upstream lookup, one credit.

- **Documentation:** [https://scrappa.co/docs/morningstar-api/morningstar_fund_ratings](https://scrappa.co/docs/morningstar-api/morningstar_fund_ratings)
- **API group:** Morningstar API
- **Endpoint:** `GET https://scrappa.co/api/morningstar/fund/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 |
| --- | --- | --- | --- |
| `id` | string | Yes | SecId from Morningstar search. Required. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/morningstar/fund/ratings?id=FOUSA00E5P"
```

## Example response

```json
{
    "performanceId": "FOUSA00E5P",
    "asset": "fund",
    "ratings": [
        {
            "starRating": 4,
            "naPercentage": 0.4122
        }
    ],
    "ratingSource": "parent",
    "ratingDistribution": [
        {
            "rating": "4",
            "naPercentage": 0.4122
        }
    ],
    "source": "morningstar"
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Not found | No rating was returned for the id. |

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