You need to show a team’s tournament winner odds without combining bookmaker data by hand. By the end of this guide, you’ll have a working request for team winner odds, a Python example that reads the results, and the related endpoints for adding sports news to the same integration.
Getting started on Zyla API Hub
Zyla API Hub provides access to more than 10,000 public APIs through one account and API key. For this integration, open the FlashScore - Live API listing, create a free account if you need one, and select Subscribe or Start Free Trial when available. You’ll receive an API key to use with the endpoints.
The first API offers a 7-day trial or 50 requests. Access uses a subscription and quota rather than pay-per-call billing; check the API page for current access options and pricing. The listing link at the end of this article takes you to the trial page.
FlashScore - Live API can return a team’s odds of winning each tournament it plays in, with entries per bookmaker. It also provides team and player news. Those responses are useful for a sports dashboard that places tournament odds next to relevant editorial coverage.
Request team winner odds
Use Get Team Winner Odds to retrieve the tournament and bookmaker entries for a specific team. The endpoint uses HTTP GET:
https://zylalabs.com/api/12518/flashscore-live-api/40619/get-team-winner-odds
The request accepts these query parameters:
team_idis required. The example usesWtn9Stg0.geo_ip_codeis optional. The example usesGB.langis optional. The example usesen.
Replace YOUR_API_KEY with your Zyla API key. The request sends it in the Bearer authorization header:
curl -s -X GET "https://zylalabs.com/api/12518/flashscore-live-api/40619/get-team-winner-odds?team_id=Wtn9Stg0&geo_ip_code=GB&lang=en" \
-H "Authorization: Bearer YOUR_API_KEY"
The outer response is a list of tournaments. Each tournament has its own odds list, so render the tournament first and then its bookmakers. Avoid assuming that one request always returns one tournament or one bookmaker.
Read the result
The following is an excerpt of the documented response, containing the first two complete bookmaker entries:
[
{
"tournament_id": "SY30SsKF",
"name": "Premier League",
"image_path": "https://static.flashscore.com/res/image/data/rN76jpW1-naArgzhi.png",
"odds": [
{
"bookmaker_id": 16,
"bookmaker_name": "bet365",
"bookmaker_image": "https://static.flashscore.com/res/image/data/bookmakers/80-16.png",
"value": 17,
"change": "UP",
"is_best": false,
"is_active": true
},
{
"bookmaker_id": 1281,
"bookmaker_name": "BetMGM.uk",
"bookmaker_image": "https://static.flashscore.com/res/image/data/bookmakers/80-1281.png",
"value": 17,
"change": "UP",
"is_best": false,
"is_active": true
}
]
}
]
Use tournament_id and name to identify the tournament. Within odds, bookmaker_name identifies the provider and value is the returned odds value. The example also includes change, is_best and is_active; preserve those fields if your interface needs to display the supplied status rather than deriving it from the value.
The response includes image paths for the tournament and bookmakers. Keep the odds value and bookmaker name usable as text even if your interface does not display those images. The supplied example does not establish an odds format or a timestamp for each value, so don’t label it as a particular format or claim a precise update time without confirming that detail.
Call the endpoint from Python
This example uses the Python standard library. It makes the same request as the curl command, checks for an HTTP failure, and prints each tournament and its bookmaker entries.
import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = (
"https://zylalabs.com/api/12518/flashscore-live-api/40619/"
"get-team-winner-odds?team_id=Wtn9Stg0&geo_ip_code=GB&lang=en"
)
request = Request(
url,
headers={"Authorization": "Bearer YOUR_API_KEY"},
method="GET",
)
try:
with urlopen(request, timeout=30) as response:
tournaments = json.load(response)
except HTTPError as error:
raise SystemExit(f"API request failed: HTTP {error.code}") from error
except URLError as error:
raise SystemExit(f"Could not reach the API: {error.reason}") from error
for tournament in tournaments:
print(tournament.get("name"), tournament.get("tournament_id"))
for odds in tournament.get("odds", []):
print(
odds.get("bookmaker_name"),
odds.get("value"),
odds.get("change"),
odds.get("is_best"),
odds.get("is_active"),
)
The nested loops match the response structure: a tournament can contain several bookmaker records. Using get lets the display handle missing optional fields without turning them into invented values. In an application, keep the API key outside client-side code and make the request from a trusted server.
If you cache results, include the team, geographic code and language in your cache key so requests with different inputs don’t share the same entry. Choose a refresh policy appropriate to your product, and show users when your application last fetched the data rather than implying that the returned odds have a documented timestamp.
Add related sports news
The same API provides two news endpoints. They are separate requests from winner odds: use a team ID for team coverage and a player ID for player coverage.
Get Team News
Get Team News returns recent articles about a specific team, including title, link, image, source and publication time. It uses HTTP GET:
https://zylalabs.com/api/12518/flashscore-live-api/40618/get-team-news
The required parameter is team_id; lang is optional. For the team used in the odds request, the documented values are Wtn9Stg0 and en. Pass the same team ID when you want the news panel to correspond to the odds panel.
This excerpt contains the first two complete articles in the documented response:
[
{
"title": "‘My Next Step Will Be A National Team’ — Guardiola",
"url": "https://www.flashscore.com/newsfeed/djDDsiQb/",
"image_url": "https://livesport-ott-images.ssl.cdn.cra.cz/r300x225q60/0e9e4ace-a090-4eed-b40e-ed22b6b0ef3c.jpeg",
"source": "Completesports",
"published_at": 1795674062,
"is_flashscore_news": false
},
{
"title": "Four Man City changes that are costing Enzo Maresca in every game",
"url": "https://www.flashscore.com/newsfeed/65xQvzhR/",
"image_url": "https://livesport-ott-images.ssl.cdn.cra.cz/r300x225q60/b2a40dc7-ca92-48d1-8d4c-0ed430bae2c3.jpeg",
"source": "Manchester Evening News",
"published_at": 1795672800,
"is_flashscore_news": false
}
]
Use title and url for the article link and source for attribution. The response also supplies published_at and is_flashscore_news. Confirm the timestamp representation before converting it for display; the example alone should not be used to infer a timezone or unit.
Get Player News
Get Player News returns recent articles about a specific player, again with title, link, image, source and publication time. It uses HTTP GET:
https://zylalabs.com/api/12518/flashscore-live-api/40617/get-player-news
The required parameter is player_id, with dMPo6IPH as the documented example. lang is optional, and the example value is en.
The documented response is:
[
{
"title": "What Al Hilal must do to cause a huge upset against Manchester City in the Club World Cup",
"url": "https://www.flashscore.com/newsfeed/GUrbNtBL/",
"image_url": "https://livesport-ott-images.ssl.cdn.cra.cz/r300x225q60/454eba51-f3f4-470d-abed-87fae44b6725.jpeg",
"source": "Flashscore News",
"published_at": 1751293596,
"is_flashscore_news": true
}
]
A team page can show team news alongside odds, while a player profile can use player news for its own feed. Keep the identifiers separate: the winner-odds request needs a team ID, not the player ID used by this endpoint.
Check available languages
Get Languages is a separate HTTP GET endpoint in FlashScore - Live API. It returns language codes, names and associated websites. The listing provides this request:
curl -s -X GET "https://zylalabs.com/api/12518/flashscore-live-api/42276/get-languages" \
-H "Authorization: Bearer YOUR_API_KEY"
The listing’s response example is truncated after the entries shown here:
[
{
"code": "en",
"name": "English",
"website": "https://www.flashscore.com/"
},
{
"code": "en-gb",
"name": "English (United Kingdom)",
"website": "https://www.flashscore.co.uk/"
},
{
"code": "en-us",
"name": "English (United States)",
"website": "https://www.flashscoreusa.com/"
},
{
"code": "en-ca",
"name": "English (Canada)",
"website": "https://www.flashscore.ca/"
},
{
"code": "en-in",
"name": "English (India)",
"website": "https://www.flashscore.in/"
},
{
"code": "en-ae",
"name": "English (United Arab Emirates)",
"website": "https://www.flashscore.info/"
},
{
"code": "bg",
"name": "Bulgarian",
"website": "https://www.flashscore.bg/"
},
{
"code": "cs",
"name": "Czech",
"website": "https://www.livesport.cz/"
},
{
"code": "da",
"name": "Danish",
"website": "https://www.flashscore.dk/"
},
{
"code": "de",
"name": "German",
"website": "https://www.flashscore.de/"
},
{
"code": "de-at",
"name": "German (Austria)",
"website": "https://www.flashscore.at/"
},
{
"code": "el",
"name": "Greek",
"website": "https://www.flashscore.gr/"
},
{
"code": "es",
"name": "Spanish",
"website": "https://www.flashscore.es/"
},
{
"code": "es-ar",
"name": "Spanish (Argentina)",
"website": "https://www.flashscore.com.ar/"
},
{
"code": "es-cl",
"name": "Spanish (Chile)",
"website": "https://www.flashscore.cl/"
},
{
"code": "es-co",
"name": "Spanish (Colombia)",
"website": "https://www.flashscore.co/"
},
{
"code": "es-mx",
"name": "Spanish (Mexico)",
"website": "https://www.flashscore.com.mx/"
},
{
"code": "es-pe",
"name": "Spanish (Peru)",
"website": "https://www.flashscore.pe/"
},
{
"code": "fi",
"name": "Finnish",
"website": "https://www.flashscore.fi/"
},
{
"code": "fr",
"name": "French",
"website": "https://www.flashscore.fr/"
},
{
"code": "hr",
"name": "Croatian",
"website": "https://www.rezultati.com/"
},
{…
For a language selector, code is the machine-readable value and name is the display label; website is the associated site. The winner-odds example uses en. Keep language selection separate from geo_ip_code, since they are distinct request parameters.
Use an AI agent
You can also call Zyla API Hub APIs from an agent through MCP. The endpoint works with Claude Code, Cursor, Windsurf and other MCP-compatible clients.
Configure your client with https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, replacing the key placeholder with your own key. An agent can then use the available API tools to retrieve team winner odds for a team ID. Treat the key in that URL as a credential and keep the client configuration private.
FAQ
What identifier do I need for team winner odds?
You need the required team_id. The documented request uses Wtn9Stg0; geo_ip_code and lang are optional.
Does the response contain odds for multiple bookmakers?
Yes. Each tournament has an odds list with bookmaker entries. The documented excerpt includes names, values and status fields for more than one bookmaker.
Can I add news to the same team page?
Yes. Get Team News accepts the same kind of team ID and returns article details. Get Player News is a separate endpoint that requires a player ID.
How do I access the API?
Create an account on Zyla API Hub, open the listing and subscribe or start a trial when available. Send your API key as a Bearer token in requests to the Hub endpoint.
Ready to build the odds panel? Create a free account, get your API key and Start 7-day trial on FlashScore - Live API. Check the listing for current access options and pricing before integrating.