# Palmerbet sports scraper (`websift/palmerbet-sports-scraper`) Actor

Scrapes upcoming sports events and odds from Palmerbet.com with filtering by sport categories.

- **URL**: https://apify.com/websift/palmerbet-sports-scraper.md
- **Developed by:** [Jacob](https://apify.com/websift) (community)
- **Categories:** Automation
- **Stats:** 68 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 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

## Palmerbet Upcoming Events Scraper

This Apify actor scrapes upcoming sports events from **Palmerbet.com**. Whether you're looking for the latest matches in traditional sports or esports, this actor fetches key details such as event ID, start time, status, teams, and available odds. You can easily filter by different sports categories and access specific event information.

### Features

- **Fetch Upcoming Events**: Get a list of upcoming events from Palmerbet, including sports like football, basketball, and esports.
- **Detailed Match Data**: Each event provides essential information such as teams, match result odds, and start times.
- **Team Information**: Both home and away teams are included, along with odds for winning.

### Sample Output

The scraper will return a JSON array with event details. Below is a sample output:

```json
  {
    "eventId": "46ec8303-5cd9-0de3-cd97-75ef19d778c7",
    "sportType": "Soccer",
    "startTime": "2024-10-18T00:00:00Z",
    "status": "NotStarted",
    "state": "Other",
    "homeTeam": {
        "competitorId": "f047f428-2a68-40f5-aac2-a941070bc3bb",
        "title": "Sporting San Jose FC",
        "win": {
            "marketId": "87123746-6463-46e3-8170-c6be17db5bd9",
            "outcomeId": "cc91523b-8767-4df9-a3fb-b8d94f4091d2",
            "price": 2.25,
            "title": "Fulltime Match Result",
            "type": "WinDraw",
            "isMultiOffered": true
        }
    },
    "awayTeam": {
        "competitorId": "f6dd7215-32d2-4025-9867-1818fe092dc0",
        "title": "Municipal Santa Ana",
        "win": {
            "marketId": "87123746-6463-46e3-8170-c6be17db5bd9",
            "outcomeId": "080325a7-e5e6-4e27-bf3a-1ad8abfe9540",
            "price": 2.9,
            "title": "Fulltime Match Result",
            "type": "WinDraw",
            "isMultiOffered": true
        }
    },
    "draw": {
        "marketId": "87123746-6463-46e3-8170-c6be17db5bd9",
        "outcomeId": "e3f8fca7-8039-4314-80a4-5c538336909e",
        "price": 3.25,
        "title": "Fulltime Match Result",
        "type": "WinDraw",
        "isMultiOffered": true
    },
    "offers": [
        {
            "promotionType": "SameEventMulti",
            "isOffered": true,
            "description": "Soccer Same Event Multi - SGM"
        }
    ],
    "additionalMarkets": [
        {
            "marketId": "96f6ba30-e46f-4898-aad1-273ac887deeb",
            "title": "Total Score",
            "type": "Total",
            "isHandicap": true,
            "handicap": 2.5,
            "isMultiOffered": true,
            "outcomes": [
                {
                "outcomeId": "115bad86-10bb-4f0c-a9fc-6edebfaa9334",
                "title": "Over 2.5",
                "price": 1.78,
                "type": "None"
                },
                {
                "outcomeId": "15ef5197-d96f-4b28-b16c-fa14b7ae7dbc",
                "title": "Under 2.5",
                "price": 1.93,
                "type": "None"
                }
            ]
        }
    ],
    "isAmericanSport": false
}
```

### Usage

#### Actor Input

**maxResults (required)**: Specify the maximum number of results to return. The maximum limit is 1,000,000.

#### Output

The results are returned as a structured JSON array, where each event contains:

- **Event ID**
- **Sport type** (e.g., football, esports)
- **Start time** (UTC)
- **Event status** (e.g., "NotStarted", "Ongoing")
- **Home and away teams** with odds for match results.
- **Draw when available** with odds.

#### How to Run the Actor

1. Log in to your Apify account.
2. Go to the actor's page.
3. Set the **maxResults** input, and click **Run**.
4. Wait for the actor to complete, and download the results in JSON format or review them directly on Apify's platform.

### Ideal Use Cases

- **Sports Enthusiasts**: Stay updated on upcoming matches and view betting odds across various sports.
- **Betting Analysts**: Use this data to analyze odds and make informed betting decisions.

#### Notes

- The scraper fetches events in real-time, ensuring that you get the most up-to-date information.

Enjoy tracking your favorite sports events with this Palmerbet scraper!

# Actor input Schema

## `maxResults` (type: `integer`):

Set the upper limit for the total number of events to retrieve.

## Actor input object example

```json
{
  "maxResults": 100
}
```

# 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("websift/palmerbet-sports-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("websift/palmerbet-sports-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 websift/palmerbet-sports-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,websift/palmerbet-sports-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/cg4JbSqYrT6egyqOk/builds/6rjT4zEx2PMQi7KiL/openapi.json
