Building a sports selector is difficult when you do not have a reliable list of sport IDs to pass to the rest of your integration. By the end of this guide, you will be able to retrieve the available sports, use a returned ID to find historical championships, and identify the related endpoints for finished matches and team lineups.
The 1xBet API on Zyla API Hub returns a sports catalog alongside championship history, match results and squad information. It is useful for sports dashboards, historical-results browsers and applications that need a sport selector before querying championship data.
Getting started on Zyla API Hub
Open the 1xBet API marketplace page linked at the end of this article and create a free Zyla account if you do not have one. On the API page, click Subscribe or Start Free Trial when available, then get your API key to call the endpoints.
Zyla uses subscriptions and quotas rather than pay-per-call billing. The first API access option is a 7-day trial or 50 requests; check the API page for current access options and pricing. The Hub has more than 10,000 public APIs, accessible through one account and API key.
Get the available sports
The All available sports endpoint returns sports with IDs, names and associated image fields. The documented request uses GET and supplies lang=en:
curl -s -X GET "https://zylalabs.com/api/14965/1xbet-api/39257/all-available-sports?lang=en" \
-H "Authorization: Bearer YOUR_API_KEY"
Replace YOUR_API_KEY with your Zyla API key. The official response example below is truncated in the published sample; it shows the first sport object and part of the second, rather than a complete JSON document.
[
{
"sportId": 1,
"name": "Football",
"shortName": "Football",
"images": {
"background": "https://1xbet.com/genfiles/cms/desktop/sport/ef75857be13caf79c856da4a69658924.png",
"popular": "https://1xbet.com/genfiles/cms/desktop/sport/d71d0a5dd44adf804808b7cc6382adc9.png",
"small": "https://1xbet.com/genfiles/cms/desktop/test/1_Football_small.png",
"backgroundIpad": "https://1xbet.com/genfiles/cms/desktop/sport/a85833e934f3dd7f5ec1ed5fb133420e.png",
"defaultChampions": "https://1xbet.com/genfiles/cms/desktop/sport/bc9460f5f45658a9e9db7324e398371e.png",
"defaultChampTablet": "https://1xbet.com/genfiles/cms/desktop/sport/0bd0108c3bfadf50d4da742477990703.png",
"defaultChampHeader": "https://1xbet.com/genfiles/cms/desktop/sport/33e8d9cbe2a5d7e2f9f15f7ec4dd201f.png",
"defaultChampHeaderTablet": "https://1xbet.com/genfiles/cms/desktop/sport/1e7a69b168f155753208b6c12a53ff7e.png",
"gameBackground": "https://1xbet.com/genfiles/cms/desktop/sport/2465e3d5cd413ea0ff50136dd5848a04.png",
"smallBw": "https://1xbet.com/genfiles/cms/desktop/sport/6424730580148fd2e4dfc4279734da72.png"
},
"subSports": [],
"isCyber": false
},
{
"sportId": 2,
"name": "Ice Hockey",
"shortName": "Ice Hockey",
"images": {
"background": "https://1xbet.com/genfiles/cms/desktop/sport/2dee41cbeb0e558d2766336d1c2dc5b8.png",
"popular": "https://1xbet.com/genfiles/cms/desktop/sport/8fae2005456366d84ce0d8b5d147bbea.png",
"small": "https://1xbet.com/genfiles/cms/desktop/test/2_ice_hockey_small.png",
"backgroundIpad": "https://1xbet.com/genfiles/cms/desktop/sport/b10a4fc7bfc8985be915aee171f78fe5.png",
"defaultChampions": "https://1xbet.com/genfiles/cms/desktop/sport/4317695599c78c9f0287248e260ed0b1.png",
"defaultChampTablet": "https://1xbet.com/genfiles/cms/desktop/sport/381fae4b532eea30ef2861e07d797a07.png",
"defaultChampHeader": "https://1xbet.com/genfiles/cms/desktop/sport/147daf82872211920478d3dfe508b20d.png",
"defaultChampHeaderTablet": "https://1xbet.com/genfiles/cms/desktop/sport/ec81c60afd6f3740798ce614394a7e83.png",
"gameBackground": "https://1xbet.com/genfiles/cms/desktop/sport/ecc51fc66c82c88d56789b42953c4de7.png",
"smallBw": "https://1xbet.com/genfiles/cms/desktop/…
Use sportId as the selection value and name or shortName as the label. The sample also includes image URLs, subSports and isCyber; the Football object has an empty subSports array and isCyber set to false.
Read the catalog in Python
This example calls the same endpoint with the same language parameter. It reads the returned array and prints the ID and name needed for a sport selector. Replace the key placeholder before running it.
import json
from urllib.request import Request, urlopen
url = "https://zylalabs.com/api/14965/1xbet-api/39257/all-available-sports?lang=en"
request = Request(
url,
headers={"Authorization": "Bearer YOUR_API_KEY"},
method="GET",
)
with urlopen(request) as response:
sports = json.load(response)
for sport in sports:
print(sport["sportId"], sport["name"])
Keep the API key on your server rather than embedding it in a browser-delivered application. If the request fails, check the key and subscription on the API page before retrying; repeated calls consume your available quota.
Move from a sport to historical results
The catalog is the starting point for a historical-results workflow. Choose a sport, request its championships for a date, then use a championship ID to request finished matches.
History championships
GET https://zylalabs.com/api/14965/1xbet-api/39290/history-championships returns championships that had finished matches for a sport on the given day.
dateis required; the documented example is2026-11-13.sportIdis required as a string; the documented example is1.langis optional; the documented example isen.
The sample response includes championship id, name, countryId and totalMatches. For example, it includes Friendlies. National Teams with championship ID 125983. When taking an ID from the sports response, serialize it as the string-valued sportId query parameter for this request.
History championship matches
GET https://zylalabs.com/api/14965/1xbet-api/39291/history-championship-matches returns finished matches for a championship on a given day, or for the range from date to dateTo.
dateis required; the documented example is2026-11-13.championshipIdis required as a string; the documented example is125983.langis optional; the documented example isen.dateTois optional; the documented example is2026-11-15.
The match response includes a numeric id, team names, a final score in score.current and period scores in score.periods. The sample also includes startTimestamp and additionalInformation, with entries for corners, yellow cards and shots on target. Use the match ID to distinguish records; do not rely on a displayed team name as a unique key.
Team lineup
GET https://zylalabs.com/api/14965/1xbet-api/39292/team-lineup returns the current squad or lineup for a specific team. It requires teamHash; the documented example is 5ab63dbc494765f3ca605d5f. The optional lang parameter is shown as en.
The sample groups players under a title and includes fields such as playerHash, name, country, number, age, matches, goals, yellowCards and redCards. Treat this as a current squad endpoint, not as a historical lineup for a particular finished match.
Practical integration patterns
Sports navigation: Populate a dropdown from the available-sports response and retain each sportId alongside its displayed name. If you use an image field for navigation, allow the interface to render without the image too.
Results browser: Let a user choose a sport and date, display the returned championships and their totalMatches, then request matches for the chosen championship. Keep the selected date and championship ID with the results so users can see which query produced them.
Squad view: Once your application has a team hash, request the team lineup and render player names, shirt numbers and the available statistics. The match sample shows team names and IDs, while the lineup endpoint requires a teamHash; do not assume those values are interchangeable.
Consider caching the sports catalog for your application’s needs to avoid fetching it on every page view. Refresh it deliberately, and handle an empty result without treating it as a failed request. For match times, confirm how to interpret startTimestamp before displaying a local date or time; the sample does not establish its unit or timezone.
Call the API from an AI agent
Zyla APIs can also be called through MCP from Claude Code, Cursor, Windsurf or another MCP-compatible client. Configure the client with https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, replacing the placeholder with your Zyla key.
An agent can start with the available-sports catalog, then use the selected sport ID to look for historical championships. Keep the key in the client’s configuration rather than sharing it in prompts or logs.
FAQ
How do I get a list of available sports?
Call the All available sports endpoint with the documented lang=en request. Read sportId and name from each returned sport object.
Can I find finished matches for a sport?
Yes. First use History championships with a sport ID and date. Then use a returned championship ID with History championship matches to retrieve finished matches and scores.
Can I request matches over a date range?
Yes. History championship matches accepts the optional dateTo parameter in addition to the required date and championshipId.
Does the lineup endpoint accept a team name?
The documented request requires teamHash. Use a team hash available to your application rather than substituting a team name or numeric team ID.
Create a free account, get your API key and Start 7-day trial on 1xBet API. Check the listing for current access options and pricing before subscribing.
Official API response
[
{
"sportId": 1,
"name": "Football",
"shortName": "Football",
"images": {
"background": "https://1xbet.com/genfiles/cms/desktop/sport/ef75857be13caf79c856da4a69658924.png",
"popular": "https://1xbet.com/genfiles/cms/desktop/sport/d71d0a5dd44adf804808b7cc6382adc9.png",
"small": "https://1xbet.com/genfiles/cms/desktop/test/1_Football_small.png",
"backgroundIpad": "https://1xbet.com/genfiles/cms/desktop/sport/a85833e934f3dd7f5ec1ed5fb133420e.png",
"defaultChampions": "https://1xbet.com/genfiles/cms/desktop/sport/bc9460f5f45658a9e9db7324e398371e.png",
"defaultChampTablet": "https://1xbet.com/genfiles/cms/desktop/sport/0bd0108c3bfadf50d4da742477990703.png",
"defaultChampHeader": "https://1xbet.com/genfiles/cms/desktop/sport/33e8d9cbe2a5d7e2f9f15f7ec4dd201f.png",
"defaultChampHeaderTablet": "https://1xbet.com/genfiles/cms/desktop/sport/1e7a69b168f155753208b6c12a53ff7e.png",
"gameBackground": "https://1xbet.com/genfiles/cms/desktop/sport/2465e3d5cd413ea0ff50136dd5848a04.png",
"smallBw": "https://1xbet.com/genfiles/cms/desktop/sport/6424730580148fd2e4dfc4279734da72.png"
},
"subSports": [],
"isCyber": false
},
{
"sportId": 2,
"name": "Ice Hockey",
"shortName": "Ice Hockey",
"images": {
"background": "https://1xbet.com/genfiles/cms/desktop/sport/2dee41cbeb0e558d2766336d1c2dc5b8.png",
"popular": "https://1xbet.com/genfiles/cms/desktop/sport/8fae2005456366d84ce0d8b5d147bbea.png",
"small": "https://1xbet.com/genfiles/cms/desktop/test/2_ice_hockey_small.png",
"backgroundIpad": "https://1xbet.com/genfiles/cms/desktop/sport/b10a4fc7bfc8985be915aee171f78fe5.png",
"defaultChampions": "https://1xbet.com/genfiles/cms/desktop/sport/4317695599c78c9f0287248e260ed0b1.png",
"defaultChampTablet": "https://1xbet.com/genfiles/cms/desktop/sport/381fae4b532eea30ef2861e07d797a07.png",
"defaultChampHeader": "https://1xbet.com/genfiles/cms/desktop/sport/147daf82872211920478d3dfe508b20d.png",
"defaultChampHeaderTablet": "https://1xbet.com/genfiles/cms/desktop/sport/ec81c60afd6f3740798ce614394a7e83.png",
"gameBackground": "https://1xbet.com/genfiles/cms/desktop/sport/ecc51fc66c82c88d56789b42953c4de7.png",
"smallBw": "https://1xbet.com/genfiles/cms/desktop/…
Official API response
[
{
"sportId": 1,
"name": "Football",
"shortName": "Football",
"images": {
"background": "https://1xbet.com/genfiles/cms/desktop/sport/ef75857be13caf79c856da4a69658924.png",
"popular": "https://1xbet.com/genfiles/cms/desktop/sport/d71d0a5dd44adf804808b7cc6382adc9.png",
"small": "https://1xbet.com/genfiles/cms/desktop/test/1_Football_small.png",
"backgroundIpad": "https://1xbet.com/genfiles/cms/desktop/sport/a85833e934f3dd7f5ec1ed5fb133420e.png",
"defaultChampions": "https://1xbet.com/genfiles/cms/desktop/sport/bc9460f5f45658a9e9db7324e398371e.png",
"defaultChampTablet": "https://1xbet.com/genfiles/cms/desktop/sport/0bd0108c3bfadf50d4da742477990703.png",
"defaultChampHeader": "https://1xbet.com/genfiles/cms/desktop/sport/33e8d9cbe2a5d7e2f9f15f7ec4dd201f.png",
"defaultChampHeaderTablet": "https://1xbet.com/genfiles/cms/desktop/sport/1e7a69b168f155753208b6c12a53ff7e.png",
"gameBackground": "https://1xbet.com/genfiles/cms/desktop/sport/2465e3d5cd413ea0ff50136dd5848a04.png",
"smallBw": "https://1xbet.com/genfiles/cms/desktop/sport/6424730580148fd2e4dfc4279734da72.png"
},
"subSports": [],
"isCyber": false
},
{
"sportId": 2,
"name": "Ice Hockey",
"shortName": "Ice Hockey",
"images": {
"background": "https://1xbet.com/genfiles/cms/desktop/sport/2dee41cbeb0e558d2766336d1c2dc5b8.png",
"popular": "https://1xbet.com/genfiles/cms/desktop/sport/8fae2005456366d84ce0d8b5d147bbea.png",
"small": "https://1xbet.com/genfiles/cms/desktop/test/2_ice_hockey_small.png",
"backgroundIpad": "https://1xbet.com/genfiles/cms/desktop/sport/b10a4fc7bfc8985be915aee171f78fe5.png",
"defaultChampions": "https://1xbet.com/genfiles/cms/desktop/sport/4317695599c78c9f0287248e260ed0b1.png",
"defaultChampTablet": "https://1xbet.com/genfiles/cms/desktop/sport/381fae4b532eea30ef2861e07d797a07.png",
"defaultChampHeader": "https://1xbet.com/genfiles/cms/desktop/sport/147daf82872211920478d3dfe508b20d.png",
"defaultChampHeaderTablet": "https://1xbet.com/genfiles/cms/desktop/sport/ec81c60afd6f3740798ce614394a7e83.png",
"gameBackground": "https://1xbet.com/genfiles/cms/desktop/sport/ecc51fc66c82c88d56789b42953c4de7.png",
"smallBw": "https://1xbet.com/genfiles/cms/desktop/…