ESG Ratings

Get the ESG risk rating of each company per fiscal year: a letter rating, the industry the company is rated in and its rank within that industry.

Where get_esg_scores gives the Environmental, Social and Governance scores themselves, the rating places the company on a letter scale and ranks it against the companies of its own industry, which is how ESG scores are best compared: what counts as a good environmental record differs between an oil producer and a software company.

Automatically filtered to this Toolkit instance’s start and end date, by fiscal year.

Also known as: ESG rating, ESG risk rating, sustainability rating, ESG industry rank.

Example · AAPL, MSFT · 2020 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_esg_ratings:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "MSFT"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2020-01-01",
    end_date="2025-12-31",
)

toolkit.get_esg_ratings(show_columns="ESG Risk Rating")

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

What ESG risk rating did Apple and Microsoft have in each year from 2020 to 2025?

Which returns:

Fiscal Year AAPL MSFT
2020 B B
2021 B B
2022 B B
2023 B B
2024 B B
2025 B B

Parameters

get_esg_ratings accepts the following parameters.

ParameterTypeDescriptionExample
overwriteboolDefines whether to overwrite the existing data. Defaults to False.True
show_columnsstr | list[str] | NoneThe columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column.None, which keeps every column

References

  • Source FinancialModelingPrep, ESG Ratings (esg-ratings)
Share