# MLB betting odds: run line, total and moneyline

**Use case:** 

One row per bookmaker price on an MLB game: both teams, the venue, the first-pitch time, the game state, the bookmaker, the run line, the total, and the moneyline for each side. Opening and current prices are both returned, so the move is in the row rather than something you have to compute. A game a bookmaker has not priced comes back with the reason and is not charged.

## Input

```json
{
  "leagues": [
    "mlb"
  ],
  "date": "",
  "maxGames": 40,
  "maxPrices": 200,
  "monitoringMode": false,
  "resetMonitoringState": false,
  "providers": [],
  "teams": [],
  "gameStates": [],
  "onlyMoved": false,
  "minSpreadMove": 0,
  "onlyFavoriteFlips": false,
  "requireMoneyLine": false,
  "keywords": [],
  "keywordMatch": "any",
  "excludeKeywords": [],
  "useProxy": false
}
```

## Output

```json
{
  "league": {
    "label": "League",
    "format": "string"
  },
  "gameDate": {
    "label": "Game Date",
    "format": "string"
  },
  "homeTeam": {
    "label": "Home Team",
    "format": "string"
  },
  "awayTeam": {
    "label": "Away Team",
    "format": "string"
  },
  "provider": {
    "label": "Provider",
    "format": "string"
  },
  "spread": {
    "label": "Spread",
    "format": "string"
  },
  "overUnder": {
    "label": "Over Under",
    "format": "string"
  },
  "homeMoneyLine": {
    "label": "Home Money Line",
    "format": "string"
  },
  "awayMoneyLine": {
    "label": "Away Money Line",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "gameId": {
    "label": "Game Id",
    "format": "string"
  },
  "leagueName": {
    "label": "League Name",
    "format": "string"
  },
  "sport": {
    "label": "Sport",
    "format": "string"
  },
  "gameName": {
    "label": "Game Name",
    "format": "string"
  },
  "gameShortName": {
    "label": "Game Short Name",
    "format": "string"
  },
  "gameStatus": {
    "label": "Game Status",
    "format": "string"
  },
  "gameState": {
    "label": "Game State",
    "format": "string"
  },
  "isCompleted": {
    "label": "Is Completed",
    "format": "string"
  },
  "venue": {
    "label": "Venue",
    "format": "string"
  },
  "venueCity": {
    "label": "Venue City",
    "format": "string"
  },
  "homeTeamId": {
    "label": "Home Team Id",
    "format": "string"
  },
  "homeTeamAbbreviation": {
    "label": "Home Team Abbreviation",
    "format": "string"
  },
  "awayTeamId": {
    "label": "Away Team Id",
    "format": "string"
  },
  "awayTeamAbbreviation": {
    "label": "Away Team Abbreviation",
    "format": "string"
  },
  "providerId": {
    "label": "Provider Id",
    "format": "string"
  },
  "details": {
    "label": "Details",
    "format": "string"
  },
  "homeSpreadOdds": {
    "label": "Home Spread Odds",
    "format": "string"
  },
  "awaySpreadOdds": {
    "label": "Away Spread Odds",
    "format": "string"
  },
  "overOdds": {
    "label": "Over Odds",
    "format": "string"
  },
  "underOdds": {
    "label": "Under Odds",
    "format": "string"
  },
  "openSpread": {
    "label": "Open Spread",
    "format": "string"
  },
  "openOverUnder": {
    "label": "Open Over Under",
    "format": "string"
  },
  "openHomeMoneyLineDecimal": {
    "label": "Open Home Money Line Decimal",
    "format": "string"
  },
  "openAwayMoneyLineDecimal": {
    "label": "Open Away Money Line Decimal",
    "format": "string"
  },
  "currentHomeMoneyLineDecimal": {
    "label": "Current Home Money Line Decimal",
    "format": "string"
  },
  "currentAwayMoneyLineDecimal": {
    "label": "Current Away Money Line Decimal",
    "format": "string"
  },
  "spreadMove": {
    "label": "Spread Move",
    "format": "string"
  },
  "totalMove": {
    "label": "Total Move",
    "format": "string"
  },
  "homeMoneyLineMove": {
    "label": "Home Money Line Move",
    "format": "string"
  },
  "awayMoneyLineMove": {
    "label": "Away Money Line Move",
    "format": "string"
  },
  "homeIsFavorite": {
    "label": "Home Is Favorite",
    "format": "string"
  },
  "homeWasFavoriteAtOpen": {
    "label": "Home Was Favorite At Open",
    "format": "string"
  },
  "favoriteFlipped": {
    "label": "Favorite Flipped",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "string"
  },
  "oddsKey": {
    "label": "Odds Key",
    "format": "string"
  },
  "searchUrl": {
    "label": "Search Url",
    "format": "string"
  },
  "note": {
    "label": "Note",
    "format": "string"
  },
  "pricesRead": {
    "label": "Prices Read",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Sports Betting Odds Scraper & Line Move Monitor - NFL, MLB, NBA](https://apify.com/neverempty/sports-betting-odds-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/neverempty/sports-betting-odds-scraper.md) to learn more, explore other use cases, and run it yourself.


## 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.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/neverempty/sports-betting-odds-scraper.md

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
