---
title: "Morningstar API: stock, fund search, stock valuation as JSON"
description: "Morningstar API for stock and fund search, stock valuation and ratings, and fund fees, holdings, returns and risk as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/morningstar
---

[APIs](https://perceptlayer.com/apis) / [Finance](https://perceptlayer.com/verticals/finance) / Morningstar

1 credit per call 9 endpoints 6 datapoints 

# Morningstar API

Morningstar API for stock and fund search, stock valuation and ratings, and fund fees, holdings, returns and risk as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Morningstar

GET /v1/morningstar/search?q=Vanguard+500 

```
{
  "total": 8,
  "page": 1,
  "pageSize": 20,
  "rows": [
    {
      "performanceId": "0P00002YHQ",
      "secId": "FOUSA00L8W",
      "fundId": "FSUSA002QH",
      "ticker": "VFIAX",
      "name": "Vanguard 500 Index Admiral",
      "closePrice": 674.46
    },
    {
      "performanceId": "0P00002SZH",
      "secId": "FOUSA00FS1",
      "fundId": "FSUSA002QH",
      "ticker": "VFINX",
      "name": "Vanguard 500 Index Investor",
      "closePrice": 674.5
    },
    {
      "performanceId": "0P00017END",
      "secId": "F00000WTNP",
      "fundId": "FSUSA002QH",
      "ticker": "VFFSX",
      "name": "Vanguard 500 Index Institutional Select",
      "closePrice": 357.62
    }
  ],
  "source": "morningstar",
  "meta": {
    "request_id": "req_594f052c942741b3a1c83f839290d712",
    "credits_charged": 1,
    "credits_remaining": 4833
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | performanceId string | secId string | fundId string | ticker string | name string | closePrice number |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | 0P00002YHQ | FOUSA00L8W | FSUSA002QH | VFIAX | Vanguard 500 Index Admiral | 674.46 |
| 2 | 0P00002SZH | FOUSA00FS1 | FSUSA002QH | VFINX | Vanguard 500 Index Investor | 674.5 |
| 3 | 0P00017END | F00000WTNP | FSUSA002QH | VFFSX | Vanguard 500 Index Institutional Select | 357.62 |

Recorded from our API · 3 items shown · 6 datapoints per item GET /v1/morningstar/search?q=Vanguard+500

6 datapoints

### Identity

-   performanceId string
-   secId string
-   fundId string
-   name string

### Price

-   closePrice number

### Other

-   ticker string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/morningstar/search?q=Vanguard+500" \
  -H "X-API-Key: $API_KEY"
```

Morningstar · 9 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/morningstar/fund-fees`](https://perceptlayer.com/apis/morningstar/fund-fees) | `id` | `performanceId` `asset` `prospectusExpenseRatio` `adjustedProspectusExpenseRatio` `morningstarFeeLevel` | 1 credit |
| [GET `/v1/morningstar/fund-holdings`](https://perceptlayer.com/apis/morningstar/fund-holdings) | `id` | `performanceId` `asset` `numberOfHolding` `holdings` | 1 credit |
| [GET `/v1/morningstar/fund-performance`](https://perceptlayer.com/apis/morningstar/fund-performance) | `id` | `performanceId` `asset` `category` `index` `asOfDate` `periods` | 1 credit |
| [GET `/v1/morningstar/fund-quote`](https://perceptlayer.com/apis/morningstar/fund-quote) | `id` | `ticker` `category` `benchmark` `performanceId` `asset` | 1 credit |
| [GET `/v1/morningstar/fund-ratings`](https://perceptlayer.com/apis/morningstar/fund-ratings) | `id` | `performanceId` `asset` `ratings` `ratingSource` `ratingDistribution` | 1 credit |
| [GET `/v1/morningstar/fund-risk`](https://perceptlayer.com/apis/morningstar/fund-risk) | `id` | `performanceId` `asset` `riskScore` `riskLevel` `asOfDate` | 1 credit |
| [GET `/v1/morningstar/price`](https://perceptlayer.com/apis/morningstar/price) | `id` | `performanceId` `price` `change` | 1 credit |
| [GET `/v1/morningstar/search`](https://perceptlayer.com/apis/morningstar/search) | `q` +3 optional | `performanceId` `secId` `fundId` `ticker` `name` `closePrice` | 1 credit |
| [GET `/v1/morningstar/stock`](https://perceptlayer.com/apis/morningstar/stock) | `id` | `name` `ticker` `sector` `industry` `performanceId` `starRating` +20 more | 1 credit |

Overview

## About the Morningstar API

## What you can get

The Morningstar API returns Morningstar stock and fund data as JSON through 9 endpoints.

-   **Search:** `search` takes a query `q`, with `page`, `pageSize` and `universe` (all, nasdaq, nyse, funds or etfs).
-   **Stocks:** `stock` takes an `id` and returns the stock's profile, valuation ratios and star rating. `price` takes an `id` and returns the latest `price` and `change`.
-   **Funds:** `fund-quote`, `fund-fees`, `fund-holdings`, `fund-performance`, `fund-risk` and `fund-ratings` each take a fund `id`.

The recorded search for "Vanguard 500" returns `total` (8), `page`, `pageSize` and `rows`, each with `performanceId`, `secId`, `fundId`, `ticker`, `name` and `closePrice`; the first was Vanguard 500 Index Admiral (VFIAX) at 674.46. The recorded `stock` for Apple returns `name`, `ticker`, `sector`, `industry`, `starRating` (2), `marketCap`, `priceEarnings` (39.93), `priceBook`, `priceSale`, `dividendYield`, day and year ranges, `volume`, `avgVolume`, `lastClose` (358.54 USD) and `lastCloseDate`.

## How a call works

Search, then look up: `GET /v1/morningstar/search?q=Vanguard%20500` with your key in the `X-API-Key` header returns each match's ids. Stocks use a `performanceId` such as `0P000000GY` (Apple): `GET /v1/morningstar/stock?id=0P000000GY`. Fund endpoints take a fund id such as `FOUSA00E5P`: `GET /v1/morningstar/fund-holdings?id=FOUSA00E5P`. Page a search with `page` and `pageSize`. Every successful call costs 1 credit; failed calls cost nothing.

Finance JSON REST MCP

### More finance APIs

[ARES](https://perceptlayer.com/apis/ares) [Brønnøysund Register Centre](https://perceptlayer.com/apis/brreg) [CoinGecko](https://perceptlayer.com/apis/coingecko) [CoinMarketCap](https://perceptlayer.com/apis/coinmarketcap) [DEX Screener](https://perceptlayer.com/apis/dexscreener) [FDIC BankFind](https://perceptlayer.com/apis/fdic) [Finnish Patent and Registration Office](https://perceptlayer.com/apis/prh) [Finviz](https://perceptlayer.com/apis/finviz) [LEI Lookup](https://perceptlayer.com/apis/lei) [MarketWatch](https://perceptlayer.com/apis/marketwatch) [Nasdaq](https://perceptlayer.com/apis/nasdaq) [OFAC Sanctions List](https://perceptlayer.com/apis/ofac)

Use cases

### Resolve a fund or stock name to its ticker and Morningstar ids

`Use the Morningstar API to resolve a fund or stock name to its ticker and Morningstar ids` 

### Compare fund expense ratios and fee levels with \`fund-fees\`

`` Use the Morningstar API to compare fund expense ratios and fee levels with `fund-fees` `` 

### List a fund's top holdings with weightings, sectors and economic moat

`Use the Morningstar API to list a fund's top holdings with weightings, sectors and economic moat` 

### Chart a fund's calendar-year returns since 2016 with \`fund-performance\`

`` Use the Morningstar API to chart a fund's calendar-year returns since 2016 with `fund-performance` `` 

FAQ

## Questions

**How much does the Morningstar API cost?**

Each successful call costs one credit, whichever endpoint you call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**What do the fund endpoints return?**

For the recorded fund (ANEFX, Global Large-Stock Growth): \`fund-fees\` returned a \`prospectusExpenseRatio\` of 0.72 and a \`morningstarFeeLevel\`; \`fund-holdings\` 185 holdings, each with \`name\`, \`ticker\`, \`sector\`, \`isin\`, \`stockRating\`, \`economicMoat\`, \`weighting\` and \`marketValue\`; \`fund-performance\` yearly returns from 2016 plus YTD against its index; \`fund-risk\` a \`riskScore\` of 78 and \`riskLevel\` Aggressive; \`fund-ratings\` the star rating distribution. \`fund-quote\` is short: \`ticker\`, \`category\` and \`benchmark\`.

**Which id does each endpoint take?**

\`stock\` and \`price\` take a stock's \`performanceId\` (for example \`0P000000GY\`). The fund endpoints take a fund id in the \`FOUSA00E5P\` form. \`search\` returns \`performanceId\`, \`secId\` and \`fundId\` for each match.

**Do I need a Morningstar account?**

No. You call this Morningstar API with your Perceptlayer key in the \`X-API-Key\` header, with no Morningstar login.

**Is this the official Morningstar API?**

No. Perceptlayer is an independent service and is not affiliated with Morningstar. It returns Morningstar data as JSON with a Perceptlayer key, so there is no Morningstar developer account, app review or partner approval to get first. It only reads data: if Morningstar has an official API and you need to act on your own Morningstar account, such as posting, managing orders or reading private data, use that one.

**Should I build a Morningstar scraper instead?**

You can, but a Morningstar scraper is code you maintain: page changes break it, requests get blocked, and Morningstar's terms govern how you collect data. The Morningstar API gives you 9 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Morningstar API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
