# Morningstar Sustainability Scraper (`aboo.script/morningstar-sustainability-scraper`) Actor

⚡ Fast Morningstar ESG scraper. No login, no API key. Get Sustainalytics ESG Risk Ratings for stocks on 30 exchanges by URL, company name or ticker: risk score and category, exposure, management score, controversy level, material ESG issues and peer comparison.

- **URL**: https://apify.com/aboo.script/morningstar-sustainability-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 52.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Morningstar Sustainability Scraper

![Morningstar Sustainability Scraper](https://i.ibb.co/NgsgTxxH/morningstar-banner.png)

**Morningstar Sustainability Scraper** extracts Sustainalytics ESG Risk Ratings from [Morningstar](https://www.morningstar.com/) stock pages into clean, structured data you can download as JSON, CSV, Excel, or HTML. Paste Morningstar stock URLs or type company names and tickers, and get the ESG risk score, risk category, exposure and management breakdown, controversy level, material ESG issues, and peer comparison for every stock. No account or login required.

### Introduction

[Morningstar](https://www.morningstar.com/) is one of the best-known investment research platforms. Its stock pages include a Sustainability tab with the Sustainalytics ESG Risk Rating, which measures how much unmanaged environmental, social, and governance risk a company carries. These ratings are widely used by investors, analysts, and ESG teams.

This actor collects the same public ESG information you see on the Sustainability tab and turns it into a ready-to-use dataset. You can run it once, schedule it to run daily, or connect it to your own tools.

### What data can you extract from Morningstar?

- 🏷️ Company name, ticker, exchange, ISIN, and Morningstar ID
- 🏭 Sector, industry, sub-industry, and market cap (USD)
- 🌱 ESG Risk Rating score, risk category (Negligible, Low, Medium, High, Severe), and rating date
- 📊 Risk breakdown: company and sub-industry exposure, manageable risk, managed risk, management gap, unmanageable risk
- 🛠️ Management score and category
- ⚠️ Highest controversy level, controversy description, controversy topics, and date
- 📌 Top material ESG issues
- 👥 Peer comparison with the same rating details for similar companies
- 🔗 Direct URL to the stock's Sustainability page

### Use Cases

- 📈 **ESG investing**: screen stocks by ESG risk score and category before adding them to a portfolio.
- 🕵️ **Portfolio monitoring**: track rating changes and new controversies for the companies you hold.
- 🏢 **Peer benchmarking**: compare a company's ESG risk, exposure, and management with its closest peers.
- 🗂️ **Research databases**: build your own ESG dataset across sectors, industries, and exchanges.
- 🤖 **AI and automation**: feed clean, structured data into spreadsheets, dashboards, or AI workflows.

### How to scrape Morningstar ESG ratings step by step

1. Paste one or more Morningstar stock URLs into **Start URLs**, or type company names or tickers into **Search queries**.
2. Optionally pick the **Exchanges** to search in.
3. Set **Maximum number of results** to how many stocks you want per search query.
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Start URLs**: Morningstar URLs to scrape. Supported pages: stock pages on any tab (for example `https://www.morningstar.com/stocks/xnas/msft/sustainability` or `.../quote`), and Morningstar search pages (`https://www.morningstar.com/search/stocks?query=bank`). A stock URL returns that stock; a search URL returns up to the maximum number of results.
- **Search queries**: company names or tickers, one per line (for example `bank`, `oil`, or `MSFT`). Each query is scraped separately, largest companies first.
- **Exchanges**: stock exchanges to search in, for example Nasdaq, NYSE, London, Tokyo, or Frankfurt Xetra. Applies to search queries only. Leave empty to search the US exchanges (Nasdaq, NYSE, NYSE American).
- **Maximum number of results**: how many stocks to collect for each search query or search URL.
- **Proxy configuration**: optional. The actor works without a proxy; turn on Apify Proxy (residential) only if your runs get blocked.

You can use start URLs, search queries, or both in the same run.

### Input Examples

Scrape the ESG ratings of specific stocks:

```json
{
  "startUrls": [
    { "url": "https://www.morningstar.com/stocks/xnas/msft/sustainability" },
    { "url": "https://www.morningstar.com/stocks/xnys/ko/sustainability" },
    { "url": "https://www.morningstar.com/stocks/xlon/shel/sustainability" }
  ],
  "maxResults": 5,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

Search by company name or ticker:

```json
{
  "searchQueries": ["bank", "oil"],
  "maxResults": 5,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

Search on other exchanges:

```json
{
  "searchQueries": ["bank"],
  "exchanges": ["XLON", "XETR", "XPAR"],
  "maxResults": 5
}
```

### Output

Each stock is saved as one item in the dataset. Here is an example of a single item (the peer list is shortened):

```json
{
  "url": "https://www.morningstar.com/stocks/xnys/tsm/sustainability",
  "performanceId": "0P000005AR",
  "ticker": "TSM",
  "exchange": "XNYS",
  "name": "Taiwan Semiconductor Manufacturing Co Ltd ADR",
  "isin": "US8740391003",
  "sector": "Technology",
  "industry": "Semiconductors",
  "subIndustry": "Semiconductor Design and Manufacturing",
  "marketCapUsd": 1895635276713,
  "esgRiskScore": 14.07,
  "esgRiskCategory": "Low",
  "esgRiskAsOfDate": "2026-10-23T00:00:00Z",
  "companyExposureScore": 44.3,
  "companyExposureCategory": "Medium",
  "subindustryExposureScore": 49,
  "subindustryExposureCategory": "Medium",
  "manageableRisk": 41.05,
  "managedRisk": 30.22,
  "managedRiskPercent": 73.62,
  "managementGap": 10.82,
  "managementGapPercent": 26.36,
  "unmanageableRisk": 3.25,
  "managementScore": 73.62,
  "managementCategory": "Strong",
  "highestControversyLevel": 2,
  "controversyLevel": "Moderate",
  "controversyTopics": ["Employee"],
  "controversyAsOfDate": "2026-10-08T00:00:00Z",
  "materialEsgIssues": [
    { "issue": "Product Governance", "scope": "Overall" },
    { "issue": "Human Capital", "scope": "Overall" },
    { "issue": "Water Use", "scope": "Own Operations" }
  ],
  "peers": [
    {
      "companyName": "Intel Corp",
      "companyId": "0C00000BIC",
      "asOfDate": "2026-10-23T00:00:00Z",
      "esgRiskScore": 19.39,
      "esgRiskCategory": "Low",
      "companyExposureScore": 50.7,
      "companyExposureCategory": "Medium",
      "subindustryExposureScore": 52,
      "subindustryExposureCategory": "Medium",
      "manageableRisk": 46.57,
      "managedRisk": 31.3,
      "managedRiskPercent": 67.21,
      "managementGap": 15.26,
      "managementGapPercent": 32.77,
      "unmanageableRisk": 4.13,
      "managementScore": 67.22,
      "managementCategory": "Strong"
    }
  ]
}
```

You can download the dataset in JSON, CSV, Excel, XML, or HTML, or access it through the Apify API.

### Notes

- Only stocks are supported. Fund and ETF URLs are skipped.
- Search queries skip stocks that have no published ESG Risk Rating. A stock URL always returns one item; if that stock has no rating, the rating fields are `null`.
- The same company can be listed on several exchanges (for example ordinary shares and ADRs). Each listing is returned as its own item; use **Exchanges** to limit the search.
- Broad search terms on many exchanges return a limited number of matches. Use more specific names or tickers to find a particular company.
- Stock URLs on any tab (Quote, Chart, Sustainability, and so on) are returned with the Sustainability page URL.

### Why use the Morningstar Sustainability Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 🌱 **Full ESG picture**: score, category, risk breakdown, controversies, material issues, and peers in one row.
- 🌍 **Global coverage**: search on 30 stock exchanges in the Americas, Europe, Asia, and Africa.
- 🧹 **Clean data**: numbers are real numbers, dates use one standard format, and text is free of HTML.
- 🔄 **Ready for automation**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many results can I scrape?

Each stock URL returns one result. For search queries, set any number in **Maximum number of results**; the actor keeps going until it reaches your limit or runs out of matching stocks.

#### Do I need a Morningstar account?

No. The actor only collects publicly available data. You do not need to log in or provide any account details.

#### Can I scrape data on a schedule?

Yes. Use Apify Schedules to run the actor every day, week, or month and keep your ESG data up to date.

#### Why are some fields empty?

Not every company is covered by Sustainalytics, and some ratings do not include every detail. When a value is not available on Morningstar, it is returned as `null`.

#### Can I request a new feature or filter?

Yes. Right now the actor supports stock URLs, search queries, and an exchange filter. If you need other inputs, such as sector filters or fund ESG data, get in touch and they can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

### Need to scrape other ESG and company data platforms?

- [50/50 Women on Boards Scraper - US Public Companies](https://apify.com/aboo.script/5050wob-com-scraper): board gender diversity data for US public companies.
- [1pacteclimat.fr Scraper - Signatory Companies](https://apify.com/aboo.script/1pacteclimat-fr-scraper): companies that signed the French business climate pledge.
- [amfori Members Scraper](https://apify.com/aboo.script/amfori-org-scraper): member companies of the amfori sustainable trade network.
- [ASC Certified Farms Scraper](https://apify.com/aboo.script/asc-aqua-org-scraper): responsibly farmed seafood sites with certification details.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

### Image Credit

Image credit: [Morningstar](https://www.morningstar.com/)

# Actor input Schema

## `startUrls` (type: `array`):

Morningstar stock URLs (any tab, e.g. https://www.morningstar.com/stocks/xnas/msft/sustainability) or Morningstar search URLs (https://www.morningstar.com/search/stocks?query=bank). A stock URL returns that stock; a search URL returns up to the maximum number of results.

## `searchQueries` (type: `array`):

Company names or tickers to search for (e.g. bank, oil, MSFT). Matching stocks are returned largest market cap first. Stocks without a published ESG Risk Rating are skipped.

## `exchanges` (type: `array`):

Stock exchanges to search in. Applies to search queries only. Leave empty to search US exchanges (Nasdaq, NYSE, NYSE American).

## `maxResults` (type: `integer`):

Maximum number of stocks to scrape per search query or search URL. A stock URL always returns one result.

## `proxyConfiguration` (type: `object`):

Your proxy configuration from Apify.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.morningstar.com/stocks/xnas/msft/sustainability"
    },
    {
      "url": "https://www.morningstar.com/stocks/xnys/ko/sustainability"
    },
    {
      "url": "https://www.morningstar.com/stocks/xlon/shel/sustainability"
    }
  ],
  "searchQueries": [
    "bank",
    "oil"
  ],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.morningstar.com/stocks/xnas/msft/sustainability"
        },
        {
            "url": "https://www.morningstar.com/stocks/xnys/ko/sustainability"
        },
        {
            "url": "https://www.morningstar.com/stocks/xlon/shel/sustainability"
        }
    ],
    "searchQueries": [
        "bank",
        "oil"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/morningstar-sustainability-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [
        { "url": "https://www.morningstar.com/stocks/xnas/msft/sustainability" },
        { "url": "https://www.morningstar.com/stocks/xnys/ko/sustainability" },
        { "url": "https://www.morningstar.com/stocks/xlon/shel/sustainability" },
    ],
    "searchQueries": [
        "bank",
        "oil",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/morningstar-sustainability-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.morningstar.com/stocks/xnas/msft/sustainability"
    },
    {
      "url": "https://www.morningstar.com/stocks/xnys/ko/sustainability"
    },
    {
      "url": "https://www.morningstar.com/stocks/xlon/shel/sustainability"
    }
  ],
  "searchQueries": [
    "bank",
    "oil"
  ]
}' |
apify call aboo.script/morningstar-sustainability-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aboo.script/morningstar-sustainability-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/P1h5hWGib4YV5OvZT/builds/X5xGuh7Fp3C8rB7eY/openapi.json
