# ClassPass Studio & Class Scraper (`crawlerbros/classpass-scraper`) Actor

Scrape ClassPass fitness, wellness, beauty and food studios by city and activity. Get studio profiles with ratings, address, amenities, contact info, and upcoming class schedules - no login required.

- **URL**: https://apify.com/crawlerbros/classpass-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Automation, Lead generation, Travel
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## ClassPass Scraper

Scrape [ClassPass](https://classpass.com) — fitness, yoga, pilates, wellness, beauty, and food & drink studios across hundreds of cities worldwide. Search by city and activity to get studio listings with ratings and addresses, or fetch full studio profiles including contact info, amenities, and upcoming class schedules. No login or API key required.

### What this actor does

- **Two modes:** `search` (browse studios by city + activity) and `studioDetails` (full profile lookup by URL)
- **Global coverage** — hundreds of cities across the US, UK, Europe, Australia, and Asia
- **Rich studio profiles** — ratings, review counts, amenities, phone, website, social links, cancellation policy
- **Upcoming class schedules** — publicly listed class times pulled straight from each studio's page
- **Empty fields are omitted**

### Output per studio

**Search mode:**

- `studioId`, `alias`, `name`, `activities`, `description`
- `rating`, `ratingCount`
- `address` — `{ street, street2, city, state, zipCode }`
- `distance`, `distanceUnit`
- `imageUrl`, `featuredReview`
- `url`, `searchLocation`, `searchActivity`

**Studio details mode (adds):**

- `subtitle`, `website`, `phoneNumber`
- `proTip`, `whatToBring`, `howToGetThere`, `bookingWindow`, `cancellationPolicy`
- `facebookUrl`, `instagramHandle`, `twitterUrl`
- `latitude`, `longitude`, `neighborhood`, `city`, `countryCode`
- `ratingDisplayTotal`, `reviewCount`
- `amenities[]`, `imageUrls[]`, `tags[]`, `serviceTypes[]`
- `outOfNetwork`, `availableForTrialers`, `requestToBook`
- `upcomingClasses[]` — `{ className, startTime, endTime, classUrl, venueName, venueAddress }`

Every record also has `recordType: "classpass_studio"` and `scrapedAt`.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `search` | `search` / `studioDetails` |
| `location` | string | `new-york-metro` | City/metro slug (mode=search) |
| `activity` | string | `fitness` | Activity/category slug (mode=search) |
| `studioUrls` | array | – | Studio URLs or aliases (mode=studioDetails) |
| `includeUpcomingClasses` | bool | `true` | Attach upcoming class schedule (mode=studioDetails) |
| `maxItems` | int | `50` | Hard cap (1–50 for search; ClassPass caps public search at 50 results) |

#### Example: search Chicago yoga studios

```json
{
  "mode": "search",
  "location": "chicago",
  "activity": "yoga",
  "maxItems": 25
}
```

#### Example: full studio profile lookup

```json
{
  "mode": "studioDetails",
  "studioUrls": [
    "https://classpass.com/studios/trufusion-summerlin-las-vegas",
    "hithouse-nolita-new-york"
  ],
  "includeUpcomingClasses": true
}
```

### Finding location and activity slugs

1. Visit [classpass.com/locations](https://classpass.com/locations) and click your city — the URL becomes your `location` slug (e.g. `/locations/chicago` → `chicago`; many US metros use a `-metro` suffix, e.g. `new-york-metro`).
2. On that city page, click any category link (Fitness, Yoga, Massage, Hair Salons, Acai Bowls, Coworking, etc.) — the last segment of the resulting `/search/<location>/<activity>` URL is your `activity` slug.

Common activity slugs: `fitness`, `yoga`, `pilates`, `boxing`, `cycling`, `barre`, `dance`, `martial-arts`, `hair-salons`, `nail-salons`, `massage`, `spas`, `facials`, `waxing`, `acai-bowls`, `juice-bars`, `coworking-spaces`.

### Use cases

- **Fitness marketplace research** — benchmark studio density, ratings, and pricing signals by city
- **Local SEO / lead generation** — build prospect lists of wellness and beauty businesses
- **Competitive intelligence** — track amenities, class variety, and review counts across a market
- **Real-estate / retail siting** — map fitness/wellness density by neighborhood
- **Class schedule aggregation** — pull publicly listed upcoming class times per studio

### FAQ

**Do I need a ClassPass account?**  No — every field comes from ClassPass's public, unauthenticated studio and search pages.

**Why is `search` capped at 50 results?**  ClassPass's public (non-logged-in) search page renders at most 50 studios per city/activity combination; pagination beyond that requires an authenticated session.

**Why does `search` sometimes return 0 studios?**  Either the `location` or `activity` slug doesn't exist for that city, or that category has zero studios there. Double-check the slug on classpass.com/locations/<city> first.

**What's `distance`?**  Distance in `distanceUnit` (km or mi) from ClassPass's inferred default search origin for that metro area — not from a specific address you provide.

**Are prices included?**  No — ClassPass shows per-visit pricing only after a signed-in user selects credits/membership tier, so no public, unauthenticated price field exists.

**How fresh is the data?**  Real-time — every run re-fetches the live studio and search pages.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `location` (type: `string`):

ClassPass location slug, taken from a classpass.com/search/<location>/<activity> URL, e.g. `new-york-metro`, `los-angeles`, `london`, `chicago-metro`. Browse https://classpass.com/locations to find the exact slug for your city.

## `activity` (type: `string`):

ClassPass activity slug, e.g. `fitness`, `yoga`, `pilates`, `boxing`, `hair-salons`, `massage`, `spas`, `facials`, `coworking-spaces`, `acai-bowls`. Full list varies per city — visit classpass.com/locations/<city> and copy a category link's last URL segment.

## `studioUrls` (type: `array`):

Full ClassPass studio URLs or bare aliases, e.g. `https://classpass.com/studios/trufusion-summerlin-las-vegas` or `trufusion-summerlin-las-vegas`.

## `includeUpcomingClasses` (type: `boolean`):

Attach the studio's publicly-listed upcoming class schedule (name, start/end time, URL) to each studio record.

## `maxItems` (type: `integer`):

Hard cap on emitted records. ClassPass's public search page returns at most 50 studios per city/activity combination.

## `proxyConfiguration` (type: `object`):

ClassPass sits behind Cloudflare bot-management. Automatic datacenter proxy is engaged (only when needed) since Apify's shared cloud IP ranges are more heavily flagged than typical residential traffic; no paid/residential proxy is required.

## Actor input object example

```json
{
  "mode": "search",
  "location": "new-york-metro",
  "activity": "fitness",
  "studioUrls": [],
  "includeUpcomingClasses": true,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `studios` (type: `string`):

Dataset containing all scraped ClassPass studios.

# 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 = {
    "mode": "search",
    "location": "new-york-metro",
    "activity": "fitness",
    "studioUrls": [],
    "includeUpcomingClasses": true,
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/classpass-scraper").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 = {
    "mode": "search",
    "location": "new-york-metro",
    "activity": "fitness",
    "studioUrls": [],
    "includeUpcomingClasses": True,
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/classpass-scraper").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 '{
  "mode": "search",
  "location": "new-york-metro",
  "activity": "fitness",
  "studioUrls": [],
  "includeUpcomingClasses": true,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call crawlerbros/classpass-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlerbros/classpass-scraper"
        }
    }
}

```

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/Vsv0bGUtP3pcbrBJb/builds/slh2VSWzC3RpXgFOP/openapi.json
