# Zillow Agents API

Zillow real estate agents with name, profile URL, brokerage, title and team. Search by location, language or specialty.

**Pricing:** $0.003 per agent

**Endpoint:** `POST /v1/data/zillow/agents/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `location` | string | Yes | Location. |
| `maxResults` | integer | No | How many agents to return in total. Defaults to 100; use 0 for all. |
| `languages` | array | No | Only agents who speak one of these languages. Leave empty for any. |
| `specialtys` | array | No | Only agents with one of these specialties. Leave empty for any. |

## Example

`?wait=true` holds the request open until the run finishes (up to 60s) and returns the rows inline: one request, no polling.

```bash
curl -X POST "https://api.mindcase.co/v1/data/zillow/agents/run?wait=true" \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"location":"..."}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/v1/data/zillow/agents/run",
    params={"wait": "true"},
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "location": "..."
}},
)
rows = resp.json()["data"]
```

## Longer runs

If the run is still going at the 60s ceiling you get back `{ job_id, status: "running" }` instead of rows (same if the result is over 100 rows; those come back `truncated`). Poll with that `job_id`:

```bash
# 1) check status
curl https://api.mindcase.co/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `agentId` | Agent ID | text |
| `agentName` | Agent Name | text |
| `username` | Username | text |
| `profileUrl` | Profile URL | url |
| `brokerage` | Brokerage | text |
| `title` | Title | text |
| `teamName` | Team Name | text |
| `phone` | Phone | phone |
| `businessPhone` | Business Phone | phone |
| `email` | Email | email |
| `website` | Website | url |
| `socials` | Socials | object |
| `rating` | Rating | rating |
| `reviews` | Reviews | number |
| `salesLast12Months` | Sales Last 12 Months | number |
| `totalSales` | Total Sales | number |
| `priceRange` | Price Range | text |
| `minSalePrice` | Min Sale Price | number |
| `maxSalePrice` | Max Sale Price | number |
| `averageSalePrice` | Average Sale Price | number |
| `activeListingsCount` | Active Listings Count | number |
| `activeRentalsCount` | Active Rentals Count | number |
| `isTopAgent` | Is Top Agent | boolean |
| `isPremierAgent` | Is Premier Agent | boolean |
| `yearsInIndustry` | Years In Industry | number |
| `memberSince` | Member Since | date |
| `specialties` | Specialties | array |
| `languages` | Languages | array |
| `serviceAreas` | Service Areas | array |
| `licenses` | Licenses | object_array |
| `description` | Description | text |
| `photoUrl` | Photo URL | image |
| `address` | Address | text |
| `city` | City | text |
| `state` | State | text |
| `postalCode` | Postal Code | text |
| `teamMemberCount` | Team Member Count | number |
| `reviewsSummary` | Reviews Summary | object |
| `pastSales` | Past Sales | object_array |
| `activeListings` | Active Listings | object_array |
| `rentalListings` | Rental Listings | object_array |
| `videoUrl` | Video URL | url |
