# Stock Analyst Ratings: Price Targets, Upgrades & Downgrades (`scrapemint/stock-analyst-ratings`) Actor

Wall Street analyst data for any US stock, keyless: consensus rating (Buy/Hold/Sell), mean/high/low price target, the analyst buy-hold-sell split, the upside percent analysts imply vs the current price, and recent upgrades and downgrades with the brokerage firm. Give it your tickers. Pay per stock.

- **URL**: https://apify.com/scrapemint/stock-analyst-ratings.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Business, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Stock Analyst Ratings: Price Targets, Upgrades & Downgrades

Wall Street analyst data for any US stock — **keyless**, straight from official NASDAQ. Give it your watchlist of tickers and get, per stock:

- **Consensus rating** — Buy / Hold / Sell, and how many analysts cover it.
- **Price targets** — mean, high, and low, plus the **upside percent** analysts imply versus the current price (the number traders act on).
- **Analyst split** — how many rate it Buy vs Hold vs Sell.
- **Recent upgrades & downgrades** — the actual rating changes with the brokerage firm and date (e.g. *Barclays: Overweight → Equal Weight*).

Optional consensus history shows how the rating and price target moved over recent months.

### Who uses it

- **Traders & investors** — analyst upgrades/downgrades and price-target changes are major single-stock catalysts; track them for your holdings.
- **Finance newsletters & dashboards** — auto-generate a "what the Street thinks" section.
- **Screeners** — filter your watchlist to only names with big implied upside or a recent rating change.

Pairs with our Stock Market Movers, Earnings Calendar, and SEC filing actors.

### Input

| Field | Description |
|-------|-------------|
| `symbols` | Your tickers, e.g. `AAPL`, `NVDA`, `TSLA`. |
| `minUpside` | Keep only stocks with at least this implied upside %, e.g. 20. |
| `onlyWithRatingChange` | Return only tickers with a recent upgrade/downgrade — pair with a schedule. |
| `includeHistory` | Add a `consensusHistory` array per stock. |
| `maxRows` | Row cap. |

### Output

One row per ticker: `symbol`, `companyName`, `currentPrice`, `consensusRating`, `analystCount`, `priceTargetMean`, `priceTargetHigh`, `priceTargetLow`, `upsidePercent`, `buyCount`, `holdCount`, `sellCount`, `recentRatingChanges[]`, and optional `consensusHistory[]`.

### Pricing

Pay per event: **$0.005 per stock row**. The first 2 rows of every run are free.

Data source: NASDAQ analyst data (`api.nasdaq.com`).

# Actor input Schema

## `symbols` (type: `array`):

US stock tickers to pull analyst data for, e.g. AAPL, NVDA, TSLA. This is your watchlist.

## `minUpside` (type: `integer`):

Keep only stocks where the mean price target is at least this percent above the current price, e.g. 20 for 20%+ implied upside. 0 = no filter.

## `onlyWithRatingChange` (type: `boolean`):

Return only tickers that have a recent analyst rating change on record. Useful with a schedule to catch upgrades and downgrades.

## `includeHistory` (type: `boolean`):

Add a consensusHistory array per stock: how the buy/hold/sell split, consensus, and price moved over recent months.

## `maxRows` (type: `integer`):

Cap on ticker rows returned. Controls total cost.

## Actor input object example

```json
{
  "symbols": [
    "AAPL",
    "NVDA",
    "TSLA",
    "MSFT",
    "AMZN"
  ],
  "minUpside": 0,
  "onlyWithRatingChange": false,
  "includeHistory": false,
  "maxRows": 500
}
```

# 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 = {
    "symbols": [
        "AAPL",
        "NVDA",
        "TSLA",
        "MSFT",
        "AMZN"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/stock-analyst-ratings").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 = { "symbols": [
        "AAPL",
        "NVDA",
        "TSLA",
        "MSFT",
        "AMZN",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/stock-analyst-ratings").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "symbols": [
    "AAPL",
    "NVDA",
    "TSLA",
    "MSFT",
    "AMZN"
  ]
}' |
apify call scrapemint/stock-analyst-ratings --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapemint/stock-analyst-ratings",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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