{
  "openapi": "3.0.1",
  "info": {
    "title": "Yad2 Scraper",
    "description": "Scrape Yad2, Israel's largest classifieds site: homes for sale or rent, cars and vehicles, new construction projects, recorded sale prices and marketplace items, with full listing details.",
    "version": "0.1",
    "x-build-id": "B5iGlk8RZ2Ok1iofT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happyendpoint~yad2-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happyendpoint-yad2-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~yad2-scraper/runs": {
      "post": {
        "operationId": "runs-sync-happyendpoint-yad2-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~yad2-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-happyendpoint-yad2-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",
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "health-check",
              "search-real-estate",
              "search-vehicles",
              "listing-details",
              "new-projects",
              "sold-prices",
              "marketplace-latest"
            ],
            "type": "string",
            "description": "**Health check** (default) only confirms the actor is working and saves one status row. To get data, pick another operation, for example **Search real estate** or **Search vehicles**.",
            "default": "health-check"
          },
          "dealType": {
            "title": "Deal Type",
            "enum": [
              "forsale",
              "rent",
              "commercial"
            ],
            "type": "string",
            "description": "**[Search real estate]** Homes for sale, homes for rent, or commercial property (offices, shops, warehouses).",
            "default": "forsale"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "**[Search real estate, New projects, Sold prices]** Cities, areas or neighborhoods. Use English city names (`Tel Aviv`, `Haifa`, `Jerusalem`), Hebrew names (`תל אביב יפו`, `פלורנטין`), or `Neighborhood, City` (`Florentin, Tel Aviv`). Each location is searched in turn.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region",
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8"
            ],
            "type": "string",
            "description": "**[Search real estate, New projects, Sold prices]** Used only when **Locations** is empty. With no location and no region, real estate search covers all of Israel."
          },
          "propertyTypes": {
            "title": "Property Types",
            "type": "array",
            "description": "**[Search real estate]** Leave empty for all types. Not used for commercial property.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "3",
                "5",
                "6",
                "7",
                "39",
                "4",
                "51",
                "11",
                "49",
                "25",
                "32",
                "61",
                "33",
                "44",
                "30",
                "45",
                "43"
              ],
              "enumTitles": [
                "Apartment",
                "Garden apartment",
                "Private house / cottage",
                "Rooftop / penthouse",
                "Duplex",
                "Semi-detached house",
                "Studio / loft",
                "Triplex",
                "Housing unit",
                "Basement / ground floor",
                "Vacation property",
                "Farm / estate",
                "Assisted living",
                "Plot of land",
                "Residential building",
                "Parking space",
                "Storage room",
                "Sublet (rent only)"
              ]
            }
          },
          "minPrice": {
            "title": "Min Price (₪)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search real estate, Search vehicles, New projects]** Lowest price in shekels. For rentals this is the monthly rent."
          },
          "maxPrice": {
            "title": "Max Price (₪)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search real estate, Search vehicles, New projects]** Highest price in shekels. For rentals this is the monthly rent."
          },
          "minRooms": {
            "title": "Min Rooms",
            "minimum": 0,
            "type": "number",
            "description": "**[Search real estate, New projects]** For example `3` or `3.5`."
          },
          "maxRooms": {
            "title": "Max Rooms",
            "minimum": 0,
            "type": "number",
            "description": "**[Search real estate, New projects]** For example `4`."
          },
          "minSize": {
            "title": "Min Size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search real estate]** Smallest built area in square meters."
          },
          "maxSize": {
            "title": "Max Size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search real estate]** Largest built area in square meters."
          },
          "minFloor": {
            "title": "Min Floor",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search real estate]** Lowest floor (0 = ground floor)."
          },
          "maxFloor": {
            "title": "Max Floor",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search real estate]** Highest floor."
          },
          "parking": {
            "title": "Parking",
            "type": "boolean",
            "description": "**[Search real estate]** Only listings with parking.",
            "default": false
          },
          "elevator": {
            "title": "Elevator",
            "type": "boolean",
            "description": "**[Search real estate]** Only listings with an elevator.",
            "default": false
          },
          "balcony": {
            "title": "Balcony",
            "type": "boolean",
            "description": "**[Search real estate]** Only listings with a balcony.",
            "default": false
          },
          "airConditioning": {
            "title": "Air Conditioning",
            "type": "boolean",
            "description": "**[Search real estate]** Only listings with air conditioning.",
            "default": false
          },
          "safeRoom": {
            "title": "Safe Room (Mamad)",
            "type": "boolean",
            "description": "**[Search real estate]** Only listings with a safe room or shelter.",
            "default": false
          },
          "furnished": {
            "title": "Furnished",
            "type": "boolean",
            "description": "**[Search real estate]** Only furnished listings.",
            "default": false
          },
          "renovated": {
            "title": "Renovated",
            "type": "boolean",
            "description": "**[Search real estate]** Only renovated listings.",
            "default": false
          },
          "accessible": {
            "title": "Accessible",
            "type": "boolean",
            "description": "**[Search real estate]** Only listings accessible for people with disabilities.",
            "default": false
          },
          "petsAllowed": {
            "title": "Pets Allowed",
            "type": "boolean",
            "description": "**[Search real estate]** Only rentals that allow pets (for rent only).",
            "default": false
          },
          "newFromContractor": {
            "title": "New From Developer",
            "type": "boolean",
            "description": "**[Search real estate]** Only new homes sold directly by the developer.",
            "default": false
          },
          "onlyWithPrice": {
            "title": "Only With Price",
            "type": "boolean",
            "description": "**[Search real estate, Search vehicles]** Skip listings that don't show a price.",
            "default": false
          },
          "vehicleType": {
            "title": "Vehicle Type",
            "enum": [
              "cars",
              "motorcycles",
              "scooters",
              "trucks",
              "watercraft",
              "specials"
            ],
            "type": "string",
            "description": "**[Search vehicles]** The kind of vehicle to search.",
            "default": "cars"
          },
          "manufacturer": {
            "title": "Manufacturer",
            "type": "string",
            "description": "**[Search vehicles]** Car brand in English or Hebrew, for example `Toyota`, `Hyundai`, `Kia`, `Mazda`. Names work for cars; for other vehicle types use **Search URLs**."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "**[Search vehicles]** Car model in English or Hebrew, for example `Corolla`, `Tucson`, `Mazda 3`. Needs a **Manufacturer**. If the name isn't recognised, the run stops and lists the available models."
          },
          "minYear": {
            "title": "Min Year",
            "minimum": 1950,
            "type": "integer",
            "description": "**[Search vehicles]** Oldest production year, for example `2018`."
          },
          "maxYear": {
            "title": "Max Year",
            "minimum": 1950,
            "type": "integer",
            "description": "**[Search vehicles]** Newest production year."
          },
          "minKm": {
            "title": "Min Kilometers",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search vehicles]** Lowest mileage in km."
          },
          "maxKm": {
            "title": "Max Kilometers",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search vehicles]** Highest mileage in km, for example `100000`."
          },
          "maxHand": {
            "title": "Max Owners (Hand)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search vehicles]** Highest number of previous owners. `1` = first hand, `2` = second hand."
          },
          "gearbox": {
            "title": "Gearbox",
            "enum": [
              "102",
              "101"
            ],
            "type": "string",
            "description": "**[Search vehicles]** Leave empty for any gearbox."
          },
          "engineTypes": {
            "title": "Engine Types",
            "type": "array",
            "description": "**[Search vehicles]** Leave empty for any engine type.",
            "items": {
              "type": "string",
              "enum": [
                "1101",
                "1102",
                "2101",
                "5104",
                "6103"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Hybrid (petrol)",
                "Plug-in hybrid (petrol)",
                "Electric"
              ]
            }
          },
          "vehicleSort": {
            "title": "Sort Order",
            "enum": [
              "1",
              "3",
              "4",
              "6"
            ],
            "type": "string",
            "description": "**[Search vehicles]** ",
            "default": "1"
          },
          "onlyPriceDropped": {
            "title": "Only Price Drops",
            "type": "boolean",
            "description": "**[Search vehicles]** Only listings whose price was lowered.",
            "default": false
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "**[Search real estate, Search vehicles]** Optional. Filter on www.yad2.co.il, then copy the address from your browser, for example `https://www.yad2.co.il/realestate/rent?city=5000&rooms=3-4`. When set, these searches are used instead of the filters above.",
            "items": {
              "type": "string"
            }
          },
          "listingUrls": {
            "title": "Listing URLs or IDs",
            "type": "array",
            "description": "**[Listing details, Sold prices]** Yad2 listing addresses or IDs (the 8-character code at the end, for example `eyp7cn9m`). **Listing details** works for real estate, vehicles and marketplace items. **Sold prices** returns recorded sales near each real estate listing; leave this and **Locations** empty to get the latest recorded sales across Israel.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include Full Details",
            "type": "boolean",
            "description": "**[Search real estate, Search vehicles, Marketplace]** Also load each listing's full page: description, all features, mileage, gearbox, color, dates and more. Slower, since every listing is loaded one by one.",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "type": "integer",
            "description": "**[All operations]** Maximum number of results to save in this run. The run stops at Max Items or Max Pages, whichever comes first. Free plan runs are limited to 100.",
            "default": 100
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 1,
            "type": "integer",
            "description": "**[Search real estate, Search vehicles, Sold prices, Marketplace]** How many result pages to load for each search (each location or search URL). One page has about 40 listings (36 on the marketplace). For Sold prices, it is the number of pages of homes for sale whose nearby sales are collected. The default of 1 keeps a first run quick; raise it to get more, for example 5 pages for about 200 listings.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}