{
  "openapi": "3.0.1",
  "info": {
    "title": "Yad2 Scraper: Israel Real Estate, Cars & Products",
    "description": "Scrape yad2.co.il: apartments for rent or sale, commercial property, cars, motorcycles and second-hand products. Paste a Yad2 search link or use town names in English. Prices, rooms, size, address, coordinates, make, year, hand, dealer, photos, optional full details.",
    "version": "0.0",
    "x-build-id": "89RsyV0U94pigWSRp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~yad2-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~yad2-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~yad2-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": {
          "startUrls": {
            "title": "Yad2 links",
            "type": "array",
            "description": "Search links copied from yad2.co.il (real estate for rent, for sale or commercial; cars, motorcycles, scooters, trucks; second-hand products by category) or single listing links (…/item/…). Filters in the link are kept. Leave empty to use the form below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "section": {
            "title": "What to search (form)",
            "enum": [
              "realEstate",
              "vehicles",
              "products"
            ],
            "type": "string",
            "description": "Used when no links are given.",
            "default": "realEstate"
          },
          "locations": {
            "title": "Towns or neighbourhoods",
            "type": "array",
            "description": "One search per place. English names of the larger towns work (Tel Aviv, Haifa, Petah Tikva, Herzliya…); anything else in Hebrew as Yad2 writes it, e.g. \"נווה צדק\". Real estate: required unless a region is picked. Vehicles and products: narrows to that area.",
            "items": {
              "type": "string"
            }
          },
          "dealType": {
            "title": "Real estate: deal",
            "enum": [
              "rent",
              "sale",
              "commercial",
              "commercialSale",
              "commercialRent"
            ],
            "type": "string",
            "description": "Real estate only.",
            "default": "rent"
          },
          "region": {
            "title": "Real estate: region",
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8"
            ],
            "type": "string",
            "description": "Search a whole region instead of towns. Ignored when towns are given."
          },
          "propertyTypes": {
            "title": "Real estate: property types",
            "type": "array",
            "description": "Leave empty for all types. Commercial types go with a commercial deal.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "garden_apartment",
                "studio_loft",
                "house",
                "rooftop_penthouse",
                "duplex",
                "triplex",
                "semi_detached",
                "housing_unit",
                "vacation",
                "parking",
                "farm",
                "plot",
                "residential_building",
                "storage",
                "basement",
                "offices",
                "shops",
                "clinics",
                "warehouses",
                "industrial",
                "halls",
                "office_building",
                "parking_lot",
                "hotel",
                "coworking",
                "general"
              ],
              "enumTitles": [
                "Apartment",
                "Garden apartment",
                "Studio / loft",
                "House / cottage",
                "Rooftop / penthouse",
                "Duplex",
                "Triplex",
                "Semi-detached",
                "Housing unit",
                "Vacation apartment",
                "Parking",
                "Farm",
                "Plot",
                "Residential building",
                "Storage",
                "Basement",
                "Offices",
                "Shops",
                "Clinics",
                "Warehouses",
                "Industrial",
                "Halls",
                "Office building",
                "Parking lot",
                "Hotel",
                "Coworking",
                "Other"
              ]
            }
          },
          "minRooms": {
            "title": "Real estate: min rooms",
            "type": "number",
            "description": "Half rooms allowed, e.g. 3.5."
          },
          "maxRooms": {
            "title": "Real estate: max rooms",
            "type": "number",
            "description": "Half rooms allowed."
          },
          "minSizeSqm": {
            "title": "Real estate: min size (m²)",
            "type": "integer",
            "description": "Smallest size in square metres."
          },
          "maxSizeSqm": {
            "title": "Real estate: max size (m²)",
            "type": "integer",
            "description": "Largest size in square metres."
          },
          "minFloor": {
            "title": "Real estate: lowest floor",
            "type": "integer",
            "description": "Yad2 accepts a lowest floor only."
          },
          "features": {
            "title": "Real estate: must have",
            "type": "array",
            "description": "Every one picked must be present.",
            "items": {
              "type": "string",
              "enum": [
                "parking",
                "elevator",
                "balcony",
                "shelter",
                "furnished",
                "renovated"
              ],
              "enumTitles": [
                "Parking",
                "Elevator",
                "Balcony",
                "Safe room (mamad)",
                "Furnished",
                "Renovated"
              ]
            }
          },
          "vehicleType": {
            "title": "Vehicles: type",
            "enum": [
              "car",
              "motorcycle",
              "scooter",
              "truck",
              "watercraft"
            ],
            "type": "string",
            "description": "Vehicles only.",
            "default": "car"
          },
          "makes": {
            "title": "Vehicles: makes",
            "type": "array",
            "description": "One search per make: English (Toyota, Hyundai, Mercedes) or Hebrew names, or the number from a Yad2 link (manufacturer=19). Leave empty for every make.",
            "items": {
              "type": "string"
            }
          },
          "modelId": {
            "title": "Vehicles: model number",
            "type": "integer",
            "description": "The number from a Yad2 link (model=…), with exactly one make."
          },
          "minYear": {
            "title": "Vehicles: from year",
            "type": "integer",
            "description": "Earliest production year."
          },
          "maxYear": {
            "title": "Vehicles: to year",
            "type": "integer",
            "description": "Latest production year."
          },
          "minMileageKm": {
            "title": "Vehicles: min km",
            "type": "integer",
            "description": "Lowest mileage."
          },
          "maxMileageKm": {
            "title": "Vehicles: max km",
            "type": "integer",
            "description": "Highest mileage."
          },
          "maxOwners": {
            "title": "Vehicles: max owners (hand)",
            "type": "integer",
            "description": "0 = new from the importer, 1 = first hand."
          },
          "fuelTypes": {
            "title": "Vehicles: fuel",
            "type": "array",
            "description": "Any of these.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "hybrid_petrol",
                "plugin_hybrid_petrol",
                "electric"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Hybrid",
                "Plug-in hybrid",
                "Electric"
              ]
            }
          },
          "gearbox": {
            "title": "Vehicles: gearbox",
            "type": "array",
            "description": "Any of these.",
            "items": {
              "type": "string",
              "enum": [
                "automatic",
                "manual"
              ],
              "enumTitles": [
                "Automatic",
                "Manual"
              ]
            }
          },
          "bodyTypes": {
            "title": "Vehicles: body",
            "type": "array",
            "description": "Any of these.",
            "items": {
              "type": "string",
              "enum": [
                "mini",
                "family",
                "executive",
                "sport",
                "jeep",
                "pickup",
                "crossover"
              ],
              "enumTitles": [
                "Mini",
                "Family",
                "Executive",
                "Sport",
                "SUV / jeep",
                "Pickup",
                "Crossover"
              ]
            }
          },
          "dealersOnly": {
            "title": "Vehicles: dealers and importers only",
            "type": "boolean",
            "description": "Leave off for private sellers and dealers.",
            "default": false
          },
          "productCategories": {
            "title": "Products: categories",
            "type": "array",
            "description": "Second-hand products: one search per category. Yad2 has no keyword search in this section.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "4",
                "5",
                "6",
                "9",
                "11",
                "12",
                "14",
                "18",
                "20",
                "25",
                "28",
                "32",
                "37",
                "38",
                "39",
                "40",
                "45",
                "49",
                "56",
                "61",
                "69",
                "71"
              ],
              "enumTitles": [
                "Electrical appliances",
                "Furniture",
                "Musical instruments",
                "Mobile phones",
                "Computers",
                "Work tools",
                "Baby and child",
                "Sport",
                "Bicycles",
                "Fashion",
                "Photography",
                "Office",
                "Business equipment",
                "Bathroom and plumbing",
                "Businesses for sale",
                "Medical",
                "Scooters",
                "Stock",
                "Home appliances",
                "Gardening",
                "Industrial",
                "Portable housing",
                "Events",
                "Toys"
              ]
            }
          },
          "minPrice": {
            "title": "Min price (₪)",
            "type": "integer",
            "description": "For rentals, the monthly rent. Listings without a price are left out when set."
          },
          "maxPrice": {
            "title": "Max price (₪)",
            "type": "integer",
            "description": "For rentals, the monthly rent. Listings without a price are left out when set."
          },
          "onlyWithPrice": {
            "title": "Only listings with a price",
            "type": "boolean",
            "description": "Applies to links too.",
            "default": false
          },
          "onlyWithPhotos": {
            "title": "Only listings with photos",
            "type": "boolean",
            "description": "Applies to links too.",
            "default": false
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "private",
              "agency",
              "dealer"
            ],
            "type": "string",
            "description": "Filters the rows after the search; filtered rows are not charged.",
            "default": "any"
          },
          "sortBy": {
            "title": "Order (vehicles, products)",
            "enum": [
              "default",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Real estate keeps Yad2's order.",
            "default": "default"
          },
          "maxResultsPerSearch": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Each search (link, town, make or category) stops here.",
            "default": 200
          },
          "includeDetails": {
            "title": "Full listing details",
            "type": "boolean",
            "description": "Adds the description, dates (posted, updated, expires) and, by section, mileage, gearbox, colour, test date and equipment for vehicles, or amenities, entry date, balconies, parking and floors for real estate. Charged as a separate event per listing.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}