lovebowls Public API
The lovebowls Public API lets a club's own website, or an AI coding agent working for the club, read the club's data from lovebowls: the club summary, competitions, fixtures with results, and league tables; the club's news, honours board, life members and trophies; and, once a member has logged in, that member's own details and calendar, their availability for fixtures, and the published teamsheets. It is JSON over HTTPS, one API key per club, with a documented error format and a published contract.
Base URL: https://api.lovebowls.co.uk/v1
Start here
- Getting started: Get a key and make your first call, with curl or the JavaScript SDK.
- Keys: Publishable and server keys, the origin allowlist, keeping a server key out of browsers, rotation, and what each 401 and 403 means.
- Errors: The problem+json error format, the error codes that exist today, X-Request-Id, and which errors to retry.
- Paging: Lists come in pages. limit, cursor, nextCursor, why the filters must not change, and how to walk every page.
- Fixtures: Competitions, fixtures and club events with their filters, one fixture, results, league tables, and the field notes a developer needs.
- Rate limits: 300 requests a minute per key, the headers that tell you where you stand, and the temporary block for abuse.
- JavaScript SDK: Install @lovebowls/api from npm or jsDelivr, every method, member login, errors, paging, and the rule for keys in browsers.
- Authentication: Member login for your own site, how the sign-in works, the 4-hour token, why logout does not revoke it, and the member errors.
- Members: The member operations getMe and getMyCalendar - fields, date ranges, caching, and the rule that a member sees only their own data.
- Selection: Mark a member available or not for a fixture, the seven reasons it can be refused and what to tell the member, grouped fixtures, and the published teamsheet.
- News, honours and trophies: The content group - a club's news (members-only articles for members), sanitised article bodies, the honours board, life members and trophies with their winners.
See it working
The live example is a club page built on the API and the JavaScript SDK: club, competitions, fixtures by month, a league table and a member login, in one small script you can copy.
For AI coding agents
/llms.txtis a short summary with links to every guide./openapi.yamlis the contract (OpenAPI 3.1): every operation, parameter, schema and error.- Branch on the
codefield of an error, never on its text. See the errors guide.
What is available
Today: the club summary (getClub), the fixtures group (competitions, fixtures, one fixture, league
tables), the content group (news, honours, life members and trophies; see News, honours and trophies), the members group (getMe and getMyCalendar) and the selection group (a member's availability, marked and
cleared, and a fixture's published teamsheet). The members and selection operations need a member login
(see Members and Selection). The content operations need only your key: a visitor gets the public
news, and a member's token adds the club's members-only articles.
Changes
Within v1, changes are additive only: new operations, new optional parameters, new response fields. Write
your code to ignore fields it does not know and to cope with an enumeration value it has not seen. A removal or
rename needs v2, and a deprecated operation is announced at least six months before it goes.