# OddsPortal Scraper - $2.50 / 1000 Results (`scrapeunblocker/oddsportal-scraper`) Actor

OddsPortal as JSON: fixtures and results of any league with scores and average and highest odds per outcome, or every bookmaker's price for a match. Football, basketball, hockey, tennis and more. $2.50 per 1000 results.

- **URL**: https://apify.com/scrapeunblocker/oddsportal-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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

## OddsPortal Scraper

Scrape **OddsPortal** (oddsportal.com) as clean JSON. Get a league's **fixtures and results with average and highest odds per outcome**, or **every bookmaker's price** for a match.

### Features

- **Fixtures and results** - teams, start time, venue, score and period scores for any league or results page, including past seasons.
- **Average and highest odds** - per outcome, with the number of bookmakers behind them.
- **Every bookmaker's price** - the match's main market (1X2, or Home/Away for two-way sports), with average and best price. Betting exchanges carry `exchange: true` and stay out of `best`.
- **Many pages per run** - football, basketball, hockey, tennis and more.

### Use cases

- **Betting models** - results and closing prices for backtesting.
- **Odds comparison** - bookmaker prices next to the market average.
- **Value research** - compare the best price per outcome against your own model.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `matches` | `matches` (fixtures or results with average odds) or `odds` (every bookmaker's price per match). |
| `pages` | array | Premier League, NBA, NHL | Links or paths on oddsportal.com. In `odds` mode a league page is expanded into its matches. |
| `maxMatches` | integer | `20` | Matches to take from each page (1-500). |
| `proxyCountry` | string | - | Optional two-letter country code the requests are sent from. |

### Output

In `matches` mode each result is one match:

```json
{
  "id": "MuVKeqEE",
  "name": "Manchester City - Fulham",
  "home": "Manchester City",
  "away": "Fulham",
  "status": "scheduled",
  "startTime": "2026-11-21T12:30:00Z",
  "tournament": "Premier League",
  "odds": {"home": {"average": 1.43, "highest": 1.47, "bookmakers": 8}},
  "url": "https://www.oddsportal.com/football/h2h/fulham-69ZiU2Om/manchester-city-Wtn9Stg0/#MuVKeqEE"
}
```

In `odds` mode each result is one match with `markets`, where each selection lists `odds` per bookmaker.

The site lists the bookmakers licensed in the visitor's country, so the bookmakers returned depend on the exit. Use `proxyCountry` to choose a country. Results pages return the first page of the season the site shows.

A page or match that cannot be read is listed in the run's `ERRORS` key-value record and is not charged.

### Pricing

$2.50 per 1000 results.

# Actor input Schema

## `mode` (type: `string`):

Matches: one result per listed match with its score and average and highest odds. Bookmaker odds: one result per match with every bookmaker's price, read from a full browser render. In this mode a league page is expanded into its matches.

## `pages` (type: `array`):

Links or paths on oddsportal.com. League pages such as football/england/premier-league, results pages such as football/england/premier-league/results, a past season such as football/england/premier-league-2025-2026/results. For bookmaker odds also match links as returned in matches mode.

## `maxMatches` (type: `integer`):

How many matches to take from each league or results page.

## `proxyCountry` (type: `string`):

Optional two-letter country code the requests are sent from, such as US or DE. Leave empty to let the scraper choose.

## Actor input object example

```json
{
  "mode": "matches",
  "pages": [
    "football/england/premier-league",
    "basketball/usa/nba",
    "hockey/usa/nhl"
  ],
  "maxMatches": 20
}
```

# Actor output Schema

## `items` (type: `string`):

Collected results

# 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 = {
    "pages": [
        "football/england/premier-league",
        "basketball/usa/nba",
        "hockey/usa/nhl"
    ],
    "maxMatches": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/oddsportal-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 = {
    "pages": [
        "football/england/premier-league",
        "basketball/usa/nba",
        "hockey/usa/nhl",
    ],
    "maxMatches": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/oddsportal-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 '{
  "pages": [
    "football/england/premier-league",
    "basketball/usa/nba",
    "hockey/usa/nhl"
  ],
  "maxMatches": 20
}' |
apify call scrapeunblocker/oddsportal-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/oddsportal-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/aqXjPx5Z4g6Khmyn3/builds/TxlZscZ6sFrvmO2Dq/openapi.json
