realtimesportsapi-com Odds API

Current betting lines and line history (single source book)

Operations 2

GET /sports/{sport}/leagues/{league}/events/{eventId}/odds Get current odds #
GET /sports/{sport}/leagues/{league}/events/{eventId}/odds/history Get odds history #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/realtimesportsapi-com:realtimesportsapi-com-odds-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

realtimesportsapi-com-odds-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Realtimesportsapi Com Odds API
  version: 1.0.0
  contact:
    name: Realtime Sports API support
    email: austin@elcodev.com
    url: https://www.realtimesportsapi.com/?utm_source=openapi
  license:
    name: Proprietary
    url: https://www.realtimesportsapi.com/terms?utm_source=openapi
  termsOfService: https://www.realtimesportsapi.com/terms?utm_source=openapi
  description: 'Operations tagged Odds across 2 of this provider''s published API definitions: original.json, realtimesportsapi-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.realtimesportsapi.com/api/v1
  description: Production
security:
- BearerAuth: []
- ApiKeyHeader: []
tags:
- name: Odds
  description: Current betting lines and line history (single source book)
paths:
  /sports/{sport}/leagues/{league}/events/{eventId}/odds:
    get:
      operationId: getEventOdds
      tags:
      - Odds
      summary: Get current odds
      description: Current spread, moneyline and total from a single source book. `data` is null (with a `message`) when no odds are available.
      parameters:
      - name: sport
        in: path
        required: true
        description: 'Sport slug: football, basketball, baseball, hockey, soccer.'
        schema:
          type: string
          example: football
      - name: league
        in: path
        required: true
        description: League slug, e.g. nfl, college-football, nba, mens-college-basketball, mlb, nhl, eng.1, usa.1.
        schema:
          type: string
          example: nfl
      - name: eventId
        in: path
        required: true
        description: Event (game) id, as returned by the events endpoints.
        schema:
          type: string
          example: '401772982'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type:
                    - object
                    - 'null'
                    allOf:
                    - $ref: '#/components/schemas/Odds'
                  message:
                    type: string
                    example: Odds not available for this event
                required:
                - success
                - data
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://www.realtimesportsapi.com/api/v1
      description: Production
  /sports/{sport}/leagues/{league}/events/{eventId}/odds/history:
    get:
      operationId: getEventOddsHistory
      tags:
      - Odds
      summary: Get odds history
      description: Snapshots recorded each time the line changed, newest first.
      parameters:
      - name: sport
        in: path
        required: true
        description: 'Sport slug: football, basketball, baseball, hockey, soccer.'
        schema:
          type: string
          example: football
      - name: league
        in: path
        required: true
        description: League slug, e.g. nfl, college-football, nba, mens-college-basketball, mlb, nhl, eng.1, usa.1.
        schema:
          type: string
          example: nfl
      - name: eventId
        in: path
        required: true
        description: Event (game) id, as returned by the events endpoints.
        schema:
          type: string
          example: '401772982'
      - name: limit
        in: query
        required: false
        description: Maximum snapshots to return (default 100).
        schema:
          type: integer
          example: 100
          default: 100
          minimum: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/OddsHistoryEntry'
                required:
                - success
                - data
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://www.realtimesportsapi.com/api/v1
      description: Production
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              example: MISSING_TOKEN
            message:
              type: string
              example: Authorization required
            hint:
              type: string
              example: 'Use Authorization: Bearer <your-api-key> or X-API-Key: <your-api-key>.'
          required:
          - code
          - message
      required:
      - success
      - error
    OddsHistoryEntry:
      type: object
      properties:
        odds:
          $ref: '#/components/schemas/Odds'
        timestamp:
          type: string
          format: date-time
        changeType:
          type: array
          items:
            type: string
            example: spread
    Odds:
      type: object
      properties:
        provider:
          type: string
          description: Name of the single source book.
        spread:
          type:
          - object
          - 'null'
          properties:
            line:
              type: number
              example: -3.5
            home:
              type: number
              example: -110
            away:
              type: number
              example: -110
        moneyline:
          type:
          - object
          - 'null'
          properties:
            home:
              type: number
              example: -180
            away:
              type: number
              example: 150
        overUnder:
          type:
          - object
          - 'null'
          properties:
            total:
              type: number
              example: 48.5
            over:
              type: number
              example: -110
            under:
              type: number
              example: -110
        updatedAt:
          type: string
          format: date-time
  responses:
    RateLimitExceeded:
      description: 'Too many requests: either the monthly quota is exhausted (code RATE_LIMIT_EXCEEDED; upgrade or enable overage) or the plan''s per-second rate was exceeded (code RATE_LIMIT_PER_SECOND; Free 1/s, Starter 5/s, Growth 10/s, Pro 20/s, Scale 100/s). Wait for `Retry-After` seconds.'
      headers:
        Retry-After:
          description: Seconds until you may retry.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: 'Missing, malformed, unknown or expired API key (codes: MISSING_TOKEN, USER_NOT_FOUND, TRIAL_EXPIRED).'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Unexpected error. Safe to retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key from the dashboard: `Authorization: Bearer <api key>`. Keys are opaque strings, not JWTs.'
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: Alternative to the Authorization header (useful behind proxies that strip Authorization).
externalDocs:
  description: Guides, WebSocket and webhook docs
  url: https://www.realtimesportsapi.com/docs?utm_source=openapi
x-refined-from:
- original.json
- realtimesportsapi-com-openapi.json