# Forebet Predictions Scraper (`locos08/forebet-predictions-scraper`) Actor

The ultimate 6-in-1 Forebet scraper. Automatically loads ALL matches and extracts a complete dataset: 1X2, Halftime, Under/Over, BTTS, Corners, and Cards predictions, plus final scores. Perfect for deep statistical analysis.

- **URL**: https://apify.com/locos08/forebet-predictions-scraper.md
- **Developed by:** [Julian T.](https://apify.com/locos08) (community)
- **Categories:** Automation, Other, Developer tools
- **Stats:** 173 total users, 6 monthly users, 100.0% runs succeeded, 7 bookmarks
- **User rating**: 4.39 out of 5 stars

## Pricing

$0.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.

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

## Comprehensive Forebet Predictions Scraper

This is the ultimate scraper for Forebet.com, a powerful and comprehensive tool designed to fetch a rich dataset of football predictions, statistics, and results. The primary objective of this scraper is to provide accurate, detailed, and up-to-date football data for deep statistical analysis and insights.

A key feature of this scraper is its ability to load **all** available matches by automatically.
It intelligently combines data from **six different prediction pages**
(Main, Under/Over 2.5, Halftime, Both Teams To Score, Corners, and Cards) into a single, clean, and ready-to-use dataset.

#### Input

This Actor does not require any input. It is pre-configured to scrape all available daily and future football data from Forebet.

#### Output

The dataset can be downloaded in various formats like JSON, CSV, or Excel.
The output includes a detailed breakdown for each match, distinguishing between future predictions and past results.

##### Data Schema

- `matchDate`: The scheduled date of the match (YYYY-MM-DD).
- `matchTime`: The scheduled start time of the match.
- `leagueName`: The full name of the league or competition.
- `leagueLogoUrl`: The direct URL to the league's logo image.
- `home`: Name of the home team.
- `away`: Name of the away team.
- `match_finished`: A clear indicator (`yes`/`no`) if the match has been completed.
- `finalScore`: The final score of the match (e.g., "3 - 0"), if finished.
- `halftimeScore`: The halftime score of the match (e.g., "2 - 0"), if finished.
- `prediction`: The predicted outcome (1, X, 2).
- `predictedScore`: The exact predicted score (e.g., "2 - 1").
- `averageGoals`: The predicted average number of goals in the match.
- `probability_1_percent`: The calculated probability in % for a home team win.
- `probability_X_percent`: The calculated probability in % for a draw.
- `probability_2_percent`: The calculated probability in % for an away team win.
- `halftimePrediction`: The predicted halftime outcome (1, X, or 2).
- `probability_HT_1_percent`: The calculated probability in % for a halftime home win.
- `probability_HT_X_percent`: The calculated probability in % for a halftime draw.
- `probability_HT_2_percent`: The calculated probability in % for a halftime away win.
- `underOverPrediction`: The prediction for "Over" or "Under" 2.5 goals.
- `probability_under_percent`: The calculated probability in % for under 2.5 goals.
- `probability_over_percent`: The calculated probability in % for over 2.5 goals.
- `bttsPrediction`: The prediction for "Both Teams To Score" (`Yes` or `No`).
- `probability_btts_yes_percent`: The calculated probability in % for both teams to score.
- `probability_btts_no_percent`: The calculated probability in % for at least one team not to score.
- `predictedAverageCorners`: The predicted average number of corners in the match.
- `predictedAverageCards`: The predicted average number of cards in the match.

##### Example Output

Here is an example of the output for a single, comprehensive match entry:

````json
[
  {
    "matchDate": "2025-09-07",
    "matchTime": "1:00 PM",
    "leagueName": "WC Qualification UEFA",
    "leagueLogoUrl": "https://www.forebet.com/images/fc/41.png",
    "home": "Georgia",
    "away": "Bulgaria",
    "match_finished": "yes",
    "finalScore": "3 - 0",
    "halftimeScore": "2 - 0",
    "prediction": "X",
    "predictedScore": "1 - 1",
    "averageGoals": "2.61",
    "probability_1_percent": "27",
    "probability_X_percent": "47",
    "probability_2_percent": "26",
    "halftimePrediction": "X",
    "probability_HT_1_percent": "45",
    "probability_HT_X_percent": "35",
    "probability_HT_2_percent": "20",
    "underOverPrediction": "Over",
    "probability_under_percent": "48",
    "probability_over_percent": "52",
    "bttsPrediction": "Yes",
    "probability_btts_yes_percent": "55",
    "probability_btts_no_percent": "45",
    "predictedAverageCorners": "9.80",
    "predictedAverageCards": "3.50"
  }
]

Legality of Scraping
This scraper extracts public data from Forebet and does not access any private user information. It is designed to be used ethically and responsibly. Please note that personal data is protected by laws such as GDPR. Ensure you have a legitimate reason to scrape personal data if it occurs in your results. Consult legal advice if in doubt. You can read more about the legality of web scraping in this Apify blog post.
Disclaimer
This Apify Actor is not affiliated with Forebet.com. While it aims to provide accurate data, it's crucial to remember that betting always carries a risk, and outcomes cannot be guaranteed. This Actor is dependent on the structure of the target website, which may change over time. Always bet responsibly.





## Actor input object example

```json
{}
````

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("locos08/forebet-predictions-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("locos08/forebet-predictions-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 '{}' |
apify call locos08/forebet-predictions-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,locos08/forebet-predictions-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/t1FaJp8nDPMf9hFnV/builds/qsbX3YRLgZDkkP9Rv/openapi.json
