# Find highest football odds: Optibet, OlyBet and Betsafe

**Use case:** 

Find the highest available pre-match football 1x2 odds across Optibet, OlyBet and Betsafe in Latvia. Returns best-priced selections for up to 10 matched events, keeping tied bookmakers. Search for a match or team and choose a selection, or leave both blank for all outcomes. Add a stake for potential returns if it wins. Up to 90 rows ($0.09).

## Input

```json
{
  "country": "lv",
  "sports": [
    "football"
  ],
  "eventQuery": "",
  "selection": "",
  "bestOddsOnly": true,
  "stake": 0,
  "useBrowserFallback": false,
  "matchedOnly": true,
  "bookmakers": [
    "optibet",
    "olybet",
    "betsafe"
  ],
  "competitions": [],
  "hoursAhead": 24,
  "markets": [
    "1x2"
  ],
  "includeComparison": true,
  "maxEvents": 10,
  "includeVirtuals": false,
  "includeReference": false,
  "marketsBySport": {},
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "LV"
  },
  "maxRows": 90
}
```

## Output

```json
{
  "event_name": {
    "label": "Event name"
  },
  "start_time": {
    "label": "Start time"
  },
  "selection_name": {
    "label": "Selection name"
  },
  "bookmaker": {
    "label": "Bookmaker"
  },
  "market": {
    "label": "Market"
  },
  "line": {
    "label": "Line"
  },
  "market_scope": {
    "label": "Market scope"
  },
  "odds_decimal": {
    "label": "Odds decimal"
  },
  "books_compared": {
    "label": "Books compared"
  },
  "stake_amount": {
    "label": "Stake amount"
  },
  "potential_return": {
    "label": "Potential return"
  },
  "potential_profit": {
    "label": "Potential profit"
  },
  "scraped_at": {
    "label": "Scraped at"
  },
  "event_url": {
    "label": "Event url"
  },
  "is_best_odds": {
    "label": "Is best odds"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Baltic & Latvian Sports Odds: Optibet, OlyBet, Betsafe, Pafbet Actor is ready to run with the inputs already set for "Find highest football odds: Optibet, OlyBet and Betsafe". [Sign up or log in](https://console.apify.com/create-task-from-example/IetGSivgBdBXtsImV) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find highest football odds: Optibet, OlyBet and Betsafe" task

The Baltic & Latvian Sports Odds: Optibet, OlyBet, Betsafe, Pafbet Actor will start running based on the input automatically. You can also change all the input fields, like country, sports, and more, to match your specific use case.

### 3. Receive the "Find highest football odds: Optibet, OlyBet and Betsafe" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as event name, start time, selection name, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Find highest football odds: Optibet, OlyBet and Betsafe" task via API](https://apify.com/stacklark/baltic-bookmaker-odds.md).

## FAQ

### How much does this example cost?

Only saved rows are charged at $0.001 each. This preset has a 90-row ceiling and $0.09 maximum-charge setting. Tied highest prices can create several rows. Editing the input or spending limit can change the total.

### How do I find the best price for one team?

Enter both teams separated by vs in Match or team, then the team to win in Selection or team. Leave both blank for all selections. The fixture must be inside Hours ahead (24 by default, up to 168). No guessed aliases or typo correction.

### Why is there only one bookmaker for a match?

The task compares collected country sources first, then returns only highest-priced selections. Ties are kept. books_compared shows coverage for that selection; unavailable or unselected sources are excluded. Check RUN_SUMMARY for failures.

### How are potential returns calculated?

A positive stake adds total return including stake and profit excluding stake, in the same units, rounded to two decimals. Both assume the selection wins in full at the recorded odds. Taxes, fees and split/push payouts are not modelled.

### Are these live odds, and do I need a Latvian IP?

Upcoming pre-match snapshots, not in-play streaming. Prices can change; check scraped_at. Keep the default Latvia residential fallback for sources that need it. The task runs in Apify cloud, independently of your home IP.

## About this Actor

This example demonstrates how to use [Baltic & Latvian Sports Odds: Optibet, OlyBet, Betsafe, Pafbet](https://apify.com/stacklark/baltic-bookmaker-odds.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/stacklark/baltic-bookmaker-odds.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/stacklark/baltic-bookmaker-odds.md

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`).
