{
  "openapi": "3.0.1",
  "info": {
    "title": "Israel Property Market Signals — Yad2 & Madlan Analytics",
    "description": "Turn Israeli property listings into market intelligence: days on market, price-drop history, motivated-seller scores and per-neighbourhood absorption. Works with any listings scraper.",
    "version": "1.0",
    "x-build-id": "ojN2zP9hO5l6fbhyL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/competent_gatekeeper~israel-property-market-signals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-competent_gatekeeper-israel-property-market-signals",
        "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/competent_gatekeeper~israel-property-market-signals/runs": {
      "post": {
        "operationId": "runs-sync-competent_gatekeeper-israel-property-market-signals",
        "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/competent_gatekeeper~israel-property-market-signals/run-sync": {
      "post": {
        "operationId": "run-sync-competent_gatekeeper-israel-property-market-signals",
        "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": {
          "sourceDatasetId": {
            "title": "Listings dataset",
            "type": "string",
            "description": "Pick the dataset produced by your listings scraper run — a Yad2, Madlan or Homeless Actor, or any source with a price and an ID per record. This Actor analyses listings; it does not fetch them, so nothing is charged twice."
          },
          "listings": {
            "title": "Or paste listings directly",
            "type": "array",
            "description": "Listing records as JSON, instead of a dataset ID. Handy for testing. Each record needs an identifier (id, listingId or adNumber) and a price (price, priceIls or askingPrice); rooms, squareMeters, floor, city and neighborhood are all used when present."
          },
          "source": {
            "title": "Source label",
            "enum": [
              "yad2",
              "madlan",
              "homeless",
              "other"
            ],
            "type": "string",
            "description": "Keeps listing IDs from different sites separate, so the same number on Yad2 and Madlan is never treated as one property. Use a consistent value per tracker.",
            "default": "yad2"
          },
          "trackerId": {
            "title": "Tracker ID",
            "pattern": "^[a-zA-Z0-9_-]{1,50}$",
            "type": "string",
            "description": "The memory this run belongs to. Use one per market you follow — for example tlv-sale or haifa-rent — and always the same value for the same market. Mixing markets into one tracker contaminates every median and cannot be undone afterwards.",
            "default": "default"
          },
          "delistAfterRuns": {
            "title": "Runs absent before a listing counts as gone",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many consecutive runs a listing must be missing before it is reported as delisted. 2 is recommended for scheduled runs: it costs one day of latency and stops a single failed scrape being read as a wave of sales.",
            "default": 2
          },
          "snapshotDate": {
            "title": "Backfill: date this snapshot was taken",
            "type": "string",
            "description": "Only for loading old data. If you have archived scrapes, run them through oldest first with the date each was captured (YYYY-MM-DD) and the Actor builds real history in minutes instead of waiting weeks for it. Leave empty for normal daily runs."
          },
          "resetHistory": {
            "title": "Start this tracker over",
            "type": "boolean",
            "description": "Discards everything remembered for this Tracker ID and begins a new baseline. Days on market restarts at zero for every listing. There is no undo.",
            "default": false
          },
          "dryRun": {
            "title": "Dry run — do not save history",
            "type": "boolean",
            "description": "Computes and returns results without recording them. Use it to try different score weights against the same data without disturbing the history you have built up.",
            "default": false
          },
          "minMotivatedScore": {
            "title": "Minimum motivated-seller score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return listings scoring at or above this, from 0 to 100. Leave at 0 to get everything; set around 60 to see just the sellers who look ready to negotiate. You are billed on rows returned, so filtering here lowers your cost.",
            "default": 0
          },
          "emitAreaReport": {
            "title": "Include the neighbourhood report",
            "type": "boolean",
            "description": "Adds one row per neighbourhood with median price per m², median days on market, share of listings that have cut price, absorption rate and the agent/private split.",
            "default": true
          },
          "minAreaSample": {
            "title": "Minimum listings for a reliable neighbourhood",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Neighbourhoods with fewer active listings than this are still returned, but flagged lowConfidence — their medians are drawn from too small a sample to rely on.",
            "default": 3
          },
          "scoreWeights": {
            "title": "Motivated-seller weights",
            "type": "object",
            "description": "Retune how the score is built. staleness rewards time on market, dropDepth rewards how far the price has fallen, dropCount rewards repeated cuts. Defaults are 45 / 40 / 15. Pair this with Dry run while you experiment."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}