{
  "openapi": "3.0.1",
  "info": {
    "title": "Yad2 New Listings Monitor - New Apartments Every 15 Minutes",
    "description": "Watch a Yad2 real-estate search and get only the new listings and price changes on every scheduled run. Built for frequent checks: cheap reads, no old listings sent as new, one check at a time per monitor.",
    "version": "0.1",
    "x-build-id": "CyWmajrdGIZqIz6e9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadproof~yad2-new-listings-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadproof-yad2-new-listings-monitor",
        "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/leadproof~yad2-new-listings-monitor/runs": {
      "post": {
        "operationId": "runs-sync-leadproof-yad2-new-listings-monitor",
        "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/leadproof~yad2-new-listings-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-leadproof-yad2-new-listings-monitor",
        "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": {
          "transactionType": {
            "title": "Transaction",
            "enum": [
              "rent",
              "sale",
              "commercial"
            ],
            "type": "string",
            "description": "Which Yad2 real-estate board to watch.",
            "default": "rent"
          },
          "filters": {
            "title": "Filters",
            "type": "object",
            "description": "Real-estate filters for the search to watch. City is the usual starting point.",
            "properties": {
              "city": {
                "title": "City",
                "type": "string",
                "description": "City or locality as Yad2 shows it, or several separated by commas. Common English names (Tel Aviv, Jerusalem, Haifa) are accepted.",
                "editor": "textfield"
              },
              "area": {
                "title": "Area",
                "type": "string",
                "description": "Yad2 area name, for example \"אזור בית שמש והסביבה\".",
                "editor": "textfield"
              },
              "minPrice": {
                "title": "Minimum price (ILS)",
                "type": "integer",
                "description": "Inclusive minimum price in ILS. Applied by the source and checked again on every row.",
                "minimum": 0
              },
              "maxPrice": {
                "title": "Maximum price (ILS)",
                "type": "integer",
                "description": "Inclusive maximum price in ILS. Applied by the source and checked again on every row.",
                "minimum": 0
              },
              "rooms": {
                "title": "Exact rooms",
                "type": "number",
                "description": "Real estate only. Exact room count, including half rooms.",
                "minimum": 0
              },
              "minRooms": {
                "title": "Minimum rooms",
                "type": "number",
                "description": "Real estate only. Inclusive minimum.",
                "minimum": 0
              },
              "maxRooms": {
                "title": "Maximum rooms",
                "type": "number",
                "description": "Real estate only. Inclusive maximum.",
                "minimum": 0
              },
              "propertyType": {
                "title": "Property type",
                "type": "string",
                "description": "Real estate only. Source property type; apartment and house aliases are supported.",
                "editor": "textfield"
              },
              "minSize": {
                "title": "Minimum size (sqm)",
                "type": "integer",
                "description": "Real estate only. Inclusive minimum.",
                "minimum": 0
              },
              "maxSize": {
                "title": "Maximum size (sqm)",
                "type": "integer",
                "description": "Real estate only. Inclusive maximum.",
                "minimum": 0
              },
              "floor": {
                "title": "Floor",
                "type": "integer",
                "description": "Real estate only. Exact floor; basement values can be negative."
              },
              "priceDropped": {
                "title": "Price dropped",
                "type": "boolean",
                "description": "Real estate only. True keeps listings whose price was lowered (Yad2 shows the old price; Madlan keeps the price history)."
              }
            },
            "additionalProperties": false
          },
          "searchUrls": {
            "title": "Yad2 search URLs",
            "type": "array",
            "description": "Optional. Public Yad2 real-estate search URLs copied from the browser, for example https://www.yad2.co.il/realestate/rent/tel-aviv-area?city=5000&minRooms=3. Use these or Filters.",
            "items": {
              "type": "string"
            }
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of this watch, for example tlv-rent. Each name keeps its own memory, so use one name per search. Without a name the memory is keyed to the search itself."
          },
          "includePriceChanges": {
            "title": "Deliver price changes",
            "type": "boolean",
            "description": "Also deliver remembered listings whose price changed, marked changeType price_changed. Charged like a new listing.",
            "default": true
          },
          "includeDetails": {
            "title": "Open new listings",
            "type": "boolean",
            "description": "Read each new listing once for its publish date, description, amenities and broker licence. Only new listings are opened.",
            "default": true
          },
          "webhookUrl": {
            "title": "Alert webhook URL",
            "type": "string",
            "description": "Optional. Receives a JSON POST when a check is partial or fails, with the reason."
          },
          "feedDepth": {
            "title": "Pages read at each segment start",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Yad2 orders results in segments and a new listing lands at the top of its segment. This many pages are read at the start of each segment on every check.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Israeli residential proxy by default. Every request uses a new IP.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IL"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}