FMP
Apr 29, 2025 4:04 PM - Sanzhi Kobzhan
Image credit: company historical rating API endpoint
If you're an investor or trader looking to find fundamentally strong stocks, the Historical Ratings API can be a powerful tool. This API helps you understand how a company's financial health has changed over time — which is key when making long-term investment decisions.
The Historical Ratings API gives you access to past financial ratings for any publicly traded company. It shows how different financial scores have moved over time, so you can track trends and decide whether a stock is still strong fundamentally.
You can use the API by pasting the endpoint into your browser or by using it in your custom app. Here's what the endpoint looks like:
https://financialmodelingprep.com/stable/ratings-historical?symbol=AAPL&apikey=YOUR_API_KEY
Just replace:
- `AAPL` with the stock symbol you want (like `MSFT`, `GOOGL`, `TSLA`)
- `YOUR_API_KEY` with your personal API key.
The API gives you a list of ratings and scores for past dates. Here's an example of what you'll see:
{
"symbol": "AAPL",
"date": "2025-04-28",
"rating": "B",
"overallScore": 3,
"discountedCashFlowScore": 3,
"returnOnEquityScore": 5,
"returnOnAssetsScore": 5,
"debtToEquityScore": 1,
"priceToEarningsScore": 2,
"priceToBookScore": 1
}
]
Let's break this down:
- rating: A letter grade (like A, B, C) showing overall financial health.
- overallScore: A combined score from 1 to 5 (higher is better).
- discountedCashFlowScore: Measures if the stock was undervalued or overvalued in the past.
- returnOnEquityScore (ROE): Shows how well the company turned equity into profit.
- returnOnAssetsScore (ROA): Shows how effectively assets generated income.
- debtToEquityScore: Measures the company's debt vs. shareholder equity.
- priceToEarningsScore (P/E): Shows how the stock price compared to its earnings.
- priceToBookScore (P/B): Tells if the market was paying more or less than book value.
Here's how you can use this data:
1. Track Long-Term Trends
See how a company's scores have improved or declined over the years. A company with rising ROE and ROA scores over time shows increasing profitability — a good sign for investors.
2. Spot Financial Red Flags
If you notice falling scores, like a dropping DCF score or rising debt-to-equity score, it could be a warning sign. You might want to avoid or sell the stock.
3. Compare Stocks
Looking at the historical ratings of two companies in the same industry can help you pick the stronger one. Compare their financial trends instead of just the current numbers.
4. Add to Custom Tools
Developers can use the API to fetch data and build stock analysis dashboards or tools.
The Historical Ratings API endpoint is a simple yet powerful way to track a company's financial strength over time. This tool can help you find fundamentally strong stocks for long-term gains.
Use it to:
- Check if a stock is still worth holding
- Find undervalued opportunities
- Build better stock comparison tools
Start analyzing your favorite stocks today.
Sep 10, 2024 7:33 AM - Parth Sanghvi
When it comes to downloading historical stock data, Yahoo Finance has been a popular choice for many. However, for those looking for more comprehensive, accurate, and flexible options, Financial Modeling Prep (FMP) offers a suite of powerful tools and services that stand out as superior alternatives...
Nov 8, 2024 5:30 AM - Sanzhi Kobzhan
When it comes to investing in stocks, one of the key decisions an investor must make involves determining the intrinsic value of a company's shares. Equity valuation isn't just about numbers, it's an art mixed with science, aiming to predict future performance based on current and historical data. H...
Nov 22, 2024 5:08 AM - Parth Sanghvi
Fundamental analysis is one of the most essential tools for investors and analysts alike, helping them assess the intrinsic value of a stock, company, or even an entire market. It focuses on the financial health and economic position of a company, often using key data such as earnings, expenses, ass...