{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Agents Scraper: Profiles, Reviews, Ratings",
    "description": "Search the Realtor.com agent directory by ZIP code or city and get each agent's brokerage, office, ratings and sales activity, then open any profile for license, languages, specialties and service areas, plus the reviews and recommendations left for them.",
    "version": "1.0",
    "x-build-id": "7RXF8xNOB7FxRdnfC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happyendpoint~realtor-com-agents-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happyendpoint-realtor-com-agents-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/happyendpoint~realtor-com-agents-scraper/runs": {
      "post": {
        "operationId": "runs-sync-happyendpoint-realtor-com-agents-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/happyendpoint~realtor-com-agents-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-happyendpoint-realtor-com-agents-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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "agentsSearch",
              "agentDetails",
              "agentReviews",
              "agentRecommendations",
              "agentFeedback"
            ],
            "type": "string",
            "description": "Which data to fetch. Each option is one kind of request."
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most results to return. The run stops once it has this many.",
            "default": 100
          },
          "postalCode": {
            "title": "ZIP code",
            "maxLength": 10,
            "type": "string",
            "description": "The five-digit ZIP code whose agents you want. Give it or a City, not both. Used by: Find agents by ZIP code or city."
          },
          "city": {
            "title": "City",
            "maxLength": 100,
            "type": "string",
            "description": "The city whose agents you want, together with its State code. Give it or a ZIP code, not both. Used by: Find agents by ZIP code or city."
          },
          "stateCode": {
            "title": "State code",
            "maxLength": 2,
            "type": "string",
            "description": "The two-letter state code that goes with the City, such as TX. Used by: Find agents by ZIP code or city."
          },
          "fulfillmentId": {
            "title": "Agent ID",
            "maxLength": 100,
            "type": "string",
            "description": "The Realtor.com ID of one agent, as the agent search and the profile rows return it. Reviews, Recommendations and Agent reviews and recommendations together need it; the profile accepts it as one of three ways to name the agent. Used by: Agent profile, Agent reviews, Agent recommendations, Agent reviews and recommendations together."
          },
          "nrdsId": {
            "title": "Association member number",
            "maxLength": 50,
            "type": "string",
            "description": "The membership number that the Realtors trade association assigned to the agent. An alternative to the Agent ID for the profile, handy when your list came from a roster or an MLS export. Used by: Agent profile."
          },
          "profileId": {
            "title": "Profile ID",
            "maxLength": 50,
            "type": "string",
            "description": "The 24-character code that closes the web address of an agent profile page. One more way to name the agent for the profile. Used by: Agent profile."
          },
          "agentName": {
            "title": "Agent name",
            "maxLength": 100,
            "type": "string",
            "description": "Narrow the directory to agents whose name matches this text, whole or in part. A ZIP code or a City is still needed. Used by: Find agents by ZIP code or city."
          },
          "agentType": {
            "title": "Side of the deal",
            "pattern": "^(buyer|seller)(,(buyer|seller))*$",
            "type": "string",
            "description": "Keep agents who work for buyers, for sellers, or for either, as buyer, seller or both separated by a comma. Many agents serve both, so this removes only the specialists. Used by: Find agents by ZIP code or city."
          },
          "isRealtor": {
            "title": "Realtor members only",
            "type": "boolean",
            "description": "Keep only agents who belong to the Realtors trade association. Used by: Find agents by ZIP code or city."
          },
          "minPrice": {
            "title": "Lowest price handled",
            "minimum": 0,
            "type": "number",
            "description": "Keep agents whose listings reach at least this price, in whole dollars. Used by: Find agents by ZIP code or city."
          },
          "maxPrice": {
            "title": "Highest price handled",
            "minimum": 0,
            "type": "number",
            "description": "Keep agents whose listings stay at or below this price, in whole dollars. Used by: Find agents by ZIP code or city."
          },
          "feedbackType": {
            "title": "Feedback filter",
            "enum": [
              "buyer",
              "seller",
              "ratings"
            ],
            "type": "string",
            "description": "For the combined feedback list: only feedback from clients who bought, only from clients who sold, or only the items that carry a star rating. Used by: Agent reviews and recommendations together."
          },
          "sort": {
            "title": "Sort agents by",
            "enum": [
              "relevant",
              "recent_activity",
              "most_sales",
              "ratings",
              "recommendations"
            ],
            "type": "string",
            "description": "The order of the directory. Leave it empty for the site ranking. Used by: Find agents by ZIP code or city."
          },
          "feedbackSort": {
            "title": "Sort feedback by",
            "enum": [
              "newest",
              "rating_high",
              "rating_low"
            ],
            "type": "string",
            "description": "The order of the combined feedback list. Leave it empty for the site order. Used by: Agent reviews and recommendations together."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}