{
  "openapi": "3.0.1",
  "info": {
    "title": "US Real Estate Lead Finder",
    "description": "An Apify actor that finds leads, not just listings, across the US real estate market. Built on top of HomeHarvest (Realtor.com data), it scores every record on a 0–100 lead-quality scale, tags motivated-seller signals, and extracts full agent contact info for outreach.",
    "version": "0.0",
    "x-build-id": "8oiwWph8vMDaEABON"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moving_beacon-owner1~us-real-estate-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-us-real-estate-lead-finder",
        "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/moving_beacon-owner1~us-real-estate-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-moving_beacon-owner1-us-real-estate-lead-finder",
        "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/moving_beacon-owner1~us-real-estate-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-moving_beacon-owner1-us-real-estate-lead-finder",
        "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": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "US locations to search. Accepts cities ('Austin, TX'), zip codes ('78704'), counties, or full addresses (enables the radius search).",
            "default": [
              "Austin, TX"
            ],
            "items": {
              "type": "string"
            }
          },
          "listing_type": {
            "title": "Listing type",
            "enum": [
              "for_sale",
              "for_rent",
              "sold",
              "pending"
            ],
            "type": "string",
            "description": "Which type of listing to fetch.",
            "default": "for_sale"
          },
          "property_type": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Restrict to these property types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "single_family",
                "multi_family",
                "condos",
                "condo_townhome",
                "condo_townhome_rowhome_coop",
                "townhomes",
                "duplex_triplex",
                "farm",
                "land",
                "mobile"
              ]
            },
            "default": []
          },
          "past_days": {
            "title": "Past days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Look back this many days from today. Ignored if date_from is set.",
            "default": 30
          },
          "date_from": {
            "title": "Date from (overrides past_days)",
            "type": "string",
            "description": "YYYY-MM-DD. Takes priority over past_days when set.",
            "default": ""
          },
          "date_to": {
            "title": "Date to",
            "type": "string",
            "description": "YYYY-MM-DD. Used together with date_from.",
            "default": ""
          },
          "radius": {
            "title": "Radius (miles)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Search radius around an address. Only effective when location is a full street address.",
            "default": 0
          },
          "foreclosure_only": {
            "title": "Foreclosures only",
            "type": "boolean",
            "description": "If true, only fetch foreclosure / REO / bank-owned listings.",
            "default": false
          },
          "mls_only": {
            "title": "MLS-listed only",
            "type": "boolean",
            "description": "If true, only return properties with a valid MLS ID (excludes off-market).",
            "default": false
          },
          "require_agent_contact": {
            "title": "Require agent contact",
            "type": "boolean",
            "description": "Drop leads with no agent name/phone/email.",
            "default": false
          },
          "motivated_sellers_only": {
            "title": "Motivated sellers only",
            "type": "boolean",
            "description": "Keep only leads flagged as motivated (foreclosure, high DOM, price-reduced, expired).",
            "default": false
          },
          "min_lead_score": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0–100. Filters out anything below this score.",
            "default": 0
          },
          "require_lead_tags": {
            "title": "Required lead tags",
            "uniqueItems": true,
            "type": "array",
            "description": "Listing must have AT LEAST ONE of these tags (OR logic).",
            "items": {
              "type": "string",
              "enum": [
                "FORECLOSURE",
                "HIGH_DOM_60",
                "HIGH_DOM_90",
                "HIGH_DOM_180",
                "PRICE_REDUCED",
                "EXPIRED",
                "PENDING",
                "SOLD",
                "NEW_CONSTRUCTION",
                "HIGH_VALUE",
                "HAS_AGENT_CONTACT"
              ]
            },
            "default": []
          },
          "min_price": {
            "title": "Min price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out listings below this price. 0 = no minimum.",
            "default": 0
          },
          "max_price": {
            "title": "Max price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out listings above this price. 0 = no maximum.",
            "default": 0
          },
          "min_beds": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bedrooms. 0 = no minimum.",
            "default": 0
          },
          "min_baths": {
            "title": "Min bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of full bathrooms. 0 = no minimum.",
            "default": 0
          },
          "min_sqft": {
            "title": "Min square feet",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum interior square footage. 0 = no minimum.",
            "default": 0
          },
          "min_days_on_market": {
            "title": "Min days on market",
            "minimum": 0,
            "type": "integer",
            "description": "Use 60 / 90 / 180 to surface stale listings.",
            "default": 0
          },
          "max_days_on_market": {
            "title": "Max days on market",
            "minimum": 0,
            "type": "integer",
            "description": "Drop listings older than this many days on market. 0 = no maximum.",
            "default": 0
          },
          "max_results_per_location": {
            "title": "Max results per location",
            "minimum": 0,
            "type": "integer",
            "description": "Cap leads pushed per location. 0 = unlimited.",
            "default": 0
          },
          "output_format": {
            "title": "Output format",
            "enum": [
              "full",
              "leads_only"
            ],
            "type": "string",
            "description": "'full' returns every HomeHarvest column; 'leads_only' returns a focused outreach-ready subset.",
            "default": "full"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}