Peru Liga 1 prices from the same endpoint as every other tournament we carry. tournamentId 406, sportId 10.
Measured live at 2026-11-23 04:20 UTC. This page is regenerated from the API, so the numbers move.
Quick start: Peru Liga 1 closing prices from the last round
This tournament is between seasons, so the example reads the last played fixtures and their closing prices. Copy it as it stands. It was run against the live API before this page rendered.
import datetime as dt
import time
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.oddspapi.io/v4"
def get(path, params):
"""The key is the query parameter apiKey, never a header.
Read the status code first: a 429 body is valid JSON too."""
query = dict(params, apiKey=API_KEY)
for attempt in range(3):
response = requests.get(f"{BASE_URL}/{path}", params=query, timeout=180)
if response.status_code == 429:
time.sleep(5 * (attempt + 1))
continue
if response.status_code == 404:
return None
response.raise_for_status()
return response.json()
raise RuntimeError("rate limited on /" + path)
# tournamentId filters /v4/fixtures and lifts the 10 day range cap. This
# window covers the last round the tournament played.
fixtures = get("fixtures", {
"tournamentId": 406,
"from": "2026-11-13",
"to": "2026-11-23",
}) or []
# The same bet ships under more than one market id on several sports, so
# resolve the result market from /v4/markets by name and read every id that
# maps to it. Reading one id drops part of the board.
MAIN_MARKET_IDS = ["101"]
# Between seasons nothing is ahead of us, so read the last played fixtures.
# /historical-odds keeps the board after the final whistle. It takes at most
# three bookmaker slugs, and each price is a list of snapshots.
played = sorted(
(f for f in fixtures if f["statusName"] == "Finished"),
key=lambda f: f["startTime"], reverse=True,
)
print(len(played), "played Peru Liga 1 fixtures")
for fixture in played[:5]:
history = get("historical-odds", {
"fixtureId": fixture["fixtureId"],
"bookmakers": "pinnacle,bet365,draftkings",
})
books = (history or {}).get("bookmakers") or {}
printed = False
for slug, board in books.items():
for market_id in MAIN_MARKET_IDS:
market = board["markets"].get(market_id)
if not market:
continue
# The closing price is the last active snapshot before the start.
# Snapshots run past the start, so cut on createdAt.
closing = {}
for outcome_id, leg in market["outcomes"].items():
snaps = sorted(
(s for s in leg["players"]["0"]
if s["active"] is not False
and s["createdAt"] < fixture["startTime"]),
key=lambda s: s["createdAt"],
)
if snaps:
closing[outcome_id] = snaps[-1]["price"]
if closing:
print(fixture["participant1Name"], "v",
fixture["participant2Name"], slug, market_id, "close", closing)
printed = True
if printed:
break
time.sleep(4.6)
Run against the live API at 2026-11-23 04:35 UTC. First line of output: 9 played Peru Liga 1 fixtures
Bookmakers pricing Peru Liga 1
Board last measured 2026-11-22 on Sporting Cristal v Cienciano: 219 bookmakers quoted, 76 independent prices. Identical price tuples are grouped before the second count, because distinct slugs publish the same price and cloneOf does not track that.
and 68 more on https://oddspapi.io/sportsbooks
Counted from one /v4/odds call with no bookmaker filter, on the main result market for the sport. Regional feeds of one brand are shown once and link to that brand.
Market families
Read off /v4/markets and filtered on the sport. A family that carries many market ids is a ladder, with one id per line, so resolve a market on its name and collect every id that maps to it.
| Market family | Market ids | Type |
|---|---|---|
| Full Time Result | 1 | Match market |
| Over Under (incl. overtime and penalties) | 68 | Match market |
| Over Under Full Time | 68 | Match market |
| Over Under Overtime | 30 | Match market |
| Over Under First Half | 26 | Match market |
| Over Under Second Half | 26 | Match market |
| Asian Handicap | 49 | Match market |
| Asian Handicap First Half | 41 | Match market |
| Asian Handicap Second Half | 41 | Match market |
| Asian Handicap (incl. overtime and penalties) | 25 | Match market |
| Asian Handicap Overtime | 17 | Match market |
| European Handicap Overtime | 17 | Match market |
Read the study
Football Odds API: soccer data guide. The write-up behind these numbers, with the code that produced them.
Other Football tournaments
Questions developers ask
What is the Peru Liga 1 tournamentId?
406, on sportId 10. Confirm it against /v4/tournaments?sportId=10 before you hardcode it; the endpoint returns the id, the slug and the count of scheduled fixtures on one object.
How many bookmakers price a Peru Liga 1 fixture?
219 bookmakers quoted Sporting Cristal v Cienciano, and those group into 76 independent prices once identical price tuples are collapsed, last measured 2026-11-22. Group the tuples before you average, because distinct slugs publish the same price.
How far ahead can I pull Peru Liga 1 fixtures?
3 fixtures were scheduled at 2026-11-23 04:20 UTC. /v4/fixtures caps the from and to range under 10 days when sportId is the only filter, and adding tournamentId lifts that cap.
Pull the Peru Liga 1 board yourself
The free tier reads the same endpoints as the paid one. Pass tournamentId=406 and the payload drops about 20x against a sport wide call.