News, honours and trophies

The content group is what a club publishes about itself: news, the honours board, life members and trophies. It is read-only, needs only your key, and every operation takes an optional member token from the login. Without a token you get what any visitor to the club's lovebowls site sees. With one, a member of the club also gets its members-only news.

OperationPathSDK
List newsGET /v1/clubs/{clubId}/news?limit=&cursor=lb.listNews(clubId, { limit?, cursor? }), lb.iterateNews(clubId, { limit? })
One articleGET /v1/clubs/{clubId}/news/{articleId}lb.getNewsArticle(clubId, articleId)
Honours boardGET /v1/clubs/{clubId}/honourslb.listHonours(clubId)
Life membersGET /v1/clubs/{clubId}/life-memberslb.listLifeMembers(clubId)
TrophiesGET /v1/clubs/{clubId}/trophieslb.listTrophies(clubId)
One trophy and its winnersGET /v1/clubs/{clubId}/trophies/{trophyId}lb.getTrophy(clubId, trophyId)

Who sees what

Caching

A call without a token is answered Cache-Control: public, max-age=60. A call with a token is private, no-store. Every answer of these operations carries Vary: Origin, Authorization, so a browser or proxy never hands the public answer to a signed-in member, or a member's answer to a visitor. Honours, life members and trophies change rarely, but a club can edit them at any time: a minute is the longest an answer can be stale.

News

GET /v1/clubs/{clubId}/news answers one page, newest first (by the article's showFrom, then by id):

{
  "items": [
    {
      "id": "9f2c...",
      "title": "The green is open",
      "summary": "The north green opens on Saturday.",
      "categories": ["Club"],
      "imageUrl": "https://static.wixstatic.com/media/....jpg",
      "imageCaption": null,
      "membersOnly": false,
      "publishedAt": "2027-04-01T09:12:00.000Z",
      "showFrom": "2027-04-01T00:00:00.000Z",
      "showUntil": "2027-05-01T23:59:59.000Z"
    }
  ],
  "nextCursor": null
}

One article

GET /v1/clubs/{clubId}/news/{articleId} is the summary fields plus:

Field
bodyHtmlThe body as sanitised HTML. See below.
attachmentsUp to five files, [{ "name": "Minutes.pdf", "url": "https://..." }], as absolute https links.

An article that is not there for this caller is 404 news_not_found: unknown, outside its show window, another club's, or members-only without a member of this club. The API does not say which.

Attachments are links to the files themselves. A file's address is not access-controlled by Wix, so anyone who has the link can open it; the API only lists an article's attachments to a caller who may read the article (a members-only article's links reach members only). Do not treat a link as a secret.

The sanitised body

The club's editor stores HTML, and the API cleans it before it leaves, so it is safe to put in a page. What survives:

KeptHow
p br strong b em i u s ul ol li h2 h3 h4 h5 h6 blockquote table thead tbody tr th tdh1 becomes h2: an article inside your page must not add a second page heading. td and th keep colspan and rowspan.
spanOnly these styles: font-weight (bold, normal, 400-900), font-style (italic, normal), text-decoration (underline, line-through, none). That is how the editor writes bold, italic and underline. Nothing else is styled; there is no class, id or colour.
aOnly href, and only an absolute http, https or mailto address. rel="noopener noreferrer" is added and target removed. A relative or other link (javascript:, data:, #top) loses its href and keeps its text.
imgOnly src (absolute https; a Wix image is converted) and alt. An image with no usable address is removed.

Everything else is gone: scripts and their text, style and link elements, frames, objects, forms, svg, math, event attributes such as onclick, and any tag the list does not name (an unknown tag loses the tag and keeps its text). Attributes are always double-quoted.

Insert it with innerHTML and nothing else - and still serve your page with a sensible Content-Security-Policy, as you would for any content you did not write yourself:

const article = await lb.getNewsArticle("CLUB_ID", id);
// bodyHtml is already sanitised by the API: this is the one place it is inserted as HTML
container.innerHTML = article.bodyHtml;
// everything else is text
title.textContent = article.title;

Your own styles apply to what is inserted (the club's colours and sizes are not carried over), so the article looks like your page.

If your Content-Security-Policy forbids inline styles (a style-src without 'unsafe-inline', and no style-src-attr), the browser will not apply the style on a span, and bold, italic and underline disappear. Either allow style-src-attr 'unsafe-inline', or turn the spans into elements before you insert them, which is what the live example does under its strict policy: parse bodyHtml in a <template>, and replace each span by strong (font-weight bold), em (font-style italic), u or s (text-decoration) around its children. Pictures in the body are https://static.wixstatic.com/... addresses, so they load only if your img-src allows that host.

Honours board

GET /v1/clubs/{clubId}/honours answers { "items": [...] }, newest year first (then by title), not paged:

{ "id": "a1...", "title": "Club Singles", "year": 2026,
  "winners": [ { "kind": "member", "name": "J. Smith" }, { "kind": "nonMember", "name": "A. Guest" }, { "kind": "formerMember", "name": null } ] }

A winner has a kind and a name:

kindMeaningname
memberA current member of the club.Shown as the club's public Honours page shows them: an initial and surname, J. Smith. It can be null for a member who has no name set.
nonMemberA name the club typed in (a guest, a visitor from another club).As typed.
formerMemberSomeone who won as a member and has since left the club.Always null. The place is kept; the person is not named.

Winners come in the club's own order, members and former members first, then the typed-in names. A year can have no winners recorded (winners: []). The API never carries a member id, so the winners cannot be tied back to a member record. Within one year, entries are ordered by title.

Life members

GET /v1/clubs/{clubId}/life-members answers { "items": [...] } in the club's own order, not paged:

{ "id": "b2...", "name": "A. Person", "pictureUrl": null, "founder": true }

pictureUrl is an absolute https URL or null; founder marks the club's founders.

Trophies

GET /v1/clubs/{clubId}/trophies lists the club's trophies, in the club's own order, without their winners:

{ "id": "c3...", "name": "Mixed Fours Cup", "knownAs": "The Fours", "imageUrl": null,
  "firstYear": 1990, "winnersPerYear": 4, "singles": false, "notes": null }

knownAs, notes, firstYear and winnersPerYear are null when the club has not set them. A trophy's accompanying document link is members-only on the lovebowls site and is not part of the API.

GET /v1/clubs/{clubId}/trophies/{trophyId} is the same trophy plus years, every year on record, newest first:

{ "id": "c3...", "name": "Mixed Fours Cup", "...": "...",
  "years": [
    { "year": 2026, "awarded": true,  "winners": [ { "kind": "member", "name": "Jo Smith" } ], "imageUrl": null },
    { "year": 2025, "awarded": false, "winners": [], "imageUrl": null }
  ] }

Errors

StatuscodeWhen
404news_not_foundNo such article for this caller: unknown, outside its show window, another club's, or members-only and the caller is not a member of this club.
404trophy_not_foundNo such trophy in this club.
400invalid_cursorThe news cursor is unknown, tampered with, or was made with the other sign-in state.
401member_token_invalidThe token you sent is not one Wix accepts.
404club_not_foundThe key's club is gone, or it is a draft club and the token (if any) is not a member's.

See Errors for the shape of every error.

try {
  const article = await lb.getNewsArticle("CLUB_ID", id);
} catch (error) {
  if (error.code === "news_not_found") return null; // gone, expired, or members-only
  throw error;
}