# Realtor Agents Scraper (`jupri/realtor-agents`) Actor

💫 Scrape agents data from Realtor.com

- **URL**: https://apify.com/jupri/realtor-agents.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Real estate
- **Stats:** 778 total users, 1 monthly users, 65.2% runs succeeded, 18 bookmarks
- **User rating**: 4.94 out of 5 stars

## Pricing

$30.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

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

## Welcome to Realtor.com Scraper

<img height="32" src="https://apify.com/actor-badge?actor=jupri~realtor-agents&ts=0" align="right">

![enter image description here](https://illustoon.com/photo/thum/6289.png)

### 🪂 About Realtor.com

**Realtor.com** is a [real estate](https://en.wikipedia.org/wiki/Real_estate "Real estate") listings website operated by the [News Corp](https://en.wikipedia.org/wiki/News_Corp "News Corp") subsidiary [Move, Inc.](https://en.wikipedia.org/wiki/Move_\(company\) "Move (company)") and based in [Santa Clara, California](https://en.wikipedia.org/wiki/Santa_Clara,_California "Santa Clara, California"). It is the second most visited real estate listings website in the United States as of 2021, with over 100 million monthly active users.

### 🪂 About This Actor

Scrape data from Realtor.com about real-estate agents in specific region inside United States. Search for Agent, Group, Company based on multiple criteria.

### 🪂 Input Parameters

| parameter | type | description |
|-|-|-|
| `query` | ***array*** | List of agent **Name** or **URL** |
| `location` | ***string*** | Agent marketing area |
| `search_type` | ***string*** |Type of agent to search |
| `limit` | ***integer*** | Limit Number of results *(per-QUERY)* |

### 🪂 Basic Usage

***Searching for agents by Location***

```yaml
{ "location": "Washington, DC", "search_type": "agent", "limit": 5 }
```

***Searching for agents by Name***

```yaml
{ "query": ["Joefree"], "search_type": "agent", "limit": 5 }
```

***Scrape Agent  URL***

```yaml
{ "query": ["https://www.realtor.com/realestateagents/Joefree_922120_12334499"] }
```

### 🪂 Output Sample

```yaml
[{
  "address": {
	"line": "10328 Sepulveda Blvd.",
	"line2": "",
	"city": "Mission Hills",
	"postal_code": "91345",
	"state_code": "CA",
	"state": "",
	"country": "US"
  },
  "advertiser_id": 45968,
  "agent_rating": 5,
  "background_photo": {
	"href": "https://ap.rdcpix.com/1412695029/b0bac9e3d7e9e9a2ba7469dd19c6120eg-c0s.jpg"
  },
  "broker": {
	"fulfillment_id": 3421666,
	"designations": [],
	"name": "Pinnacle Estate Properties, Inc -  Broker",
	"accent_color": "Transparent",
	"photo": {
	  "href": ""
	},
	"video": ""
  },
  "description": "You might consider **** an adventurer. However, she describes her enjoyment for sky diving, skiing, hiking and mountain climbing as a \"calculated\" risk enjoyment. **** enjoys setting new goals and working diligently to attain them. A woman of intensity and action, **** does not have patience for a \"can't do\" attitude! \"I love what I do, believe in what I do and am committed to being the best\" Her passion for Real Estate and her commitment to succeed keeps her striving to always be on the cutting edge of this ever-changing Real Estate market.",
  "designations": [],
  "first_month": 4,
  "first_name": "*****",
  "first_year": 1993,
  "has_photo": true,
  "href": "http://********.com",
  "id": "5673a0e67e54f701001dfc85",
  "is_realtor": true,
  "languages": [],
  "last_name": "*****",
  "last_updated": "Sat, 22 Jan 2022 08:20:33 GMT",
  "marketing_area_cities": [
	{
	  "city_state": "Los Angeles_CA",
	  "name": "Los Angeles",
	  "state_code": "CA"
	},
	{...}
  ],
  "mls": [
	{
	  "member": {
		"id": "F210077879"
	  },
	  "abbreviation": "SVCA",
	  "type": "A",
	  "primary": true,
	  "license_number": "00920540"
	}
  ],
  "mls_history": [],
  "nar_only": 1,
  "nick_name": "",
  "nrds_id": "207077879",
  "office": {
	"name": "Pinnacle Estate Properties, Inc",
	"mls": [
	  {
		"member": {
		  "id": "F2435003"
		},
		"abbreviation": "SVCA",
		"type": "O",
		"primary": true
	  }
	],
	"phones": [
	  {
		"ext": "",
		"number": "(***) ***-****",
		"type": "Office"
	  }
	],
	"phone_list": {
	  "phone_1": {
		"type": "Office",
		"number": "********",
		"ext": ""
	  }
	},
	"photo": {
	  "href": ""
	},
	"slogan": "",
	"website": "",
	"video": null,
	"fulfillment_id": 1404775,
	"address": {
	  "line": "10328 Sepulveda Blvd.",
	  "line2": "",
	  "city": "Mission Hills",
	  "postal_code": "91345",
	  "state_code": "CA",
	  "state": "",
	  "country": "US"
	},
	"email": "blackjeff@aol.com",
	"nrds_id": null,
	"feed_licenses": [],
	"licenses": []
  },
  "party_id": 4032941,
  "person_name": "**** **** Real Estate Resource Team",
  "phones": [
	{
	  "ext": "",
	  "number": "(***) ***-****",
	  "type": "Mobile",
	  "key": "phone_1"
	},
	{
	  "ext": "",
	  "number": "(***) ***-****",
	  "type": "Office",
	  "key": "phone_2"
	}
  ],
  "photo": {
	"href": "https://ap.rdcpix.com/250870895/e78d3aa102330d14261d34e9bd64569aa-c0s.jpg"
  },
  "recommendations_count": 0,
  "review_count": 3,
  "role": "agent",
  "served_areas": [
	{
	  "name": "Chatsworth",
	  "state_code": "CA"
	},
	{...}
  ],
  "slogan": "Work is only work if you'd rather be doing something else...",
  "specializations": [
	{ "name": "Buyers" },
	{ "name": "Probates & Income Properties" },
	{ "name": "Condo & Townhomes" },
	{ "name": "Estate Properties" },
	{ "name": "Residential Homes" }
  ],
  "title": "Agent",
  "types": "agent",
  "user_languages": [
	"English",
	"Spanish"
  ],
  "web_url": "https://www.realtor.com/realestateagents/****-****-Real-Estate-Resource-Team_Mission-Hills_CA_45968_021229297",
  "zips": [
	"91311",
	"91324",
	"91325",
	"91331"
  ],
  "email": "****",
  "full_name": "****",
  "name": "****",
  "agent_type": [
	"buyer",
	"seller"
  ],
  "social_media": {
	"facebook": {
	  "href": "http://www.facebook.com/********",
	  "type": "facebook"
	}
  },
  "areas_of_business": [],
  "video": null,
  "product_code": null,
  "products": null,
  "raw_products": null,
  "data_flags": null,
  "feed_licenses": [
	{
	  "country": "US",
	  "state_code": "CA",
	  "license_number": "00920540"
	}
  ],
  "for_sale_price": {
	"count": 7,
	"min": 410000,
	"max": 1325000,
	"last_listing_date": "2022-07-18T18:26:13Z"
  },
  "recently_sold": {
	"count": 68,
	"min": 245000,
	"max": 1855000,
	"last_sold_date": "2022-05-27"
  },
  "agent_team_details": {
	"is_team_member": false
  }
}]
```

### 📌 Support

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

⚡️ Feel free to [reach out](https://console.apify.com/actors/m1NPxIieJaZd9UhP6/issues) to the developer for any issues or suggestions for improvement.

# Actor input Schema

## `query` (type: `array`):

💡 Agent NAME / URL / ID / Advertise-ID

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

💡 City, state or zip-code

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

Limit results

## `sort` (type: `string`):

No description

## `search_type` (type: `string`):

Agent type

## `photo` (type: `boolean`):

No description

## `agent_type` (type: `string`):

No description

## `languages` (type: `array`):

No description

## `designations` (type: `array`):

No description

## `min_rating` (type: `string`):

Minimum rating

## `min_recommended` (type: `string`):

Minimum recomendation

## `min_price` (type: `integer`):

No description

## `max_price` (type: `integer`):

No description

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## `dev_fileupload` (type: `string`):

💡 Upload your file and copy & paste the URL somewhere.

## Actor input object example

```json
{
  "location": "New York, NY",
  "limit": 5
}
```

# 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 = {
    "location": "New York, NY",
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/realtor-agents").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 = {
    "location": "New York, NY",
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/realtor-agents").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "location": "New York, NY",
  "limit": 5
}' |
apify call jupri/realtor-agents --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jupri/realtor-agents",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/m1NPxIieJaZd9UhP6/builds/xU867vqmX1GGy4C39/openapi.json
