{
  "openapi": "3.0.1",
  "info": {
    "title": "FastExpert Scraper - Real Estate Agent Leads & Reviews",
    "description": "Scrape FastExpert real estate agents by city, state or profile URL. Get names, brokerages, emails, phones, license numbers, production stats, ratings, reviews, areas served & leads - plus optional website contact enrichment and monitoring. No login, no browser.",
    "version": "0.1",
    "x-build-id": "paydc5jVZPcpfp9au"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~fastexpert-agent-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-fastexpert-agent-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapesage~fastexpert-agent-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-fastexpert-agent-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapesage~fastexpert-agent-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-fastexpert-agent-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "locations": {
            "title": "Locations (City, ST or State)",
            "type": "array",
            "description": "Where to find agents on FastExpert. Use `City, ST` (e.g. `Austin, TX`, `Miami, FL`, `San Antonio, TX`) for a city listing, or a state name/abbreviation (`Texas`, `FL`) to auto-discover that state's cities. Leave empty if you only use Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (agent profiles, city listings or state hubs)",
            "type": "array",
            "description": "Paste FastExpert URLs: agent profiles (`/agents/<name>-<id>/`), city listings (`/top-real-estate-agents/austin-tx/`) or state hubs (`/top-real-estate-agents/texas/`). Processed in addition to any locations above.",
            "items": {
              "type": "string"
            }
          },
          "maxAgentsPerCity": {
            "title": "Max agents per city",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Cap the number of agents collected per city listing (each listing page has ~25 agents).",
            "default": 75
          },
          "maxAgents": {
            "title": "Max agents (whole run)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Global cap on the total number of agent records emitted in this run, across all locations and Start URLs.",
            "default": 200
          },
          "maxCitiesPerState": {
            "title": "Max cities per state",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "When a location is a whole state (or a state-hub Start URL), how many of its city listings to scrape (largest cities first).",
            "default": 10
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only agents with an overall star rating at or above this value (0 = no filter). Rated 1-5.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only agents with at least this many reviews (0 = no filter).",
            "default": 0
          },
          "minTransactions": {
            "title": "Minimum recent transactions",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only agents with at least this many recent closed transactions (0 = no filter). Great for targeting active, top-producing agents.",
            "default": 0
          },
          "specialization": {
            "title": "Specialization",
            "enum": [
              "any",
              "residential",
              "commercial",
              "luxury",
              "land",
              "farm",
              "relocation"
            ],
            "type": "string",
            "description": "Optionally keep only agents matching a specialization (matched against the agent's specialization label).",
            "default": "any"
          },
          "withEmailOnly": {
            "title": "Only agents with an email",
            "type": "boolean",
            "description": "Keep only agents that have a contact email (the lead wedge — most agents on FastExpert do).",
            "default": false
          },
          "withPhoneOnly": {
            "title": "Only agents with a phone",
            "type": "boolean",
            "description": "Keep only agents that have a phone or cell number.",
            "default": false
          },
          "includeAgentDetails": {
            "title": "Open each profile for full details",
            "type": "boolean",
            "description": "Visit each agent's profile page to add the deep fields: license number & type, full bio, professional designations, awards, areas served, total sales last year and the full review list. One extra request per agent. Turn OFF for fast, low-cost bulk leads — the city listing already includes email, phone, brokerage, website, socials, geo, ratings and production stats.",
            "default": true
          },
          "includeReviews": {
            "title": "Include agent reviews",
            "type": "boolean",
            "description": "Also output review records (type `review`) from each agent's profile — star rating, review text, author and date. Requires opening profiles.",
            "default": false
          },
          "maxReviewsPerAgent": {
            "title": "Max reviews per agent",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many reviews to emit per agent when 'Include agent reviews' is on.",
            "default": 25
          },
          "enrichContactEmails": {
            "title": "Enrich contacts (crawl the agent's website for extra emails, phones, socials)",
            "type": "boolean",
            "description": "Opt-in: when an agent lists their own website, visit it (home + a contact/about page) and extract additional contact emails, phone numbers and social links. Secondary — the agent's brokerage email is already on the listing card. Only runs when a website exists.",
            "default": false
          },
          "deduplicateAgents": {
            "title": "Deduplicate agents",
            "type": "boolean",
            "description": "Emit each agent only once per run (keyed by agent id / profile URL), even if they appear in multiple cities or locations.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new agents",
            "type": "boolean",
            "description": "Remember agents already returned and emit ONLY agents not seen in previous runs (new agents in a city or state). Pairs with Apify Schedules to track new or newly-listed agents over time. Independent of the scheduler — it dedupes records, the schedule decides when to run.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that holds the 'already seen' agent ids for monitoring mode. Use a different name per tracked search to keep their histories separate.",
            "default": "fastexpert-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum parallel requests. Lower it if you hit rate limits on very large runs.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. FastExpert serves clean pages to US IPs, so the default Apify datacenter proxy is enough; switch to residential for very large or high-frequency runs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}