---
title: "Closing price and line per bookmaker, with the consensus"
method: GET
path: "/v1/sports/{sport_key}/closing-lines"
tags: ["Sports"]
---

# Closing price and line per bookmaker, with the consensus

`GET /v1/sports/{sport_key}/closing-lines`

## Request

- Base URL: `https://api.puntersedge.online`
- URL: `https://api.puntersedge.online/v1/sports/{sport_key}/closing-lines`
- Auth: API key in header `X-API-Key`

Cost: 5 credits. Paid tiers only — 403 on Free and Hobby.

One row per match that started in the range. For each bookmaker: the last head-to-head
price, handicap line and total we recorded before the start — the closing snapshot, taken
within about ten minutes of the first bounce. Then a consensus across those books: the
median closing price on head-to-head, and on the line and total markets the most common
closing line with the median price at that exact line.

`home_point`/`away_point` are the handicap on each side (-6.5 / +6.5) on the spreads
market and the total on both sides of the totals market, where Over is the home side and
Under the away side. The lines exist from 2026-09-29; rows recorded before that carry
prices only. AFL and AFLW price history is kept permanently, so their closes accumulate
season on season; every other sport is a rolling 90-day window. Betfair is never included.
An unknown `sport_key`, a backwards range or a range over 92 days is an error and costs
nothing.

## Path parameters

- `sport_key` string, required

## Query parameters

- `from` string, nullable: ISO date/time. Matches that START on or after this; defaults to 7 days ago.
- `to` string, nullable: ISO date/time. Matches that start on or before this; defaults to now. At most 92 days after `from` — page by month for a season.
- `bookmakers` string, nullable: Comma-separated bookmaker keys, case-insensitive. An unrecognised key is a free 422 naming the valid keys.

## Headers

- `X-API-Key` string
- `X-RapidAPI-Proxy-Secret` string

## Response `200`

Successful Response

- unknown

## Other responses

- `401`: Missing or invalid API key. Send `X-API-Key`. See https://puntersedge.online/developers/errors
- `402`: Monthly credit allowance exhausted for this plan. Upgrade at https://puntersedge.online/api/pricing
- `422`: Validation Error
- `429`: Rate limit exceeded for this plan. Honour the `Retry-After` header (seconds) before retrying. See https://puntersedge.online/developers/rate-limits
- `500`: Unexpected server error. Safe to retry with backoff.

---

[API](https://skmtc.dev/puntersedge/apis/puntersedge-odds-api.md) · [All operations](https://skmtc.dev/puntersedge/apis/puntersedge-odds-api/llms.txt) · [OpenAPI document](https://skmtc.dev/puntersedge/apis/puntersedge-odds-api/revisions/f35b6aab1946?raw)
