# Similar Stock (investing.com) (`pintostudio/similar-stock-investing-com`) Actor

The Stock Similar Data Actor retrieves similar stock recommendations from Investing.com for any specified stock symbol. This powerful tool extracts data equivalent to the "People Also Watch" or "Similar Stocks" section that appears on stock detail pages.

- **URL**: https://apify.com/pintostudio/similar-stock-investing-com.md
- **Developed by:** [Pinto Studio](https://apify.com/pintostudio) (community)
- **Categories:** AI, Developer tools, Other
- **Stats:** 4 total users, 0 monthly users, 55.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$12.99 / 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.

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

## Stock Similar Data (Investing.com) Actor

### Overview

The **Stock Similar Data** Actor retrieves similar stock recommendations from Investing.com for any specified stock symbol. This powerful tool extracts data equivalent to the "People Also Watch" or "Similar Stocks" section that appears on stock detail pages, providing valuable insights into related investment opportunities and market trends.

Perfect for financial analysis, portfolio diversification research, and discovering stocks that move in similar patterns or belong to the same sector as your target stock.

### Key Features

- ✅ **Comprehensive Similar Stock Data**: Extract complete similar stock information including company names, symbols, current prices, and performance metrics
- ✅ **Multi-Country Support**: Access stock data from 45+ countries and major global exchanges
- ✅ **Real-Time Data**: Get up-to-date stock information directly from Investing.com
- ✅ **Rich Financial Metrics**: Retrieve key data points including market cap, P/E ratio, dividend yield, and daily changes
- ✅ **SEO Optimized**: Equivalent to "People Also Watch" functionality for investment research
- ✅ **JSON Format**: Clean, structured data output for easy integration
- ✅ **Error Handling**: Robust error handling and validation

### Use Cases

- **Investment Research**: Find similar stocks to diversify your portfolio
- **Market Analysis**: Identify stocks that move in correlation with your target stock
- **Competitive Analysis**: Discover companies in the same sector or industry
- **Financial Data Collection**: Build comprehensive stock databases for analysis
- **Trading Strategy Development**: Research related stocks for pair trading strategies
- **Portfolio Management**: Find alternatives to existing holdings

### Input Parameters

#### Required Parameters

| Parameter | Type | Description | Example |
|-----------|------|-------------|---------|
| `stockSymbol` | String | Stock ticker symbol (1-10 characters) | `"AAPL"`, `"MSFT"`, `"BBVA"` |

#### Optional Parameters

| Parameter | Type | Description | Default | Options |
|-----------|------|-------------|---------|---------|
| `country` | String | Country where the stock is listed | `"united states"` | See supported countries below |

#### Supported Countries

The actor supports stock data from 45+ countries:

**Major Markets:**

- United States
- United Kingdom
- Germany
- France
- Italy
- Spain
- Netherlands
- Japan
- China
- Canada
- Australia

**European Markets:**

- Belgium, Portugal, Austria, Switzerland
- Norway, Sweden, Denmark, Finland
- Poland, Czech Republic, Hungary
- Greece, Turkey, Russia

**Asian Markets:**

- South Korea, India, Malaysia, Singapore
- Thailand, Indonesia, Philippines, Vietnam
- Taiwan, Hong Kong

**Other Markets:**

- Brazil, Mexico, Argentina, Chile
- Colombia, Peru, South Africa
- Israel, Saudi Arabia, UAE
- New Zealand

### Output Format

The actor returns a JSON array containing similar stock data with the following structure:

```json
[
  {
    "mobx_easy_id": "_3031b6bo6",
    "symbol": "NVDA",
    "url": "/equities/nvidia-corp",
    "pair_id": 6497,
    "name": "NVIDIA Corporation",
    "shortname_translated": "NVIDIA",
    "one_year_change": 28.19,
    "dividend_yield": 0.0003,
    "pe_ratio": 50.07,
    "market_cap": 3860000000000,
    "change_percentage_decimal_precision": "2",
    "change_decimal_precision": "2",
    "current_price_precision": "2",
    "current_price": 159.93,
    "daily_change": 2.68,
    "daily_change_pct": 1.7
  }
]
```

#### Output Fields Explained

| Field | Description |
|-------|-------------|
| `mobx_easy_id` | Unique internal identifier |
| `symbol` | Stock ticker symbol |
| `url` | Investing.com URL path for the stock |
| `pair_id` | Unique pair identifier on Investing.com |
| `name` | Full company name |
| `shortname_translated` | Shortened company name |
| `one_year_change` | One-year percentage change |
| `dividend_yield` | Annual dividend yield |
| `pe_ratio` | Price-to-earnings ratio |
| `market_cap` | Market capitalization in USD |
| `current_price` | Current stock price |
| `daily_change` | Daily price change in currency |
| `daily_change_pct` | Daily percentage change |

### Usage Examples

#### Basic Usage

```json
{
  "stockSymbol": "AAPL"
}
```

#### With Country Specification

```json
{
  "stockSymbol": "BBVA",
  "country": "spain"
}
```

#### Technology Stock Analysis

```json
{
  "stockSymbol": "MSFT",
  "country": "united states"
}
```

### Integration Examples

#### Python Integration

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

## Prepare the actor input
run_input = {
    "stockSymbol": "AAPL",
    "country": "united states"
}

## Run the actor
run = client.actor("the_apify_actor").call(run_input=run_input)

## Fetch results
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"Similar stock: {item['name']} ({item['symbol']})")
    print(f"Current price: ${item['current_price']}")
    print(f"Daily change: {item['daily_change_pct']}%")
```

#### Node.js Integration

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

const client = new ApifyApi({
    token: 'YOUR_API_TOKEN',
});

const input = {
    stockSymbol: 'AAPL',
    country: 'united states'
};

const run = await client.actor('the_apify_actor').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();

items.forEach(stock => {
    console.log(`${stock.name} (${stock.symbol}): $${stock.current_price}`);
});
```

### Error Handling

The actor includes comprehensive error handling for common scenarios:

- **Invalid Stock Symbol**: Returns error if symbol is empty or invalid format
- **Unsupported Country**: Validates country parameter against supported list
- **Network Issues**: Handles connection errors and timeouts
- **Data Not Found**: Returns structured response when no similar data is available
- **Rate Limiting**: Implements proper delays to respect Investing.com's rate limits

### Performance & Limits

- **Execution Time**: Typically 10-30 seconds per stock
- **Data Freshness**: Real-time data from Investing.com
- **Rate Limits**: Built-in respect for source website limits
- **Memory Usage**: Optimized for efficient processing
- **Concurrent Runs**: Supports multiple parallel executions

### Best Practices

1. **Stock Symbol Format**: Use standard ticker symbols (e.g., "AAPL", not "Apple")
2. **Country Selection**: Select the correct country where the stock is primarily traded
3. **Batch Processing**: For multiple stocks, run separate actor instances
4. **Data Validation**: Always validate the returned data structure
5. **Error Handling**: Implement proper error handling in your integration

### Troubleshooting

#### Common Issues

**No Data Returned**

- Verify the stock symbol is correct and actively traded
- Check if the country parameter matches where the stock is listed
- Some stocks might not have similar recommendations available

**Invalid Country Error**

- Ensure the country name exactly matches the supported list
- Use lowercase country names (e.g., "united states", not "United States")

**Connection Errors**

- These are usually temporary - retry the actor
- Check Apify service status if errors persist

### Support

If you have any questions or encounter any issues, please consult the Apify documentation or reach out to us through one of the following channels:

- Verify input parameters match the schema requirements
- Check the Apify platform documentation
- Review the actor logs for detailed error messages

* **Telegram**: [@pintoflow](https://t.me/pintoflow)
* **Apify Platform**: You can also contact us directly through this platform.

***

# Actor input Schema

## `stockSymbol` (type: `string`):

Stock symbol to retrieve historical data from (e.g., 'AAPL', 'BBVA', 'MSFT')

## `country` (type: `string`):

The country where the stock is listed

## Actor input object example

```json
{
  "stockSymbol": "AAPL",
  "country": "united states"
}
```

# Actor output Schema

## `similarStocks` (type: `string`):

No description

## `summary` (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 = {
    "stockSymbol": "AAPL"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pintostudio/similar-stock-investing-com").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 = { "stockSymbol": "AAPL" }

# Run the Actor and wait for it to finish
run = client.actor("pintostudio/similar-stock-investing-com").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 '{
  "stockSymbol": "AAPL"
}' |
apify call pintostudio/similar-stock-investing-com --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pintostudio/similar-stock-investing-com"
        }
    }
}
```

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/cPOB6bH2H9aSK6cB7/builds/sd2GCsUsa6O1uzaHq/openapi.json
