Skip to main content
whatweek.ca

See what week of the year it is right now in Canada, including the current week number and the dates this week starts and ends.

Week toolsAboutContactBlog

API keys & rate limits

Our public API is free and key-less for light use. For higher volume, request a free partner key — non-commercial uses included.

Default limits

Access tierPer-minute limitMode
Anonymous (per IP)60No key required
Partner key600+X-API-Key or ?api_key=

Headers X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset are returned on every response. When exceeded, the API returns 429 with a Retry-After header.

How to authenticate

Once you receive your key, send it as the X-API-Key header, an Authorization: Bearer <key> header, or an api_key= query parameter.

# Header (recommended)
curl -H "X-API-Key: $WHATWEEK_KEY" \
  "https://whatweek.ca/api/holidays.json?province=on&year=2026"

# Query parameter
curl "https://whatweek.ca/api/week.json?api_key=$WHATWEEK_KEY"

Request a key

Email us your name, project, and estimated volume. We typically reply within 48 hours.

Send request email

Best practices