Club API for your website
With the Club API your club’s website can show what your members flew: the totals of each year and the club leaderboards, straight from Sidekik and always up to date.
This guide is written for the person who builds your club’s website. The API is part of the Gold plan. You find all plans on our clubs page.
Good to know: The API only counts flights that are visible to everybody, exactly like the club leaderboard in the app. Private flights and flights for followers only never leave Sidekik, and neither do members whose request to join is still pending.
1. Create an API key
Only admins of the club can create the key.
- Open app.sidekik.cloud/manage-my-clubs?tab=api and sign in if you are asked to. This link takes you straight to the Website-API tab of Manage my clubs.
- If you manage more than one club, pick the club at the top.
- Choose Create API key.
- Copy the key and store it on your web server.
Good to know: The link only works for club admins. Anyone else sees a note that they are not a club admin. If you build the website but don’t run the club, ask one of its admins to create the key and pass it on to you.
You can also get there without the link: sign in, open Manage my clubs (on a computer in the menu on the left, on a phone the shield icon in the bar at the bottom) and choose the Website-API tab.
The key starts with sk_club_ and is shown only once. If you lose it, create a new one: the old key stops working at that moment. Delete key switches the access off.
Keep the key secret. Use it only in code that runs on your server, never in the browser. Anyone who has the key can read your club’s data through the API.
2. Make a request
The API lives at https://app.sidekik.cloud/api/partner/v1. Send the key with every request in the Authorization header. The key decides which club you get, so there is no club id in the address.
curl https://app.sidekik.cloud/api/partner/v1/club/stats \
-H "Authorization: Bearer sk_club_YOUR_KEY"
All endpoints are GET requests and answer with JSON.
3. The club
GET /club returns the club itself.
{
"id": "x7Kq2mPz9LbTn4RwE",
"name": "Bergfalken",
"logo": "https://…/logo.png",
"memberCount": 84,
"description": "Flying in the Stubai valley",
"website": "https://bergfalken.example",
"country": "Austria",
"city": "Neustift",
"region": "Tirol"
}
memberCount is the number of approved members. Fields the club has not filled in are null.
4. Statistics per year
GET /club/stats returns the club’s totals for every year with activities, newest first. Add ?year=2026 to get a single year.
{
"club": { "id": "x7Kq2mPz9LbTn4RwE", "name": "Bergfalken", "logo": "https://…/logo.png", "memberCount": 84 },
"years": [
{
"year": 2026,
"activeMembers": 61,
"activities": 1432,
"flights": 1210,
"xcFlights": 388,
"hikeAndFlys": 274,
"hikes": 222,
"airtimeMinutes": 98340,
"faiDistanceKm": 21876.4,
"hikingElevationGainM": 412300,
"flyingElevationGainM": 1893200
}
]
}
| Field | Meaning |
|---|---|
activeMembers |
Members with at least one activity in the year |
activities |
All activities: flights and hikes |
flights |
Activities with a flight, including XC flights and Hike & Fly |
xcFlights |
XC flights |
hikeAndFlys |
Hike & Fly activities |
hikes |
Hikes without a flight |
airtimeMinutes |
Airtime added up, in minutes |
faiDistanceKm |
FAI distance added up, in kilometres |
hikingElevationGainM |
Metres climbed on foot |
flyingElevationGainM |
Metres gained in the air |
A year is a calendar year in UTC. A year without activities is not in the list.
5. Leaderboards
GET /club/leaderboard ranks your members by one criterion in one year.
| Parameter | Default | Meaning |
|---|---|---|
year |
the current year | The calendar year to rank |
criteria |
totalAirtime |
What to rank by, see the list below |
page |
1 |
The page of the ranking |
pageSize |
20 |
Members per page, at most 100 |
curl "https://app.sidekik.cloud/api/partner/v1/club/leaderboard?year=2026&criteria=totalFaiDistance&pageSize=10" \
-H "Authorization: Bearer sk_club_YOUR_KEY"
{
"club": { "id": "x7Kq2mPz9LbTn4RwE", "name": "Bergfalken", "logo": "https://…/logo.png", "memberCount": 84 },
"year": 2026,
"criteria": "totalFaiDistance",
"page": 1,
"pageSize": 10,
"entries": [
{
"rank": 1,
"userId": "hT5vWq8LpZ2nYc3Rd",
"username": "anna",
"firstName": "Anna",
"lastName": "Adler",
"picture": "https://…/anna.jpg",
"score": 1284.6
}
]
}
Only members with at least one activity in the year appear. When a page has fewer entries than pageSize, it is the last one. A pilot’s profile is at https://app.sidekik.cloud/profile/ followed by their username.
The criteria are the same as in the app’s club leaderboard:
criteria |
Ranking | score |
|---|---|---|
totalAirtime |
Airtime added up | minutes |
totalFaiDistance |
FAI distance added up | kilometres |
maxFAIDistance |
Longest FAI distance in one flight | kilometres |
maxHeight |
Highest altitude reached | metres |
totalFlyingElevationGain |
Metres gained in the air, added up | metres |
maxFlyingElevationGain |
Most metres gained in the air in one activity | metres |
totalHikingElevationGain |
Metres climbed on foot, added up | metres |
maxHikingElevationGain |
Most metres climbed on foot in one activity | metres |
maxHikingDistance |
Longest hike in one activity | kilometres |
maxActivities |
Number of activities | count |
maxXCFlights |
Number of XC flights | count |
maxHike&Flys |
Number of Hike & Fly activities | count |
Write maxHike&Flys as maxHike%26Flys in the address.
6. Example with Next.js
Put the key into .env.local. Do not start the name with NEXT_PUBLIC_, otherwise Next.js ships the key to the browser.
SIDEKIK_API_KEY=sk_club_YOUR_KEY
A server component fetches the data on the server and keeps it for an hour:
// app/leaderboard/page.tsx
type Entry = { rank: number; username: string; firstName: string | null; lastName: string | null; score: number };
async function sidekik<T>(path: string): Promise<T> {
const response = await fetch(`https://app.sidekik.cloud/api/partner/v1${path}`, {
headers: { Authorization: `Bearer ${process.env.SIDEKIK_API_KEY}` },
next: { revalidate: 3600 },
});
if (!response.ok) throw new Error(`Sidekik API: ${response.status}`);
return response.json();
}
export default async function LeaderboardPage() {
const year = new Date().getFullYear();
const { entries } = await sidekik<{ entries: Entry[] }>(`/club/leaderboard?year=${year}&criteria=totalAirtime`);
return (
<ol>
{entries.map((entry) => (
<li key={entry.username}>
{entry.firstName} {entry.lastName}: {Math.round(entry.score / 60)} h
</li>
))}
</ol>
);
}
7. Limits and caching
- 60 requests per minute per key. Beyond that the API answers
429with aRetry-Afterheader. - Results are up to an hour old. Sidekik refreshes them when a member uploads a flight, and after an hour at the latest. Keeping the answers on your server for an hour, as in the example, is enough.
- Server only. The API sends no CORS headers, so browsers cannot call it directly.
8. Errors
Errors come as JSON with an error field.
| Status | error |
Meaning |
|---|---|---|
400 |
invalid-year, invalid-criteria, invalid-page |
A parameter is wrong. For invalid-criteria the answer lists the allowed values. |
401 |
invalid-api-key |
The key is missing, mistyped or was replaced by a new one. |
403 |
gold-subscription-required |
The club is not on the Gold plan, or its subscription has run out. |
429 |
rate-limited |
Too many requests. Wait for the seconds given in Retry-After. |
500 |
internal-error |
Something went wrong on our side. Try again later. |
Tips
- Link back to the pilots. Their Sidekik profile shows the flights behind the numbers.
- Tell your members. Only public flights are counted. A member who would rather not appear on your website can set their flights to followers only or private, see Who sees your flights.
- Rotate the key when the person who built your website changes. Creating a new key takes a few seconds.
Related guides
Still have questions? Write to us at [email protected].