# CENTURY21 Agents Scraper (`cleansyntax/century21-agents-scraper`) Actor

Get Century 21 real estate agents by U.S. office state, including emails, phone numbers, office details, and profile links where available. Export to CSV, Excel, or JSON.

- **URL**: https://apify.com/cleansyntax/century21-agents-scraper.md
- **Developed by:** [CleanSyntax](https://apify.com/cleansyntax) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 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

## Century 21 Agents by State

Retrieve Century 21 real estate agent records for a selected U.S. state, including names, contact details, office information, addresses, licenses, and profile links where available.

### How to use

1. Select a state, such as Florida (`FL`), California (`CA`), or Texas (`TX`).
2. Set **Max Results** to a positive number, or leave it at `0` to collect all available agents for the selected state.
3. Run the actor and download results as CSV, Excel, JSON, or another supported format.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `state` | String | `CA` | Required two-letter U.S. state abbreviation. |
| `maxItems` | Integer | `0` | Maximum agents to retrieve. Omitted or `0` means all available matches, subject to the run's paid-result limit. |

Retrieve up to 100 Florida agents:

```json
{"state": "FL", "maxItems": 100}
```

Retrieve all available Florida agents:

```json
{"state": "FL", "maxItems": 0}
```

### Output

Each dataset item represents one agent record. All 27 CSV column names are preserved exactly. All values remain strings, including IDs, postal codes, ratings, and languages. Empty source fields remain empty strings.

| Field | Information |
| --- | --- |
| `id` | ID |
| `fullName` | Full name |
| `businessPhone` | Business phone |
| `cellPhone` | Cell phone |
| `email` | Email |
| `profilePhoto` | Profile photo |
| `officeName` | Office name |
| `canonicalUrl` | Profile URL |
| `formattedLicense` | License |
| `starRating` | Star rating |
| `l` | l |
| `businessWebsite` | Business website |
| `languages` | Languages |
| `primaryPlace_displayName` | Primary place display name |
| `primaryPlace_placeName` | Primary place name |
| `office_id` | Office ID |
| `office_name` | Office name (details) |
| `office_email` | Office email |
| `office_phone` | Office phone |
| `office_photo` | Office photo |
| `office_address_address` | Office address |
| `office_address_addressLine1` | Office address line 1 |
| `office_address_addressLine2` | Office address line 2 |
| `office_address_city` | Office city |
| `office_address_state` | Office state |
| `office_address_zipCode` | Office postal code |
| `office_address_country` | Office country |

The `l` field is preserved as provided, without interpreting its meaning.

Illustrative record:

```json
{
  "id": "0001001",
  "fullName": "Jane Doe",
  "businessPhone": "",
  "cellPhone": "",
  "email": "jane@example.com",
  "profilePhoto": "",
  "officeName": "Example Century 21 Office",
  "canonicalUrl": "https://example.com/agents/jane-doe",
  "formattedLicense": "",
  "starRating": "4.8",
  "l": "",
  "businessWebsite": "",
  "languages": "English",
  "primaryPlace_displayName": "",
  "primaryPlace_placeName": "",
  "office_id": "000101",
  "office_name": "Example Century 21 Office",
  "office_email": "",
  "office_phone": "",
  "office_photo": "",
  "office_address_address": "",
  "office_address_addressLine1": "",
  "office_address_addressLine2": "",
  "office_address_city": "Miami",
  "office_address_state": "FL",
  "office_address_zipCode": "33101",
  "office_address_country": "US"
}
```

### Data availability

- The actor returns a previously imported dataset; running it does not refresh profiles from the Century 21 website.
- State selection uses the office state associated with each record.
- Contact fields may be empty, and the dataset may not include every agent in a state.
- A state with no matching records returns no new items.
- A platform paid-result cap can stop collection before all matching records are returned.
- Result order is not guaranteed to be alphabetical.

# Actor input Schema

## `state` (type: `string`):

Select the state to retrieve agents from.

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

Maximum number of agents to retrieve. Set to 0 for all available agents for the selected state, subject to the run's paid-result limit.

## Actor input object example

```json
{
  "state": "CA",
  "maxItems": 0
}
```

# Actor output Schema

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

Century 21 agent records for the selected state, including contact, office, and profile details where available in the imported dataset.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("cleansyntax/century21-agents-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("cleansyntax/century21-agents-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 '{}' |
apify call cleansyntax/century21-agents-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cleansyntax/century21-agents-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/yQLIN6c3tcbXg3sGX/builds/SfggdrBdeLbc2GeRI/openapi.json
