{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Market Data Scraper: Prices, Schools, Commute",
    "description": "Get local market figures from Realtor.com for a ZIP code, city, county or neighborhood: market heat score, median prices and days on market, neighborhood guides, area boundaries, new and price-cut listings, schools, districts and commute times.",
    "version": "1.0",
    "x-build-id": "lPadKXfTJiND1TZDW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happyendpoint~realtor-com-market-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happyendpoint-realtor-com-market-data-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-market-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-happyendpoint-realtor-com-market-data-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-market-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-happyendpoint-realtor-com-market-data-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": [
              "marketHotness",
              "neighborhoodInfo",
              "geoStatistics",
              "commuteTime",
              "marketFeed",
              "mapBoundary",
              "schoolsSearch",
              "school",
              "schoolDistrict"
            ],
            "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": "A five-digit ZIP code. It needs no State code. Used by: Market heat of a ZIP code, Market statistics of an area, Area outline, Schools in an area."
          },
          "city": {
            "title": "City",
            "maxLength": 100,
            "type": "string",
            "description": "The city name. Give its State code with it. Used by: Market statistics of an area, Market feed of a city, Area outline, Schools in an area."
          },
          "stateCode": {
            "title": "State code",
            "maxLength": 2,
            "type": "string",
            "description": "The two-letter state code, such as AZ. It goes with a City, a County or a Neighborhood. Used by: Market statistics of an area, Market feed of a city, Area outline, Schools in an area."
          },
          "neighborhoodSlug": {
            "title": "Neighborhood slug",
            "maxLength": 200,
            "type": "string",
            "description": "The Realtor.com identifier of a neighborhood. Take it from the slug_id of a row of the Location suggestions operation in the Realtor.com Scraper: Homes for Sale, Rent and Sold Actor. Neighborhood guide needs it. Used by: Neighborhood guide."
          },
          "geoType": {
            "title": "Area level",
            "enum": [
              "city",
              "county",
              "neighborhood",
              "state",
              "zip"
            ],
            "type": "string",
            "description": "The kind of area that the market statistics describe. It decides which place fields to fill in. City is used when you leave it empty. Used by: Market statistics of an area."
          },
          "propertyId": {
            "title": "Property ID",
            "maxLength": 50,
            "type": "string",
            "description": "The Realtor.com ID of the home where the trip starts. Commute time only. Used by: Commute time to a destination."
          },
          "destinationAddress": {
            "title": "Destination",
            "maxLength": 300,
            "type": "string",
            "description": "Where the trip ends. A place or landmark name works, such as a city, a campus or a station; a full address is not needed. Used by: Commute time to a destination."
          },
          "schoolId": {
            "title": "School ID",
            "maxLength": 100,
            "type": "string",
            "description": "The ID of one school, as Schools in an area returns it. School details needs it. Used by: School details."
          },
          "county": {
            "title": "County",
            "maxLength": 100,
            "type": "string",
            "description": "The county name without a trailing County. Give its State code with it. Used by: Market statistics of an area, Area outline, Schools in an area."
          },
          "neighborhood": {
            "title": "Neighborhood",
            "maxLength": 100,
            "type": "string",
            "description": "A neighborhood name. Give its City and State code with it, since names repeat across cities. Used by: Market statistics of an area, Area outline, Schools in an area."
          },
          "state": {
            "title": "State name",
            "maxLength": 50,
            "type": "string",
            "description": "The full name of a state, as an alternative to the State code when the area level is state. Used by: Market statistics of an area."
          },
          "location": {
            "title": "Location",
            "maxLength": 200,
            "type": "string",
            "description": "A place written as plain text, such as a city with its state code or a ZIP code. Area outline only; it overrides the other place fields. Used by: Area outline."
          },
          "byPropertyType": {
            "title": "Split by property type",
            "maxLength": 100,
            "type": "string",
            "description": "A property type code, such as land, condos or single_family, to report the statistics for that type of home. Leave it empty for one blended set of figures. Used by: Market statistics of an area."
          },
          "status": {
            "title": "Listing status",
            "pattern": "^(for_sale|for_rent|sold|ready_to_build|off_market|other)(,(for_sale|for_rent|sold|ready_to_build|off_market|other))*$",
            "type": "string",
            "description": "The kinds of listing counted inside the outline, separated by commas: for_sale, for_rent, sold, ready_to_build, off_market or other. Area outline only. Used by: Area outline."
          },
          "transportationType": {
            "title": "Travel mode",
            "enum": [
              "driving",
              "walking",
              "cycling",
              "public_transport"
            ],
            "type": "string",
            "description": "How the trip is made. Driving is used when you leave it empty. Used by: Commute time to a destination."
          },
          "withTraffic": {
            "title": "Include current traffic",
            "type": "boolean",
            "description": "Add live traffic to a driving estimate. It is on unless you switch it off, and other modes ignore it. Used by: Commute time to a destination."
          },
          "educationLevel": {
            "title": "School level",
            "enum": [
              "elementary",
              "middle",
              "high",
              "private"
            ],
            "type": "string",
            "description": "Only schools of this level. Used by: Schools in an area."
          },
          "schoolDistrictId": {
            "title": "School district ID",
            "maxLength": 100,
            "type": "string",
            "description": "The ID of a school district, as the school rows return it in their district block. Schools in an area uses it as a filter, and School district details needs it. Used by: Schools in an area, School district details."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}