Historical

Import Customer Closing Lines

Bring-your-own historical closing lines (Pro tier+).

Stores rows in a per-customer namespace (customer_imported_closing_lines table, isolated by your api_key). The public historical archive (historical_odds) is read-only via this endpoint — you can only see / delete YOUR OWN imports. Other customers' imports are invisible to you and yours to them.

Query your imports back through the standard GET /v1/historical/sports/{sport_key}/closing-odds?include_imports=true endpoint.

Cost: 1 credit per 1,000 rows submitted (rounded up). Idempotent: re-submitting the same row is a no-op via ON CONFLICT DO NOTHING.

Tier gate: Pro+ (iteration_019 #197 — free-tier was accepted at auth but the use case is paid-customer-only, so we gate explicitly).

Example body:

[
  {
    "game_date": "2025-08-15",
    "sport_key": "baseball_mlb",
    "home_team": "Detroit Tigers",
    "away_team": "Texas Rangers",
    "source": "fanduel",
    "player_name": "Tarik Skubal",
    "market_key": "player_strikeouts",
    "line": 7.5,
    "over_price": -118,
    "under_price": -102
  }
]
post/v1/historical/closing-lines/import

Request

  • Base URL: https://parlay-api.com
  • URL: https://parlay-api.com/v1/historical/closing-lines/import
  • Auth: one of:
    • API key in header X-API-Key
    • API key in query parameter apiKey
    • HTTP bearer

Request body

object[] required

Array of closing-line rows. Each row must have at minimum: game_date (YYYY-MM-DD), sport_key, home_team, away_team, source, market_key, line. Optional: commence_time, player_name, market_label, over_price, under_price, raw_json.

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.