Fixtures
The fixtures group has four operations. All of them are reads and all need only an API key.
| Operation | Path | SDK |
|---|---|---|
| List competitions | GET /v1/clubs/{clubId}/competitions | lb.listCompetitions(clubId, { kind? }) |
| List fixtures | GET /v1/clubs/{clubId}/fixtures | lb.listFixtures(clubId, filters) |
| One fixture | GET /v1/clubs/{clubId}/fixtures/{fixtureId} | lb.getFixture(clubId, fixtureId) |
| A league table | GET /v1/leagues/{leagueId} | lb.getLeague(leagueId) |
Only published fixtures are returned. A draft is invisible, and asking for one by id is 404 fixture_not_found.
Competitions
curl "https://api.lovebowls.co.uk/v1/clubs/CLUB_ID/competitions?kind=match" -H "X-Api-Key: $LB_KEY"
const { items } = await lb.listCompetitions("CLUB_ID", { kind: "match" });
The answer is { "items": [...] }, ordered by name, not paged. Each competition has id, name,
description, kind, playersPerRink (1 to 4 or null), gender (male, female or mixed), minAge,
maxAge, colour, textColour, imageUrl and link. Use a competition's id as the competition filter
of the fixtures list.
Fixtures
curl "https://api.lovebowls.co.uk/v1/clubs/CLUB_ID/fixtures?from=2027-04-01&to=2027-05-01&kind=match" \
-H "X-Api-Key: $LB_KEY"
const { items, nextCursor } = await lb.listFixtures("CLUB_ID", {
from: "2027-04-01",
to: "2027-05-01",
kind: "match",
});
This is also the club calendar: ask for the range you want to show. Fixtures come oldest first, and each carries its result once there is one.
| Filter | Meaning |
|---|---|
from, to | A date (2027-04-01, meaning midnight UTC) or a date-time. from is inclusive, to is exclusive. |
competition | A competition id. Repeat the parameter for several: competition=a&competition=b. |
team | A team id from getClub. |
kind | match or event. |
limit, cursor | Paging. See Paging. |
The date range
- With neither
fromnorto, you get the club's current season (season.startandseason.endin the club summary). - Send both or neither. One alone is
400 invalid_request. tomust be afterfrom, and the range may not be longer than 400 days (400 invalid_request). To cover more, make several calls.
One fixture
curl "https://api.lovebowls.co.uk/v1/clubs/CLUB_ID/fixtures/FIXTURE_ID" -H "X-Api-Key: $LB_KEY"
const fixture = await lb.getFixture("CLUB_ID", "FIXTURE_ID");
Fixture ids are stable for a real club. An id that does not exist, is a draft or is another club's all answer
404 fixture_not_found.
{
"id": "117578e2-e1d8-4806-b519-557a3f1160cd",
"number": "002",
"kind": "match",
"start": "2027-04-05T09:00:00.000Z",
"meetTime": null,
"competition": { "id": "6f0c2a44-...", "name": "Ladies Premier 2", "kind": "match", "colour": "#7b1fa2", "textColour": "#ffffff" },
"team": null,
"venue": "home",
"opponent": "Kestrelbury Ladies",
"eventName": null,
"notes": null,
"dress": null,
"rinks": 3,
"availabilityEnabled": true,
"teamsheetPublished": false,
"result": null,
"updatedAt": "2026-11-21T14:02:11.000Z"
}
Results
result is null until the club has recorded one. Then it is:
| Field | Meaning |
|---|---|
outcome | win, loss or draw, or null when the club entered only a text result. |
clubScore | The club's total over all rinks, or null. |
opponentScore | The opponents' total, or null. |
text | The result as the club wrote it, or null. |
Show text when outcome is null. Handle an outcome you do not know: new values can be added.
Rink-by-rink scores and the players are not in the API.
League tables
curl "https://api.lovebowls.co.uk/v1/leagues/LEAGUE_ID" -H "X-Api-Key: $LB_KEY"
const league = await lb.getLeague("LEAGUE_ID");
for (const row of league.table) console.log(row.position, row.teamName, row.played, row.points);
The answer is { id, name, table, updatedAt }. Each row of table, in order of position, has position,
teamId, teamName, played, won, drawn, lost, shotsFor, shotsAgainst, shotDifference, points,
inPromotionPosition and inRelegationPosition.
A league belongs to no club, so its path has no club id and any valid key can read a league whose id it knows.
An unknown id is 404 league_not_found.
Field notes
kind.matchis a fixture against another club or team;eventis a club occasion (a social, a roll-up, a working party). For an event,venueandopponentarenullandeventNameholds its name. For a match,eventNameisnull.venue.homeoraway;nullfor an event.team. A team id, not a name (for exampleA), ornull. Get the names from the club summary:getClub(clubId).teamsis a list of{ id, name }. Look names up in that list and cache it.Nulls. An absent value is
null, never missing and never an empty string. Every field of a fixture is always present, so test fornull, not forundefinedor"".Times are UTC. Every date-time is ISO 8601 with a
Z, for example2027-04-05T09:00:00.000Z. Show local times with the club'stimeZonefromgetClub(Europe/Londontoday):const club = await lb.getClub("CLUB_ID"); const when = new Intl.DateTimeFormat("en-GB", { dateStyle: "full", timeStyle: "short", timeZone: club.timeZone, }).format(new Date(fixture.start));meetTime. When the team meets, ornullwhen the club did not set one.number. The club's fixture number as a string ("026").availabilityEnabled,teamsheetPublished. Flags about the members' features.availabilityEnabledsays the fixture asks members for their availability andteamsheetPublishedthat its teamsheet is out; a member's own page uses them with the selection operations. A public website can ignore them.Colours. A competition's
colourandtextColourare the club's calendar colours: use them together.Unknown values. Treat an enumeration value you do not recognise as the nearest known case, and ignore fields you do not know.