# Pinnacle Odds API: Sports Betting Odds Scraper + Closing Lines (`axeforce00/odds-feed`) Actor

Pinnacle odds API & betting odds scraper: Pinnacle, Kambi (paf), Polymarket and Kalshi odds with no-vig fair odds and edge vs Pinnacle; soccer, NBA, NFL, NHL, tennis. Modes: current, closing, movement. First 100 rows/run free, then $1.50 per 1,000. Unofficial, not affiliated with Pinnacle or Kambi.

- **URL**: https://apify.com/axeforce00/odds-feed.md
- **Developed by:** [AxeForce](https://apify.com/axeforce00) (community)
- **Categories:** Sports, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 odds rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Pinnacle Odds API: Sports Betting Odds Scraper + Closing Lines

**Pinnacle odds API and sports betting odds scraper** that returns one JSON row per event, book, market, line and
outcome for soccer, tennis, basketball, baseball, ice hockey and American football: Pinnacle sharp odds, the Kambi
book paf and the Polymarket and Kalshi prediction markets, with decimal, American and fractional prices, no-vig fair
odds and edge against Pinnacle. Which mode to use: `current` (default) for the latest pre-match and live odds,
`closing` for closing lines of past matches (archive since 20 Oct 2026), `movement` for the opening to current price
history of events you already have. **The first 100 odds rows of every run are free**, then $1.50 per 1,000 rows.
Built and maintained by **AxeForce**.

> **Unofficial.** Not affiliated with, endorsed by or sponsored by Pinnacle, Kambi, Polymarket, Kalshi or any league.
> Prices are read from publicly available endpoints with rate limits, a circuit breaker and a daily request budget.
> Nothing is synthesised: if a book does not offer a market, the row does not exist.

### For AI agents

Call the Actor `axeforce00/odds-feed` with one of these inputs. Every field is optional. Rows land in the default
dataset; a run summary (`ok`, `reason`, `rowsPushed`, `freeRows`, `chargedEvents`, `nextSince`) lands in the
key-value record `OUTPUT`.

Current soccer odds, small sample (50 rows, **free**: inside the 100 free rows per run):

```json
{}
```

One league's current board, Pinnacle and paf, main lines (Premier League on 10 Nov 2026: 20 matches, 490 rows, so
(490 - 100) x $0.0015 = **$0.585**):

```json
{ "leagues": ["soccer.epl"], "maxRows": 1000 }
```

Closing lines for one day (at most 200 rows x $0.003 = **$0.60**):

```json
{ "mode": "closing", "leagues": ["soccer.epl"], "dateFrom": "2026-11-08", "dateTo": "2026-11-08", "maxRows": 200 }
```

Tips: `maxRows` caps the cost. Use `leagues` codes such as `soccer.epl`, `basketball.nba`, `american_football.nfl`,
`ice_hockey.nhl` or `tennis.atp` (the input schema lists all 23); `leagues` overrides `sports`. A league out of season
returns zero rows and costs nothing. For `mode: movement` pass `eventIds` taken from the `eventKey` of earlier rows.

### How to scrape Pinnacle odds and closing lines

1. Click **Start** with the default input: you get up to 50 current Premier League odds rows, free (inside the 100
   free rows per run).
2. Pick a `mode`: `current` for the latest pre-match and live odds, `closing` for finalized closing lines,
   `movement` for opening to current history of the `eventIds` you pass.
3. Choose `leagues` (for example `soccer.epl`, `basketball.nba`, `american_football.nfl`) or whole `sports`, then
   `books` and `markets`; set `includeProps: true` for player, game and team props.
4. Raise `maxRows` to get a full board; one league with both books is usually a few hundred rows.
5. Download the dataset as JSON, CSV or Excel, or read it through the Apify API.

From Python with the official `apify-client` package (Node.js works the same way with `apify-client` for JavaScript):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("axeforce00/odds-feed").call(
    run_input={"mode": "current", "leagues": ["soccer.epl"], "books": ["pinnacle", "paf"], "maxRows": 1000})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["homeTeam"], row["awayTeam"], row["book"], row["market"], row["outcome"], row["priceDecimal"],
          row["noVigProb"], row["edgeVsSharpPct"])
```

### What betting odds data you get

| | |
|---|---|
| Sports and leagues | soccer (Premier League, La Liga, Serie A, Bundesliga, Ligue 1, Champions League, Brazil Serie A and B), basketball (NBA, EuroLeague), baseball (MLB, KBO, NPB), ice hockey (NHL, SHL, Liiga), American football (NFL, NCAA), tennis (ATP, WTA, Challenger, ITF) |
| Books | Pinnacle (sharp: limits, `cutoffAt`, the fair-odds anchor), the Kambi book paf, the Polymarket and Kalshi prediction markets, and the BetExplorer market average (closing lines) |
| Markets | h2h (moneyline), h2h3 (1X2), spread, total, team totals; alternate lines with `mainOnly: false`; props with `includeProps` |
| Per odds row | decimal, American and fractional price, implied probability, no-vig probability, edge vs Pinnacle, limit, opening price, price delta, movement direction, closing flag |
| History | closing lines and movement from the live archive, which started on 20 Oct 2026 |

Measured with live runs on 10-11 Nov 2026: current rows for 8 soccer leagues (over 3,000 main-line rows), NBA,
EuroLeague, NHL, NCAA football and four tennis tours; Polymarket and Kalshi rows for soccer, NFL, NCAA football, NHL,
SHL, Liiga and NBA; closing rows for MLB and NFL games of 20 Oct 2026. Baseball (MLB, KBO, NPB) was out of season, so
it had no current rows.

### Why this betting odds feed

1. **Independent books side by side, never a synthesised price.** Pinnacle plus Kambi `paf` when the soft book
   lists the fixture (Premier League on 10 Nov 2026: paf priced 10 of the 20 listed matches), plus Polymarket and
   Kalshi. No filled-in `-110`, no invented second book when a book does not price the match.
2. **The join and the maths.** `eventKey` ties the same fixture across books; `noVigProb` is each book's own
   power-devigged probability; `edgeVsSharpPct = (price x Pinnacle noVigProb - 1) x 100` and is **null** unless an
   exact Pinnacle market/period/line exists. A Kambi price is never labelled Pinnacle.
3. **Closing lines and movement.** `mode: closing` returns finalized lines with `isClosing: true`,
   `openPriceDecimal`, `priceDelta` and `movementDirection`; `mode: movement` returns the per-market history.
4. **Honest partial flags.** Degraded sources still produce rows, with `partial` and the reason in the run output and
   status message; a run with nothing to serve exits `ok: false` with a reason and charges nothing. Each source is
   judged against its own freshness target (BetExplorer averages refresh once a day).
5. **A stable row contract** (`schemaVersion` `1.0`) plus `sourceMode`.

### Odds scraper input modes

| `mode` | What you get | Cost |
|---|---|---|
| `current` (default) | latest prices for `leagues` (or `sports`), `books`, `markets` (`mainOnly`, `live`, `date`, `since`) | first 100 rows free, then $0.0015 per row |
| `closing` | finalized closing rows for `dateFrom`..`dateTo` (`leagues`, `books`, `markets`) | $0.003 per row, no free rows |
| `movement` | opening to current history per `eventIds` | first 100 rows free, then $0.0015 per row |

`includeProps: true` adds **props** (Pinnacle game-linked specials: player props such as "Jake Ferguson Total
Receiving Yards", game props such as "Total Points Range", team props) as separate `prop-row` rows, charged $0.001 per
row with no free allowance; they never replace or reprice an odds row. Narrow them with `propTypes` (`player_prop`,
`game_prop`, `team_prop`) and `propPlayers` (name substrings).

#### More example inputs

Every NBA and NHL game, moneyline and totals only:

```json
{ "leagues": ["basketball.nba", "ice_hockey.nhl"], "markets": ["h2h", "total"], "maxRows": 2000 }
```

Prediction markets next to Pinnacle:

```json
{ "leagues": ["soccer.epl"], "books": ["pinnacle", "polymarket", "kalshi"], "markets": ["h2h3"], "maxRows": 1000 }
```

Changed-only polling (pass `nextSince` from the previous run's `OUTPUT` record):

```json
{ "mode": "current", "sports": ["soccer", "tennis"], "since": 236075681, "maxRows": 5000 }
```

Props for one NFL game, player props only, one player:

```json
{ "leagues": ["american_football.nfl"], "books": ["pinnacle"], "includeProps": true, "propTypes": ["player_prop"], "propPlayers": ["ferguson"], "maxRows": 500 }
```

### Odds API output: one odds row (schema 1.0 + `sourceMode`)

```json
{
  "eventKey": 712, "sport": "tennis", "league": "tennis.atp",
  "homeTeam": "Alex Example", "awayTeam": "Blair Example", "commenceTime": "2026-10-20T09:00:00Z",
  "book": "paf", "bookType": "soft", "market": "h2h", "period": "ft", "line": 0,
  "outcome": "home", "priceDecimal": 1.72, "priceAmerican": -139, "priceFractional": "18/25",
  "impliedProb": 0.5814, "noVigProb": 0.574, "edgeVsSharpPct": -1.4,
  "isMainLine": true, "isLive": false, "suspended": false, "limit": 5000,
  "cutoffAt": "2026-10-20T08:55:00Z", "bookUpdatedAt": "2026-10-20T08:59:44Z",
  "snapshotAt": "2026-10-20T08:59:44Z", "openPriceDecimal": 1.8, "priceDelta": -0.08,
  "lineDelta": null, "movementDirection": "down", "isClosing": false,
  "sourceEventId": "884219", "schemaVersion": "1.0", "sourceMode": "api"
}
```

`sourceEventId` is the book's own event id, so a row can always be traced back to the book that produced it.

#### Prop row (`includeProps: true`)

```json
{
  "eventKey": 88213, "sport": "american_football", "league": "american_football.nfl",
  "homeTeam": "Philadelphia Eagles", "awayTeam": "Dallas Cowboys", "commenceTime": "2026-10-27T00:15:00Z",
  "book": "pinnacle", "bookType": "sharp", "market": "player_prop", "propId": "1641200344",
  "propKind": "over_under", "propCategory": "Player Props",
  "propDescription": "Jake Ferguson Total Receiving Yards", "player": "Jake Ferguson",
  "statType": "receiving_yards", "period": "ft", "line": 44.5, "outcome": "over",
  "priceDecimal": 1.91, "priceAmerican": -110, "priceFractional": "10/11",
  "impliedProb": 0.5236, "noVigProb": 0.5074, "isLive": false, "suspended": false, "limit": 1500,
  "cutoffAt": "2026-10-27T00:10:00Z", "snapshotAt": "2026-10-26T13:38:12Z",
  "openPriceDecimal": 1.87, "priceDelta": 0.04, "movementDirection": "up",
  "isClosing": false, "sourceEventId": "1638200263", "schemaVersion": "1.0", "sourceMode": "api"
}
```

One row per prop outcome: over/under props have `over`/`under`, yes/no props `yes`/`no`, multi-outcome game props
the book's own labels ("0 - 20", "Odd"). `noVigProb` is the two-way power-devigged probability (null for 3+-outcome
props, whose listed outcomes need not be exhaustive). `line` is 0 for yes/no and multi-outcome props. Prop rows
carry no `edgeVsSharpPct`: a prop price has no second book to compare against in this feed.

### Requests and charges per run

Charges: the **first 100 `odds-row` rows of each run are free**, then one `odds-row` ($0.0015) per pushed row;
closing runs charge one `closing-row` ($0.003) per row (no free allowance); movement rows charge one `odds-row` each.
Examples, measured on 10 Nov 2026:

- `{"leagues": ["soccer.epl"]}` (Pinnacle + paf, main lines): 20 matches listed, 490 rows (440 Pinnacle + 50 paf)
  -> 490 - 100 free = 390 x $0.0015 = **$0.585**.
- The same league with alternate lines (`mainOnly: false`, Pinnacle only): 1,482 rows instead of 440, so about
  three times the cost.
- The default input (`maxRows: 50`) costs **$0** plus Apify's $0.00005 start event: 50 < 100 free rows.

Props (`includeProps: true`) are charged separately as `prop-row` ($0.001/row, **no free allowance**) and never
count against the 100 free odds rows. Measured 2 Nov 2026 (the one NFL game then listing props): 170 prop rows ->
170 x $0.001 = **$0.17** for that game's props; `propTypes: ["player_prop"]` only -> 100 rows -> **$0.10**. At that
rate a 16-game NFL slate is about 16 x 170 = 2,720 prop rows, about **$2.72**; `maxRows` caps the total (odds + prop
rows) and the run report says when it truncated.

### Live odds API: Standby

With Standby on, the Actor also answers plain HTTP requests at its Standby URL:

- `GET /` - readiness (`200` when the data API answers, `503` with an `error` object otherwise; free);
- `GET /odds?sport=&league=&book=&market=&period=&main_only=&live=&date=&since=&limit=` - odds rows;
  `since` gives changed-only polling.

Each **successful** request charges one `standby-poll` ($0.001); failed requests are free. Once the run's maximum
charge is reached, data requests answer **`402`** `{"error":{"code":"charge_limit_reached","message":"..."}}` (not
charged) and the run finishes; start a new run or raise `maxTotalChargeUsd` to serve more. Responses are the API
envelope with `meta.sourceMode: "api"` and `meta.standby`. `limit` is capped at 1,000 rows per request (or at
`maxRows` when you set it higher).

Freshness: `/odds` with no `date`, today's `date` or `since` is served from a 2 s cache. `live=false` (pre-match
only) or a future `date` is cached for up to 300 s, so a poll can return a 5-minute-old snapshot; add `since` to stay
on the 2 s cache.

### `OUTPUT` record

Every run writes a JSON summary to the key-value store under `OUTPUT` (this one is from the Premier League run on
10 Nov 2026):

```json
{"ok": true, "actor": "odds-feed", "mode": "api", "reason": "source: SDF API (ok)", "partial": false,
 "nextSince": 236075681, "rowsAvailable": 490, "rowsPushed": 490, "freeRows": 100, "chargeLimitReached": false,
 "chargedEvents": {"odds-row": 390}, "requests": {}, "sources": {}, "skipped": {}, "counts": {}, "degraded": [],
 "notes": [], "schemaVersion": "1.0", "generatedAt": "2026-11-10T20:54:42.143068Z"}
```

`nextSince` is the revision to pass as `since` on the next changed-only poll.

### Pricing: Pinnacle odds API cost per 1,000 rows

| event | price |
|---|---|
| `odds-row` | first 100 rows of each run free, then $0.0015 ($1.50 per 1,000 rows) |
| `closing-row` | $0.003 ($3 per 1,000 rows), no free allowance |
| `prop-row` | $0.001 ($1 per 1,000 rows), no free allowance |
| `standby-poll` | $0.001 per successful Standby request, plus the Standby container's platform usage |

Apify also charges its standard `apify-actor-start` event ($0.00005 per run start, one per GB of memory); there is no
per-dataset-item fee and no platform usage on batch runs. A run of up to 100 odds rows therefore costs $0.00005. The
default input (`maxRows: 50`) stays inside the free 100 rows. The $5 monthly credit of Apify's free plan buys 3,333
paid odds rows ($5 / $0.0015) on top of the 100 free rows per run. Higher Apify plans (Silver and up) get tier
discounts on every event; the Pricing tab shows them. Your maximum charge per run is enforced by the Apify SDK: batch
runs stop pushing and exit cleanly when it is reached (`chargeLimitReached: true` in `OUTPUT`); Standby runs refuse
further data requests with HTTP 402 and finish.

### API mode and fallback

On Apify the Actor reads our own collector's data API (`sourceMode: "api"`): every book, closing lines, movement
and change-only polling. If that API is unreachable, `current` runs fall back to reading Pinnacle and Kambi directly
(`sourceMode: "direct"`, at most `maxLeagues` leagues per run, `coolbet` as the Kambi fallback brand when `paf`
fails); `closing`, `movement`, `since` and the Polymarket, Kalshi and BetExplorer books then report `ok: false` or
`degraded` instead of guessing. Run inputs never carry credentials (an old `apiUrl`/`apiKey` input is ignored).

### Limits and honesty

- Kambi is a soft book and never creates events: Kambi fixtures without a Pinnacle counterpart are counted and
  reported, never merged.
- Books are matched with a fuzzy team-name matcher plus a time window (30 min for team sports, 12 h for tennis) and
  a confidence margin, using each book's own event ids, never plain name equality.
- Alternate lines (`mainOnly: false`) roughly triple the row count; props have no second book to compare with, so
  prop rows carry no `edgeVsSharpPct`.

### FAQ

**Is this Pinnacle odds scraper official? Is it legal to use?**
It is unofficial and not affiliated with Pinnacle, Kambi, Polymarket, Kalshi or any league. It reads publicly
available prices politely (rate limits, a circuit breaker and a daily request budget) and does not log in anywhere.
You are responsible for how you use the data, so check the rules that apply to your use case and country.

**How fresh are the odds?**
Current odds are served from a 2-second cache; pre-match-only (`live: false`) or future-date requests can be cached
for up to 5 minutes. Every row carries `bookUpdatedAt` and `snapshotAt`, so you always know how old a price is. Use
`since` to poll only the prices that changed.

**How much does the odds API cost?**
The first 100 odds rows of every run are free, then $1.50 per 1,000 odds rows. Closing-line rows are $3 per 1,000,
prop rows $1 per 1,000, and Standby requests $1 per 1,000 plus Standby platform usage. The default input stays inside
the free rows. A run that returns nothing costs nothing beyond Apify's $0.00005 start event.

**Can I use it from Python, Node.js or no-code tools?**
Yes. Call it through the Apify API or the official `apify-client` packages for Python and JavaScript (example above),
poll the Standby URL as a plain HTTP API, or connect it to Zapier, Make, n8n or webhooks through Apify's
integrations. AI agents can find and call it through the Apify MCP server.

**How far back do closing lines go?**
The closing-line and movement archive started on 20 Oct 2026 and grows every day (a live run for 20 Oct 2026
returned Pinnacle and paf closing rows for MLB and NFL games). Current odds cover the events the books list now. For
tennis results with market-average closing odds back to 2009, use the tennis Actor below.

**Which bookmakers are covered?**
Pinnacle and the Kambi book paf, the Polymarket and Kalshi prediction markets, and the BetExplorer market average
for closing lines. A Kambi price is never labelled Pinnacle, and edge is only computed against an exact Pinnacle
line.

### More from AxeForce

- [Tennis Scraper & API: ATP, WTA, ITF Results + Pinnacle Odds](https://apify.com/axeforce00/tennis-feed):
  fixtures, results, live scores, set-by-set scores, statistics and Pinnacle odds for ATP, WTA, Challenger and ITF,
  one row per match, history since January 2009. $1 per 1,000 match rows.
- Apify docs: [run an Actor through the API](https://docs.apify.com/api/v2),
  [integrations](https://docs.apify.com/platform/integrations), [Apify MCP server](https://docs.apify.com/mcp).

# Actor input Schema

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

Which odds to return. current (default): latest pre-match and live prices; the first 100 rows of each run are free, then $0.0015 per row. closing: finalized closing lines (isClosing=true, with opening price and movement) for dateFrom..dateTo, archive since 20 Oct 2026, $0.003 per row, no free rows. movement: opening to current price history of the eventIds you pass, $0.0015 per row after 100 free. Polling every minute? Use the Standby URL ($0.001 per request plus platform usage).

## `sports` (type: `array`):

Sports to cover when leagues is empty. Valid values: soccer, tennis, basketball, baseball, ice_hockey, american_football. Default: soccer. Ignored when leagues is set, because each league code already names its sport.

## `leagues` (type: `array`):

Leagues by code (sport.league), e.g. soccer.epl, basketball.nba, american_football.nfl, ice_hockey.nhl, tennis.atp. Default (empty): every league of the chosen sports. Setting leagues overrides sports. A league out of season returns no rows and costs nothing.

## `books` (type: `array`):

Bookmakers. pinnacle: the sharp book (fair odds, limits, cutoffAt). paf: the Kambi soft book; edgeVsSharpPct compares it with Pinnacle's same line. polymarket, kalshi: prediction markets (current odds). betexplorer_avg: market-average closing prices (closing mode). coolbet: only used by the fallback when paf fails. Default: pinnacle, paf. More books means more rows and a higher cost.

## `markets` (type: `array`):

Markets to include. Valid values: h2h (moneyline / match winner), h2h3 (1X2 three-way), spread (handicap), total (over/under), team_total_home, team_total_away. Default (empty): all markets. Fewer markets means fewer rows and a lower cost.

## `mainOnly` (type: `boolean`):

true (default): only each book's main line per market. false: alternate lines too, about 3x more rows and cost (Premier League, Pinnacle only, 10 Nov 2026: 440 main-line rows, 1,482 with alternates).

## `includeProps` (type: `boolean`):

true: also return Pinnacle player, game and team props (e.g. a player's receiving yards over/under) as separate prop rows, $0.001 per prop row with no free allowance. Odds rows keep their price and their 100 free rows. Default: false.

## `propTypes` (type: `array`):

Only used with includeProps. Valid values: player_prop, game_prop, team_prop. Default: all three.

## `propPlayers` (type: `array`):

Only used with includeProps: keep props whose player name contains one of these case-insensitive texts, e.g. ferguson or tatum. Game props have no player and are dropped when this is set. At most 20. Default: all players.

## `live` (type: `boolean`):

true: only in-play prices. false: only pre-match prices. Default (unset): both.

## `date` (type: `string`):

mode=current only: only events starting on this UTC day, YYYY-MM-DD (e.g. 2026-11-15). Default: every listed event.

## `dateFrom` (type: `string`):

mode=closing: first day of the closing-line range, UTC, YYYY-MM-DD. The archive starts on 2026-10-20. Default: the start of the archive. Set dateFrom and dateTo to bound the range and the cost ($0.003 per closing row).

## `dateTo` (type: `string`):

mode=closing: last day of the closing-line range, inclusive, UTC, YYYY-MM-DD. Default: no end (up to the latest finalized match).

## `since` (type: `integer`):

mode=current change-only polling: return only rows changed after this revision number. Pass nextSince from the previous run's OUTPUT record. Default (unset): all rows. Needs API mode, the normal mode on Apify.

## `eventIds` (type: `array`):

Required for mode=movement, ignored otherwise: eventKey values (integers) from earlier odds rows, e.g. "88213". Each event returns its opening to current price history.

## `maxRows` (type: `integer`):

Maximum rows per run (odds and prop rows together), so it caps the cost. Default 50, which stays inside the 100 free odds rows. One league's main-line board is usually a few hundred rows (Premier League, 10 Nov 2026: 490 rows, (490 - 100) x $0.0015 = $0.585). Charging also stops at the run's maximum charge. Standby requests are not limited by this sample default.

## `maxLeagues` (type: `integer`):

Fallback (direct) mode only, which is rarely used on Apify: the most leagues fetched per run (1-40, default 6). Leagues beyond the cap are named in the run output.

## Actor input object example

```json
{
  "mode": "current",
  "sports": [
    "soccer"
  ],
  "leagues": [
    "soccer.epl"
  ],
  "books": [
    "pinnacle",
    "paf"
  ],
  "mainOnly": true,
  "includeProps": false,
  "propTypes": [
    "player_prop",
    "game_prop",
    "team_prop"
  ],
  "maxRows": 50,
  "maxLeagues": 1
}
```

# Actor output Schema

## `odds` (type: `string`):

Dataset items: Pinnacle and Kambi odds, no-vig probabilities, edge vs the sharp fair line, closing lines or movement.

## `runSummary` (type: `string`):

JSON run summary: ok/reason, rows pushed, free rows, charged events, source health, partial flag and nextSince.

# 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 = {
    "mode": "current",
    "sports": [
        "soccer"
    ],
    "leagues": [
        "soccer.epl"
    ],
    "books": [
        "pinnacle",
        "paf"
    ],
    "maxRows": 50,
    "maxLeagues": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("axeforce00/odds-feed").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 = {
    "mode": "current",
    "sports": ["soccer"],
    "leagues": ["soccer.epl"],
    "books": [
        "pinnacle",
        "paf",
    ],
    "maxRows": 50,
    "maxLeagues": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("axeforce00/odds-feed").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 '{
  "mode": "current",
  "sports": [
    "soccer"
  ],
  "leagues": [
    "soccer.epl"
  ],
  "books": [
    "pinnacle",
    "paf"
  ],
  "maxRows": 50,
  "maxLeagues": 1
}' |
apify call axeforce00/odds-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axeforce00/odds-feed"
        }
    }
}
```

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/9Q5yGDPkV0Bz1RAxk/builds/RVwg6VuEb8E8IY4DB/openapi.json
