# Market Mind AI (`katzino/market-mind-ai`) Actor

Analyze real-time news and social media stock sentiment to uncover key market trends and investor interest. It provides a market summary with top discussions and emerging opportunities. With personalized insights based on your profile, it helps you make data-driven investment decisions

- **URL**: https://apify.com/katzino/market-mind-ai.md
- **Developed by:** [Tomas Katz](https://apify.com/katzino) (community)
- **Categories:** AI, Agents, Open source
- **Security:** Full permissions
- **Stats:** 336 total users, 0 monthly users, 100.0% runs succeeded, 32 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.03 / actor start

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

[![Market Mind AI](https://apify.com/actor-badge?actor=katzino/market-mind-ai)](https://apify.com/katzino/market-mind-ai)

## Market Mind AI

This is an open source Apify Actor agent. You can find the source code [here](https://github.com/katzino/stock-personal-assistent).

### Get real-time market sentiment, summary and personalized investment recommendations for your stock tickers

Market Mind AI is a powerful finance monitoring agent designed to help you analyze market sentiment and make personalized informed investing decisions.

Market Mind AI uses advanced natural language processing (NLP) techniques to extract the most important insights based from social media and news articles.

Quickly try it by inputting the stock tickers you're interested in and your personal investing or research goal.

### Analyze market sentiment for your ticker symbol

1. **Input Tickers**: Input the stock tickers (e.g., `["TSLA", "NVDA", "BTC"]`) to analyze current sentiment for the company or cryptocurrency of your interest.
2. **Define Persona**: Describe the type of investor you are (e.g., conservative, aggressive), risk tolerance, investing horizon, and use case for the analysis.
   This information helps tailor the analysis to your investing style.

**Structured data input example:**

```json
{
    "companies": ["MSFT"],
    "cryptocurrencies": ["ETH"],
    "persona": "I'm a conservative investor with aiming for long-term investment horizon. I want to decide whether to buy more shares of Microsoft in the current market conditions."
}
```

#### Social media sentiment analysis

Market Mind AI analyzes social media platforms like [X (Twitter)](https://x.com/) to provide real-time insights into market sentiment. It automatically aggregates tweets related to your ticker symbol and analyzes the sentiment to provide a comprehensive overview of the market.

##### Most influential tweets detection

It can automatically detect the most important tweets based on the `number of likes`, `retweets`, and the `influence of the author`.

#### News sentiment analysis

Market Mind AI aggregates news articles from Google News and analyzes the sentiment to provide a comprehensive overview of the market for your ticker symbol.

As a source of real-time information, Google News provides a broad range of articles from reputable sources as [The Wall Street Journal](https://www.wsj.com/), [Bloomberg](https://www.bloomberg.com/), [Yahoo Finance](https://finance.yahoo.com/), or [Seeking Alpha](https://seekingalpha.com/), ensuring you receive the most up-to-date information for your analysis.

##### Most read articles detection

It can automatically detect the most important articles based on the `article position`, `source`, and the `publication date`.

### Sentiment analyses structured data output

```json
[
    {
        "sentiment_analysis": {
            "google": {
                "category": "Positive",
                "confidence": 85,
                "sentiment_score": 8,
                "reasoning": "The sentiment across reputable sources like Forbes, Yahoo Finance, and Morningstar about Microsoft's recent financial performance, AI advancements, and strategic investments is largely positive. The company's revenue has beaten expectations, and there is bullish sentiment regarding its long-term growth potential, particularly in AI and cloud sectors."
            },
            "twitter": {
                "category": "Positive",
                "confidence": 70,
                "sentiment_score": 7,
                "reasoning": "On Twitter, there are several positive endorsements from finance and tech enthusiasts, praising Microsoft's advancements in quantum computing and AI. Many tweets express optimism about Microsoft's future performance although with slightly less authority compared to traditional media."
            }
        }
    }
]
```

#### Market sentiment summary structured data output

```json
{
    "market_summary": {
        "current_situation": "Microsoft is experiencing strong performance in its AI and cloud sectors, with significant growth reported in these areas. However, there are concerns regarding execution challenges and supply constraints in the cloud unit.",
        "top_discussed_topics": [
            "AI and cloud growth",
            "quantum computing advancements",
            "revenue and earnings performance"
        ],
        "recent_information": [
            "Microsoft reported revenue exceeding expectations at $69.6 billion for Q2 2025.",
            "Significant AI partnerships and investments are strengthening their market position.",
            "Challenges in the cloud business and cautious guidance affected short-term sentiment."
        ],
        "investor_interest": "Investors are highly interested in Microsoft's AI initiatives and long-term growth potential, despite short-term challenges in other sectors."
    }
}
```

### Personalized investment recommendations

Market Mind AI provides personalized investment recommendations based on your investing persona and the sentiment analysis of the market. It tailors the analysis to your investing style, risk tolerance, and investment horizon, ensuring you receive the most relevant insights for your investing decisions.

#### Personalized investment recommendations structured data output

```json
{
    "personalized_recommendation": {
        "persona_analysis": "As a conservative investor with a focus on long-term growth, stability and risk aversion are your priorities. You seek investments with predictable profitability and robust fundamentals.",
        "action": "Buy",
        "summary": "Based on the positive sentiment and strong market position, Microsoft presents a solid investment opportunity for long-term growth. The company's focus on AI and cloud services aligns with trends in tech innovation, offering stability and growth potential.",
        "reasoning": "The overall confidence in Microsoft's growth trajectory, especially in AI and cloud computing, matches your long-term investment goals. Given the positive sentiment and opportunities in AI, it is advised to increase your position in Microsoft, while monitoring its execution in cloud services.",
        "potential_risks": [
            "Potential execution issues in the cloud business affecting future growth.",
            "Global economic uncertainties could impact tech spending.",
            "Increasing competition in AI and cloud sectors."
        ]
    }
}
```

### Comprehensive personalized market sentiment analysis **under 1$**

##### Pricing explanation

Market Mind AI operates under the [Pay Per Event (PPE)](https://docs.apify.com/sdk/js/docs/next/guides/pay-per-event) monetization model, which provides flexible pricing based on defined events.

| Event                        | Description                                                                       |
| ---------------------------- | --------------------------------------------------------------------------------- |
| Actor Start                  | Fixed fee for starting an Actor run at **$0.03**                                  |
| Google News Article Analysis | Aggregate articles from Google News for **$0.354**                                 |
| Tweet Analysis               | Analyze tweets from X for a fee of **$0.354**                                      |
| Market Sentiment Analysis    | Perform sentiment analysis generating summaries and recommendations at **$0.262** |

[Apify's platform](https://docs.apify.com/platform) enhances Market Mind AI with API access, scheduling capabilities, and data storage options for your convenience and flexibility.

**FAQ, Disclaimers, and Support**

**Is it legal to use Market Mind AI for scraping data?**
Market Mind AI operates within ethical guidelines and does not extract private user data.

**What if I encounter issues?**
Direct any technical feedback to our [help and support](https://help.apify.com/en/).

**Your Feedback**
We are constantly working on improving Market Mind AI. Please provide feedback or report any issues.

Thank you for choosing Market Mind AI for your financial analysis needs!

# Actor input Schema

## `companies` (type: `array`):

The tickers of the company stock to analyze (e.g. TSLA, AAPL, AMZN). Find ticker at https://stockanalysis.com/stocks.

## `cryptocurrencies` (type: `array`):

The tickers of the cryptocurrency to analyze (e.g. BTC, ETH, DOGE). Find ticker at https://coinmarketcap.com/all/views/all/.

## `persona` (type: `string`):

Describe whom the recommendation is targeted for

## `sources` (type: `array`):

Select from available data sources to base the analysis on. At least one source is required.

## Actor input object example

```json
{
  "companies": [
    "TSLA"
  ],
  "cryptocurrencies": [
    "BTC"
  ],
  "persona": "I'm a conservative investor with aiming for long-term investment horizon",
  "sources": [
    "google",
    "twitter"
  ]
}
```

# 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 = {
    "companies": [
        "TSLA"
    ],
    "cryptocurrencies": [
        "BTC"
    ],
    "persona": "I'm a conservative investor with aiming for long-term investment horizon",
    "sources": [
        "google",
        "twitter"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("katzino/market-mind-ai").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 = {
    "companies": ["TSLA"],
    "cryptocurrencies": ["BTC"],
    "persona": "I'm a conservative investor with aiming for long-term investment horizon",
    "sources": [
        "google",
        "twitter",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("katzino/market-mind-ai").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 '{
  "companies": [
    "TSLA"
  ],
  "cryptocurrencies": [
    "BTC"
  ],
  "persona": "I'\''m a conservative investor with aiming for long-term investment horizon",
  "sources": [
    "google",
    "twitter"
  ]
}' |
apify call katzino/market-mind-ai --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,katzino/market-mind-ai"
        }
    }
}
```

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/UE49UoVO31wJe4yW5/builds/LsVZWdJi9UytycY9D/openapi.json
