# ClassPass City Studio Directory Scraper (`nimbryxo-studio/classpass-city-studio-directory-scraper`) Actor

Search ClassPass fitness, wellness, beauty and food studios by city and activity, or pull a full studio profile by URL with rating, address, amenities, contact info and upcoming class schedule.

- **URL**: https://apify.com/nimbryxo-studio/classpass-city-studio-directory-scraper.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Automation, Lead generation, Travel
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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/actors/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

## ClassPass City Studio Directory 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 | – | City/metro slug (mode=search), e.g. `new-york-metro` |
| `activity` | string | – | Activity/category slug (mode=search), e.g. `fitness` |
| `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) |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Apify Proxy configuration used for requests |

#### 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.

**Is this affiliated with ClassPass?**  No. This is an independent third-party actor that reads ClassPass's own publicly available pages; it is not affiliated with, endorsed by, or sponsored by ClassPass.

**Why is `upcomingClasses` sometimes empty for a studio?**  Not every studio publishes a bookable class schedule on its public page (some only list drop-in/appointment services), or the studio currently has no classes scheduled in the window ClassPass shows publicly.

# 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("nimbryxo-studio/classpass-city-studio-directory-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("nimbryxo-studio/classpass-city-studio-directory-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 nimbryxo-studio/classpass-city-studio-directory-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/classpass-city-studio-directory-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/lEeW2UwOi9lfZlj38/builds/rtwST3Bzt2TaZZPdb/openapi.json
