Skip to content

Puckera API

Read your pools’ data from a script, a spreadsheet or a chat bot. Read-only, JSON, with a personal token.

What it is for

  • The API is for following YOUR pools: standings, rosters, moves, draft, pool players, points, matchups and calendar.
  • It is not a source of NHL statistics: it only serves data of the pools you belong to, where stats are context.
  • It changes nothing: only GET and HEAD are accepted.

Authentication

  • Create a token in your profile, under “API and tokens”. It is shown only once.
  • Send it in the “Authorization: Bearer” header. Never in the URL: a request carrying a token in its URL is refused.
  • A token reads all your pools or only the ones you check. It expires as you choose (1 year by default); you get an email 7 days before. A token unused for 6 months is revoked automatically.
  • A pool where you are no longer an active member, or outside the token’s scope, answers 404.

Create a token in my profile

First call

List your pools:

curl -H "Authorization: Bearer pk_…" \
  https://puckera.com/api/v1/pools

A pool’s standings:

curl -H "Authorization: Bearer pk_…" \
  https://puckera.com/api/v1/pools/{pool}/standings

Limits

  • 60 requests per minute and 10,000 per day, per token. Beyond that: 429 with a Retry-After header (seconds).
  • Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.
  • Responses may be kept for 60 seconds (Cache-Control) and carry an ETag: send it back in If-None-Match to get a 304 without a body.
  • No CORS: call the API from a server or a script, not from a web page.

Format

  • JSON with English keys. Instants in ISO 8601 UTC (2026-11-28T17:40:29Z); league days as YYYY-MM-DD.
  • Amounts in whole dollars; points as numbers with two decimals.
  • Paginated lists: “limit” (100 by default, 200 at most) and “cursor”; “next” gives the next page’s cursor, or null at the end.
  • Labels translated on the site (move type, status) come as stable codes (ADDED, ACTIVE…).

Errors

An error always has the same shape:

{"error": {"code": "not_found", "message": "Not found."}}
400
Invalid parameter (date, limit, cursor).
401
Missing, unknown, revoked or expired token — or a token sent in the URL.
404
Unknown pool or pool out of scope, or data this pool does not have (matchups of a pool without head-to-head).
405
Method other than GET or HEAD.
429
Rate limit reached.

Routes

Every address starts with https://puckera.com/api/v1. The full description, with schemas, is in the OpenAPI document. OpenAPI 3.1 document

GET / No token needed

API index. Version and links. No token needed.

GET /openapi.json No token needed

This document. The OpenAPI 3.1 description of the API. No token needed.

GET /pools

Pools this token can read. Pools in the token's scope where you are an active member. The demo pool is never listed.

GET /pools/{pool}

One pool. Type, format, season and league day of a pool.

GET /pools/{pool}/standings

Standings. Season standings, plus one table per division and the multi-season standings when the pool uses them. Same table as the standings export. 404 for pools without teams.

GET /pools/{pool}/rosters

Rosters. Every active team's current roster, one row per player. Salary fields only in pools with a salary cap.

limit
Rows per page (1 to 200, default 100).
cursor
The "next" value of the previous response.

GET /pools/{pool}/moves

Moves. The season's latest roster moves (up to 500), newest first.

limit
Rows per page (1 to 200, default 100).
cursor
The "next" value of the previous response.

GET /pools/{pool}/draft

Draft. The season's draft picks, made or not.

limit
Rows per page (1 to 200, default 100).
cursor
The "next" value of the previous response.

GET /pools/{pool}/players

Players. The pool's Players list: pool points, pool salary, owner in this pool and projection, with the page's filters. A stats view adds a "stats" object.

group
Position group.
team
NHL team abbreviation (MTL).
free
1 = free agents only, 0 = owned players only.
view
View: pool (default) or a stats view.
span
Stats period of a stats view.
sort
Sort column (pts, ppg, proj, name, team, age, cap, club, or a stat of the view).
dir
Sort direction.
q
Search by name.
limit
Rows per page (1 to 200, default 100).
cursor
The "next" value of the previous response.

GET /pools/{pool}/points/daily

Points by team and day. Each team's points per league day. Retroactive days are flagged.

from
First day (YYYY-MM-DD).
to
Last day (YYYY-MM-DD).
limit
Rows per page (1 to 200, default 100).
cursor
The "next" value of the previous response.

GET /pools/{pool}/points/players

Dressed players of a day. Players dressed on a league day and the points they earned for their team.

date
League day (YYYY-MM-DD); defaults to today.
limit
Rows per page (1 to 200, default 100).
cursor
The "next" value of the previous response.

GET /pools/{pool}/matchups

Head-to-head matchups. Weeks, matchups and results. 404 when the pool's format has no matchups.

GET /pools/{pool}/calendar

Calendar. The pool's calendar events (rule dates, free-agent runs, playoffs, polls and bets), in your language.

limit
Rows per page (1 to 200, default 100).
cursor
The "next" value of the previous response.

Outgoing webhooks (signed JSON)

  • A pool’s commissioner adds a “Signed JSON” webhook on the pool’s Integrations page: an https address (port 443) that receives a POST for each chosen event.
  • Answer with a 2xx code within 10 seconds. Otherwise the delivery is retried after 1, 5 then 30 minutes. A 401, 403, 404 or 410 disables the webhook; so do 10 failures in a row.
  • The webhook-id header is the same on every retry (and when the commissioner resends a delivery): use it to ignore a duplicate.
  • Never members’ messages or an email address. Redirects are not followed.
  • Within a version, additions only: ignore fields and types you do not know. A breaking change changes the “version” field.

The body is a JSON envelope. “text” is a ready-to-display sentence in the pool’s language; “data” follows the API conventions (ids, whole dollars, points with two decimals).

{
    "id": "msg_2f9c1d7ab04e6c35a8d1f07b29",
    "type": "night.summary",
    "created_at": "2026-11-28T03:12:00Z",
    "version": "2026-11",
    "pool": {
        "slug": "mon-pool",
        "name": "Mon pool"
    },
    "text": "Les Lames: team of the night with 41.50 points (November 27).",
    "url": "https://puckera.com/p/mon-pool/chat",
    "data": {
        "date": "2026-11-27",
        "club_id": 12,
        "club": "Les Lames",
        "points": 41.5,
        "runner_up_points": 38.2
    }
}

Event types (“ping” = the test sent from the Integrations page):

trade.completed roster.moves night.summary record.new draft.pick auction.won poll.created sidebet.created chronicle.published season.champion trade_block.listed badge.unlocked player.contract announcement.published release_claim.awarded ping

Verifying the signature

  • Deliveries follow the Standard Webhooks specification: webhook-id, webhook-timestamp (Unix seconds) and webhook-signature headers.
  • The signature is “v1,” followed by the base64 HMAC-SHA256 of “id.timestamp.body”; the key is the part of the secret after “whsec_”, base64-decoded.
  • Sign the RAW body, exactly as received (not the JSON parsed then re-encoded), and refuse a timestamp older than 5 minutes.
  • After the secret is regenerated, the header carries two space-separated signatures for 24 hours (previous and new secret): accept the delivery if either one matches.
  • The “standardwebhooks” libraries (PHP, Node, Python, Go…) do this check for you.

PHP

$body   = file_get_contents('php://input');           // corps brut / raw body
$id     = $_SERVER['HTTP_WEBHOOK_ID'] ?? '';
$ts     = $_SERVER['HTTP_WEBHOOK_TIMESTAMP'] ?? '';
$header = $_SERVER['HTTP_WEBHOOK_SIGNATURE'] ?? '';
$key    = base64_decode(substr($secret, strlen('whsec_')));

$expected = 'v1,' . base64_encode(hash_hmac('sha256', "$id.$ts.$body", $key, true));
$valid = abs(time() - (int) $ts) <= 300;
$match = false;
foreach (explode(' ', $header) as $signature) {
    $match = $match || hash_equals($expected, $signature);
}
if (!$valid || !$match) {
    http_response_code(401);
    exit;
}
$event = json_decode($body, true);

Node.js

import { createHmac, timingSafeEqual } from 'node:crypto';

// rawBody : le corps brut (Buffer ou string), avant JSON.parse / the raw body, before JSON.parse
function verify(secret, headers, rawBody) {
  const id = headers['webhook-id'];
  const ts = headers['webhook-timestamp'];
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
  const key = Buffer.from(secret.slice('whsec_'.length), 'base64');
  const expected = Buffer.from(
    'v1,' + createHmac('sha256', key).update(`${id}.${ts}.${rawBody}`).digest('base64'));
  return String(headers['webhook-signature']).split(' ').some((signature) => {
    const given = Buffer.from(signature);
    return given.length === expected.length && timingSafeEqual(given, expected);
  });
}

Versions

  • Within v1, only additions: new fields, new routes, new filters. Your client must ignore fields it does not know.
  • Any breaking change (a field removed or renamed, a type or meaning changed) will ship as v2. v1 will keep being served for 6 months after v2 is released, with Deprecation and Sunset headers, and an email to accounts whose token called v1 in the last 30 days.

Changelog

  • — JSON webhook `roster.moves`: `prospects` field (players in `added` added as prospects).
  • — Standings: `last_30_days` field (points over the last 30 completed days, today excluded).
  • — Draft: `kind` field (MAIN / ROOKIE) in a pool that holds a rookie draft.
  • — Draft: `extra_pick` field (EXTRA for an extra pick in the round).
  • — Outgoing webhooks as signed JSON (Standard Webhooks), version 2026-11.
  • — Version 1: pools, standings, rosters, moves, draft, players, daily points, dressed players, matchups and calendar.

Type at least 2 letters.

↑ ↓ to choose · Enter to open · Esc to close