# Club OS API Gym CRM & Lead Management (`alizarin_refrigerator-owner/club-os-api-gym-crm-lead-management`) Actor

Gym CRM & Lead Management - Sales Pipeline, Members & Conversions Access Club OS data for fitness clubs & gyms. Get leads, members, sales pipeline, tasks, appointments & communication history. Ideal for gym sales teams, franchise operations, & fitness club management.

- **URL**: https://apify.com/alizarin_refrigerator-owner/club-os-api-gym-crm-lead-management.md
- **Developed by:** [The Howlers](https://apify.com/alizarin_refrigerator-owner) (community)
- **Categories:** Lead generation, Other, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Club OS API - Gym CRM & Lead Management

Export leads, members, staff, appointments, clubs and locations, follow-ups, sales events and KPIs from **your own Club OS account**, using **your own Club OS API credentials** (bring your own key). Useful for gyms and fitness franchises that want Club OS CRM data in a spreadsheet, a BI tool or an automation.

> **Status (2026-10-22):** live mode follows Club OS's public API documentation (API V3 and API V2) as of 2026-10-22. It has **not yet been verified against a real Club OS account**. If something does not work with your club, open an issue with the error row and it will be fixed.

***

### How it works

Club OS publishes two APIs. The actor uses only their documented read endpoints:

| API | Docs | Host | Authentication |
|-----|------|------|----------------|
| API V3 | [API V3 overview](https://knowledge.club-os.com/api-v3-overview), [reference](http://docs.club-os.io/) | `https://api.club-os.io` | `X-API-Key` header |
| API V2 | [API V2 overview](https://knowledge.club-os.com/en_US/api-v2-overview), [reference](https://s3.amazonaws.com/clubos-docs/api/index.html) | `https://api2.club-os.com` | `GET /authenticate?username=&password=` returns a 24-hour token, sent as `Authorization: <token>` |

#### Getting credentials

Club OS issues API credentials to its customers on request. Email **support@club-os.com** (or ask your Club OS Account Manager) for an **API V3 key**, and for **API V2 username and password** if you want follow-ups, sales events or KPIs.

***

### Tasks

| Task | API | Endpoint | What you get |
|------|-----|----------|--------------|
| `get_leads` | V3 | `GET /users?roleId=99` | Prospects. `startDate` / `endDate` filter on created date |
| `get_members` | V3 | `GET /users?roleId=7` | Members. `startDate` / `endDate` filter on created date |
| `get_staff` | V3 | `GET /users?roleId=2,3,4,5,6` | Club admins, location managers, salespeople, front desk and trainers |
| `get_appointments` | V3 | `GET /events` | Events (meetings, personal training, classes, appointments, consultations) between startDate and endDate |
| `get_clubs` | V3 | `GET /clubs` (+ `GET /locations` when `clubId` is set) | Clubs your key can access, and that club's locations |
| `get_tasks` | V2 | `GET /followups` | Follow-ups for one location in the period |
| `get_sales_pipeline` | V2 | `GET /sales-events-occurring` | Sales events for one location in the period, with attendee status and outcome |
| `get_reports` | V2 | `GET /kpis` | KPI data for the club, grouped by location |

Every task except `get_clubs` needs `clubId`. `get_tasks` and `get_sales_pipeline` also need `locationId`.

Earlier versions listed `get_communications` and `get_campaigns`. Club OS's public API has no endpoint for either, so they were removed rather than faked.

***

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `task` | string | `get_leads` | One of the tasks above |
| `apiKey` | string | none | API V3 key |
| `apiUsername` | string | none | API V2 username |
| `apiPassword` | string | none | API V2 password |
| `clubId` | string | none | Numeric Club OS club id |
| `locationId` | string | none | Numeric Club OS location id |
| `startDate` | string | 30 days ago | YYYY-MM-DD (UTC) |
| `endDate` | string | today | YYYY-MM-DD (UTC), inclusive. `get_appointments` defaults to 30 days from today |
| `limit` | integer | `100` | Maximum records to return |
| `webhookUrl` | string | none | Optional URL that receives the result row as JSON |
| `demoMode` | boolean | `false` | Return labeled sample data without calling Club OS |

#### Example

```json
{
  "task": "get_leads",
  "apiKey": "YOUR_CLUB_OS_API_V3_KEY",
  "clubId": "100",
  "startDate": "2026-10-01",
  "limit": 1000
}
```

***

### Output

One dataset row per run. Records keep Club OS's own field names:

```json
{
  "task": "get_leads",
  "success": true,
  "demoMode": false,
  "data": {
    "items": [
      { "userId": 52311, "clubId": 100, "locationId": 1001, "role": { "id": 99, "name": "Prospect" }, "firstName": "Michael", "lastName": "Thompson", "email": "m.thompson@example.com", "createdDate": "2026-10-03T14:12:00.000Z", "source": "Web" }
    ],
    "count": 1,
    "total": 1,
    "hasMore": false,
    "source": { "api": "Club OS API V3", "host": "api.club-os.io" }
  },
  "timestamp": "2026-10-22T12:00:00.000Z"
}
```

If Club OS rejects the request, the row has `"success": false` and an `error` message that includes Club OS's response, and the run is marked failed. Credentials are never written to the dataset or the log.

***

### Pricing

Pay per event. Prices match the live pricing on Apify:

| Event | When it is charged | Price |
|-------|--------------------|-------|
| Actor start | Once when the run starts, one event per GB of memory (minimum one). At the default 1 GB of memory that is $0.10 per run | $0.10 per GB |
| Lead Query | Retrieve prospect data and source tracking | $0.01 |
| Member Lookup | Access member profiles and membership status | $0.01 |
| Appointment Query | Get tours, consultations, and follow-ups | $0.01 |
| Task Query | Retrieve sales tasks and reminder assignments | $0.01 |
| Pipeline Query | Access deal stages and conversion tracking | $0.01 |
| Communication Query | Get email, SMS, and call history | $0.01 |
| Staff Query | Retrieve sales rep data and performance metrics | $0.01 |
| Club Query | Access multi-location management data | $0.01 |
| Campaign Query | Get marketing campaign tracking and ROI | $0.01 |
| Report Query | Retrieve sales and conversion analytics | $0.01 |
| Result | Each item written to the default dataset | $0.00001 |

No task event is charged for sample runs, for runs that stop with an error (bad credentials, missing clubId, invalid input), or for live queries that return zero records. Apify still charges the Actor Start event on every run and the Result event for each dataset row.

***

### Troubleshooting

**"Club OS rejected the API V3 key"**: the key is wrong or not active. Confirm it with Club OS support.

**"Club OS rejected the API V2 username and password"**: API V2 uses separate credentials from API V3.

**"needs clubId" / "needs locationId"**: run `get_clubs` (with your `clubId`) to list your club and location ids.

***

### Running without credentials

Without credentials (or with `demoMode` on) the run succeeds and returns a small sample dataset marked with `"demo": true` and a `_notice` field. It shows the output format only, it is not your data, and it charges no task event.

***

**Built by John Rippy | [Actor Arsenal](https://actorarsenal.com)**

# Actor input Schema

## `task` (type: `string`):

get_leads, get_members, get_staff, get_appointments and get_clubs use Club OS API V3 (apiKey). get_tasks (follow-ups), get_sales_pipeline (sales events) and get_reports (KPIs) use Club OS API V2 (apiUsername + apiPassword).

## `apiKey` (type: `string`):

Your own Club OS API V3 key (request it from support@club-os.com or your Club OS Account Manager). Sent in the X-API-Key header. Used by get_leads, get_members, get_staff, get_appointments and get_clubs. If no credentials are given, the actor returns clearly labeled sample data and charges no task event.

## `apiUsername` (type: `string`):

Your own Club OS API V2 username (issued by support@club-os.com). Used by get_tasks, get_sales_pipeline and get_reports.

## `apiPassword` (type: `string`):

Your own Club OS API V2 password. Exchanged for a 24-hour token at the start of the run.

## `clubId` (type: `string`):

Your numeric Club OS club id. Required by every task except get_clubs (run get_clubs to list the clubs your key can access).

## `locationId` (type: `string`):

Optional numeric Club OS location id. Required for get_tasks and get_sales_pipeline. Run get_clubs with a clubId to list its locations.

## `startDate` (type: `string`):

Optional YYYY-MM-DD (UTC). get_leads and get_members: created on or after. get_appointments, get_tasks, get_sales_pipeline, get_reports: start of the period (default: 30 days ago).

## `endDate` (type: `string`):

Optional YYYY-MM-DD (UTC), inclusive. End of the period (default: today, or 30 days from today for get_appointments).

## `limit` (type: `integer`):

Maximum number of records to return. API V3 tasks page through results (up to 1000 per request). API V2 tasks return at most 1000 records.

## `webhookUrl` (type: `string`):

URL to receive results via webhook

## `demoMode` (type: `boolean`):

Return labeled sample data instead of calling Club OS. Sample data is also returned automatically when no credentials are given. Sample runs charge no task event.

## Actor input object example

```json
{
  "task": "get_leads",
  "limit": 100,
  "demoMode": false
}
```

# Actor output Schema

## `results` (type: `string`):

Club OS gym/fitness CRM data including leads, members, appointments, tasks, pipeline, and reports

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "demoMode": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("alizarin_refrigerator-owner/club-os-api-gym-crm-lead-management").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "demoMode": False }

# Run the Actor and wait for it to finish
run = client.actor("alizarin_refrigerator-owner/club-os-api-gym-crm-lead-management").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "demoMode": false
}' |
apify call alizarin_refrigerator-owner/club-os-api-gym-crm-lead-management --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alizarin_refrigerator-owner/club-os-api-gym-crm-lead-management"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IRAUC4Wt3uByBAOPK/builds/oo7oO67hOaAeOxhvp/openapi.json
