Stocks Overview avatar
Stocks Overview

Pricing

$19.99/month + usage

Go to Store
Stocks Overview

Stocks Overview

Developed by

Pinto Studio

Pinto Studio

Maintained by Community

This Apify actor fetches stock overview data from Investing.com for a specified country. It retrieves up to 1,000 stock entries with key financial metrics and summarizes market sentiment.

0.0 (0)

Pricing

$19.99/month + usage

0

Total users

1

Monthly users

1

Runs succeeded

>99%

Last modified

4 days ago

📈 Stocks Overview Data (Investing.com) – Apify Actor Documentation

This Apify actor fetches stock overview data from Investing.com for a specified country. It retrieves up to 1,000 stock entries with key financial metrics and summarizes market sentiment.


📌 Overview

The Stocks Overview Data (Investing.com) actor retrieves structured financial data for publicly traded companies based on country selection. The actor supports advanced filtering, data enrichment, and result summarization.

Typical use cases include:

  • Daily stock performance snapshots
  • Investment insights by region
  • Real-time reporting dashboards
  • Quantitative analysis pipelines

✅ Output Format

The actor pushes each stock record to the Apify dataset in the following structure:

{
"country": "united states",
"name": "Boeing",
"symbol": "BA",
"last": 218.52,
"high": 220.0,
"low": 214.72,
"change": "-0.11",
"change_percentage": "-0.05%",
"turnover": 6770000.0,
"currency": "USD",
"retrieved_at": "2025-07-09T09:00:18.847563",
"data_type": "stock_overview"
}

Additionally, a summary object is saved under the key stocks_overview_summary using Actor.set_value():

{
"country": "united states",
"n_results": 100,
"has_data": true,
"retrieved_at": "2025-07-09T09:00:18.847563",
"data_format": "list",
"total_stocks": 100,
"currencies": ["USD"],
"sectors_count": 8,
"avg_stock_price": 103.55,
"highest_stock_price": 570.1,
"lowest_stock_price": 3.2,
"stocks_with_positive_change": 53,
"stocks_with_negative_change": 47,
"market_sentiment": "positive",
"top_performers": [
{
"name": "Company A",
"symbol": "CMPA",
"change_percentage": "7.12%"
},
...
]
}

📥 How It Works

  1. Input Retrieval: Accepts a country and optional nResults (max 1000).

  2. Validation: Checks that input types and values are valid.

  3. Data Fetching: Calls get_stocks_overview() to retrieve data.

  4. Data Storage: Stores each record in the dataset.

  5. Summary Generation: Calculates:

    • Number of stocks
    • Average, highest, and lowest stock prices
    • Count of stocks with price increase/decrease
    • Market sentiment analysis
    • Top 5 performing stocks
  6. Error Handling: Captures and logs detailed error types (ValueError, IOError, etc.) with metadata.


🧠 Key Features

  • Supports 48 countries
  • Customizable result count (1–1000)
  • Adds enhanced metadata for each entry
  • Provides real-time summary and market insight
  • Fully async for optimal performance
  • Robust error handling and logging

⚠️ Error Handling

If any error occurs, a record with data_type: "error" is pushed, including:

{
"country": "france",
"n_results": 100,
"error_type": "ConnectionError",
"error_message": "Connection timed out",
"retrieved_at": "2025-07-09T09:00:18.847563",
"data_type": "error"
}

In addition, Actor.fail() is called to mark the run as failed.


🧪 Example Input

{
"country": "united states",
"nResults": 50
}

📤 Example Output (single record)

{
"country": "united states",
"name": "Apple Inc.",
"symbol": "AAPL",
"last": 192.64,
"high": 195.0,
"low": 190.5,
"change": "+1.24",
"change_percentage": "+0.65%",
"turnover": 98000000,
"currency": "USD",
"retrieved_at": "2025-07-09T09:00:18.847563",
"data_type": "stock_overview"
}

🚀 Deployment

This actor is deployed on the Apify platform. You can run it via:

  • Apify Console UI
  • API call
  • Schedule (cron-like)

🧼 Output Keys

FieldDescription
nameCompany name
symbolTicker symbol
lastLast traded price
high, lowDaily high and low prices
change, change_percentagePrice change and percent delta
turnoverTrade volume
currencyCurrency code (e.g., USD, EUR)
retrieved_atISO timestamp when data was fetched
data_typeEither "stock_overview" or "error"

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
  • Apify Platform: You can also contact us directly through this platform.