> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape Action Network betting odds for a league

> Returns one league's `games` from Action Network: `status`, `startTime`, the `home` and `away` teams, the `score` once played, `consensus` and `opening` lines, the `publicBetting` split (percent of tickets and of money per side), and `odds`: each book's moneyline, spread and total with `american` and `decimal` prices and the `line` where one applies. `best` is the top moneyline price per side across sportsbooks; prediction markets carry `exchange: true` and are left out of it. Use `date` for another day and `books` to pick books by name or id; for leagues the site lists by week (NFL, college football) `date` returns that whole week. A day with no games returns an empty `games` array and a `message`.



## OpenAPI

````yaml /api-reference/openapi.json post /sports/actionnetwork-odds
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Documented here:
    page-source extraction, Google SERP scraping, image fetch, and the dedicated
    plugin endpoints (search engines, marketplaces, reviews, travel, social and
    more). All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /sports/actionnetwork-odds:
    post:
      tags:
        - Plugins
      summary: Scrape Action Network betting odds for a league
      description: >-
        Returns one league's `games` from Action Network: `status`, `startTime`,
        the `home` and `away` teams, the `score` once played, `consensus` and
        `opening` lines, the `publicBetting` split (percent of tickets and of
        money per side), and `odds`: each book's moneyline, spread and total
        with `american` and `decimal` prices and the `line` where one applies.
        `best` is the top moneyline price per side across sportsbooks;
        prediction markets carry `exchange: true` and are left out of it. Use
        `date` for another day and `books` to pick books by name or id; for
        leagues the site lists by week (NFL, college football) `date` returns
        that whole week. A day with no games returns an empty `games` array and
        a `message`.
      operationId: actionnetwork_odds_sports_actionnetwork_odds_post
      parameters:
        - name: league
          in: query
          required: true
          schema:
            type: string
            description: >-
              League slug as used on actionnetwork.com, e.g. 'nba', 'nfl',
              'mlb', 'nhl', 'ncaaf', 'ncaab', 'soccer'.
            title: League
          description: >-
            League slug as used on actionnetwork.com, e.g. 'nba', 'nfl', 'mlb',
            'nhl', 'ncaaf', 'ncaab', 'soccer'.
        - name: date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Day to read, as YYYY-MM-DD. Defaults to the site's current view of
              the league.
            title: Date
          description: >-
            Day to read, as YYYY-MM-DD. Defaults to the site's current view of
            the league.
        - name: books
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Comma-separated sportsbooks by name or Action Network id, e.g.
              'draftkings,fanduel,79'. Defaults to the books the site shows for
              this league.
            title: Books
          description: >-
            Comma-separated sportsbooks by name or Action Network id, e.g.
            'draftkings,fanduel,79'. Defaults to the books the site shows for
            this league.
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE').
              Leave blank to let the API pick.
            title: Proxy Country
          description: >-
            Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE').
            Leave blank to let the API pick.
      responses:
        '200':
          description: JSON with a `games` array.
          content:
            application/json:
              schema: {}
        '400':
          description: Bad `league`, `date` or `books`, or an invalid proxy country.
        '404':
          description: Action Network has no such league.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Blocked, or the call did not finish in time.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.