A rugby application needs to know which competitions it can offer before it can present a useful selection to a user. The Rugby Live Data API provides a competition list with names, identifiers, and seasons. By the end of this guide, you can request that list, read it in Python, and distinguish it from the API’s match and NRL endpoints.
Getting started on Zyla API Hub
Open the Rugby Live Data API listing on Zyla API Hub at zylalabs.com. Create a free account, then select Subscribe or Start Free Trial when available to get an API key and access the endpoint.
Access uses a subscription and quota rather than pay-per-call billing. The first API offers a 7-day trial or 50 requests; check the API page for current access options and pricing. Zyla API Hub has more than 10,000 public APIs, with one account and API key across the marketplace.
Send the key in the Authorization header as Bearer YOUR_API_KEY. Keep the key in server-side configuration rather than embedding it in a public application.
Get supported competitions
The Get Supported Competitions endpoint returns a list of currently active rugby competitions. Each result identifies a competition and its season, making the response suitable for a competition selector or an internal catalog.
Send a GET request to https://zylalabs.com/api/796/rugby-live-data-api/532/get-supported-competitions. The supplied example has no request parameters:
curl -s -X GET "https://zylalabs.com/api/796/rugby-live-data-api/532/get-supported-competitions" \
-H "Authorization: Bearer YOUR_API_KEY"
Replace YOUR_API_KEY with your key before running the request. The following is the official response example; it is truncated at the end, so it is an excerpt rather than a complete JSON document:
{
"meta": {
"title": "Rugby Live Data API - Competition List",
"description": "List of currently active rugby competitions.",
"fields": {
"id": "Integer - use to query other endpoints",
"name": "String - competition name",
"season": "Integer - use to query other endpoints",
"season_name": "String - textual representation of season"
}
},
"results": [
{
"id": 30,
"name": "International",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1218,
"name": "Gallagher Prem",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1230,
"name": "TOP 14",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1236,
"name": "United Rugby Championship",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1260,
"name": "Bunnings Warehouse NPC",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1266,
"name": "Six Nations",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1278,
"name": "Pro D2",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1446,
"name": "Heartland Championship",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1464,
"name": "Investec Champions Cup",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1470,
"name": "EPCR Challenge Cup",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1500,
"name": "Women's Six Nations",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1962,
"name": "Top 14 Access Match",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1968,
"name": "Prem Rugby Cup",
"season": 2027,
"season_name": "Season 2027"
},
{
"id": 1980,
"name":…
Read the actual competition entries from results. Use name and season_name for display; retain id and season when your application needs the documented identifiers for other endpoints. The meta.fields object describes those fields and is not itself the competition list.
The values above are an example, not a fixed catalog. Request the list again when your application needs an up-to-date view of active competitions, rather than hard-coding the example names or seasons.
Read the list in Python
This example uses Python’s standard library to call the same endpoint and print the fields from each result. It reports an HTTP or network error without trying to parse an unsuccessful request as a competition list.
import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = "https://zylalabs.com/api/796/rugby-live-data-api/532/get-supported-competitions"
request = Request(
url,
headers={"Authorization": "Bearer YOUR_API_KEY"},
method="GET",
)
try:
with urlopen(request) as response:
payload = json.load(response)
except HTTPError as exc:
raise SystemExit(f"Request failed with HTTP status {exc.code}")
except URLError as exc:
raise SystemExit(f"Network request failed: {exc.reason}")
except json.JSONDecodeError:
raise SystemExit("The response was not valid JSON")
for competition in payload.get("results", []):
print(
competition["name"],
competition["season_name"],
competition["id"],
competition["season"],
sep=" | ",
)
Replace the key placeholder before running the script. For production, read the key from server-side configuration and validate the response shape before passing results to a user interface. The script parses the live response, not the truncated excerpt shown above.
A selector can show name and season_name while storing the corresponding id and season. Keep the identifier and season alongside the label so a later integration does not have to infer them from display text.
Other available rugby endpoints
The competition list answers what is currently supported. The other documented requests below serve different jobs: match detail, an NRL ladder, and NRL round matches. They use the same bearer authorization header.
Get Match Data
GET https://zylalabs.com/api/796/rugby-live-data-api/538/get-match-data returns rugby union match detail, including score, referees, lineups, statistics, and match events. The supplied request example documents no user parameters, so use the API listing for further request details before building match selection into your application.
NRL Ladder
GET https://zylalabs.com/api/796/rugby-live-data-api/5586/nrl-ladder returns the NRL ladder for a season, including each team’s home, away, and overall record. The required season parameter is a number; the documented example uses 2024. Seasons go back to 2002.
The example ladder represents several numeric-looking values as strings and shows draws as null. Preserve the distinction when parsing: a missing or null value should not silently become a confirmed zero. The response also separates home, away, and overall records, so choose the appropriate record for the view you are building.
NRL round matches
GET https://zylalabs.com/api/796/rugby-live-data-api/5585/nrl-fixture returns matches for one NRL round, including teams, kickoff, venue, and score. It requires numeric season and round parameters; the documented example uses 2024 and 16. Seasons go back to 2002.
The supplied round example represents dates and times as display strings. Do not assume a timezone or convert those strings into timestamps without checking the endpoint documentation and the actual response format. Likewise, treat scores and attendance as values to parse deliberately rather than assuming every field arrives as a JSON number.
Use the competition list in an application or agent
A rugby news application can populate its competition menu from results instead of maintaining a separate list. An internal sports dashboard can display the competition and season together, then retain the returned identifiers for a later workflow. A match-detail screen and an NRL ladder screen can use their respective endpoints rather than treating the competition list as a source of scores or standings.
If you cache the competition list, choose a refresh policy appropriate to your application and subscription quota. The response describes currently active competitions, so a cached copy can become stale; the example itself does not establish a refresh interval.
For an AI agent, connect an MCP-compatible client such as Claude Code, Cursor, or Windsurf to https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, replacing the placeholder with your key. The MCP connection gives the client a way to call Hub APIs. Ask the agent for supported rugby competitions and have it use the returned names and seasons rather than relying on the static example above.
FAQ
Does the competition request require a season parameter?
No parameter is shown in the supplied Get Supported Competitions request. The season is returned for each competition; the separate NRL Ladder and NRL round requests require a season parameter.
Which fields should I store for a competition?
Keep id and season with the display fields name and season_name. The response metadata identifies the first two as values used to query other endpoints; check the relevant endpoint’s documentation for its request requirements.
Does the competition list contain match scores or standings?
The documented competition entries contain identifiers, names, and seasons. Use Get Match Data for rugby union match detail or NRL Ladder for NRL standings.
Can I use the response example as a JSON test file?
Not as shown: the official example is truncated. Capture a complete response from the endpoint for a parsing test, and avoid treating the example’s competition list as permanently current.
Ready to retrieve the list? Create a free account on zylalabs.com, then Start 7-day trial on Rugby Live Data API and get your API key. Check the listing for current access options and pricing.