{
  "openapi": "3.0.1",
  "info": {
    "title": "Wallapop Cars Scraper: Used Cars & Dealer Leads (ES, IT, PT)",
    "description": "Scrape Wallapop used-car listings with car filters: brand, model, year, km, engine, gearbox, horsepower, price and seller type. Get dealer contacts (phone, website, rating) for lead generation in Spain, Italy and Portugal. From $0.35 per 1,000 cars.",
    "version": "0.0",
    "x-build-id": "C9DjmnWEQnCWS3PA7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epicscrapers~wallapop-cars-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epicscrapers-wallapop-cars-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/epicscrapers~wallapop-cars-scraper/runs": {
      "post": {
        "operationId": "runs-sync-epicscrapers-wallapop-cars-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/epicscrapers~wallapop-cars-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-epicscrapers-wallapop-cars-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "What to search for, one search per keyword (for example `golf gti` or `bmw 320d`). Leave empty to browse the whole Cars category with the filters below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Wallapop URLs",
            "type": "array",
            "description": "Paste search URLs from your browser (all filters in the URL are kept) or listing URLs (`wallapop.com/item/...`). Works with es., it. and pt.wallapop.com.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSearch": {
            "title": "Max cars per search",
            "minimum": 0,
            "type": "integer",
            "description": "Cars saved per keyword or search URL. `0` means no limit.",
            "default": 100
          },
          "country": {
            "title": "Country",
            "enum": [
              "ES",
              "IT",
              "PT"
            ],
            "type": "string",
            "description": "Wallapop market to search. Results are limited to this country unless you set your own latitude and longitude.",
            "default": "ES"
          },
          "city": {
            "title": "City",
            "enum": [
              "",
              "madrid",
              "barcelona",
              "valencia",
              "sevilla",
              "zaragoza",
              "malaga",
              "murcia",
              "palma",
              "las-palmas",
              "bilbao",
              "alicante",
              "cordoba",
              "valladolid",
              "vigo",
              "granada",
              "a-coruna",
              "roma",
              "milano",
              "napoli",
              "torino",
              "palermo",
              "genova",
              "bologna",
              "firenze",
              "bari",
              "venezia",
              "lisboa",
              "porto",
              "braga",
              "coimbra",
              "faro"
            ],
            "type": "string",
            "description": "Search around a city instead of the whole country. The city sets the country. Radius defaults to 30 km.",
            "default": ""
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "type": "integer",
            "description": "Only cars within this distance of the city or your coordinates. Leave empty for the default (whole country, or 30 km around a city)."
          },
          "latitude": {
            "title": "Latitude",
            "type": "string",
            "description": "Custom search point, for example `40.4168`. Overrides the city. Set longitude too."
          },
          "longitude": {
            "title": "Longitude",
            "type": "string",
            "description": "Custom search point, for example `-3.7038`."
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Car make, for example `Volkswagen`, `Fiat` or `BMW`. Case does not matter."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model name, for example `Golf` or `Panda`. Best used together with the brand."
          },
          "minYear": {
            "title": "Min year",
            "minimum": 1950,
            "type": "integer",
            "description": "First registration year, for example `2018`."
          },
          "maxYear": {
            "title": "Max year",
            "minimum": 1950,
            "type": "integer",
            "description": "Last registration year."
          },
          "minKm": {
            "title": "Min kilometres",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum mileage."
          },
          "maxKm": {
            "title": "Max kilometres",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum mileage, for example `120000`."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "In the country's currency (EUR)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "In the country's currency (EUR)."
          },
          "engine": {
            "title": "Engine",
            "type": "array",
            "description": "Only cars with these fuel types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "gasoil",
                "gasoline",
                "hybride",
                "hybride_plugin",
                "electric-hybrid",
                "lpg",
                "cng",
                "others"
              ],
              "enumTitles": [
                "Diesel",
                "Gasoline",
                "Hybrid",
                "Hybrid plug-in",
                "Electric",
                "LPG",
                "CNG",
                "Others"
              ]
            }
          },
          "gearbox": {
            "title": "Gearbox",
            "enum": [
              "",
              "manual",
              "automatic",
              "semiautomatic"
            ],
            "type": "string",
            "description": "Only cars with this gearbox. Leave empty for all."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "",
              "private",
              "professional"
            ],
            "type": "string",
            "description": "Only cars sold by private sellers or by professional dealers. Leave empty for all."
          },
          "bodyType": {
            "title": "Body type",
            "enum": [
              "",
              "small_car",
              "coupe_cabrio",
              "sedan",
              "family_car",
              "mini_van",
              "4X4",
              "van",
              "convertible_car",
              "pickup_car",
              "others"
            ],
            "type": "string",
            "description": "Only cars with this body type. Leave empty for all."
          },
          "color": {
            "title": "Colour",
            "enum": [
              "",
              "beige",
              "black",
              "blue",
              "brown",
              "gold",
              "gray",
              "green",
              "maroon",
              "orange",
              "pink",
              "purple",
              "red",
              "silver",
              "violet",
              "white",
              "yellow",
              "other"
            ],
            "type": "string",
            "description": "Only cars in this colour. Leave empty for all."
          },
          "hasWarranty": {
            "title": "Warranty included",
            "type": "boolean",
            "description": "Only cars that include a warranty of at least 1 year.",
            "default": false
          },
          "minHorsepower": {
            "title": "Min horsepower",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum engine power in HP."
          },
          "maxHorsepower": {
            "title": "Max horsepower",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum engine power in HP."
          },
          "minSeats": {
            "title": "Min seats",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of seats."
          },
          "maxSeats": {
            "title": "Max seats",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of seats."
          },
          "minDoors": {
            "title": "Min doors",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of doors."
          },
          "maxDoors": {
            "title": "Max doors",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of doors."
          },
          "postedWithin": {
            "title": "Posted or updated within",
            "enum": [
              "",
              "today",
              "lastWeek",
              "lastMonth"
            ],
            "type": "string",
            "description": "Wallapop's own date filter. It uses the last-modified date, so older listings that were recently edited are included.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "most_relevance",
              "newest",
              "closest",
              "price_low_to_high",
              "price_high_to_low"
            ],
            "type": "string",
            "description": "Order of results. Use `Newest` to catch new listings first.",
            "default": "most_relevance"
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Adds views, favorites, body type, doors, seats, eco label, warranty months and all attributes. One extra request per car, charged per car.",
            "default": false
          },
          "includeSellerInfo": {
            "title": "Include seller info",
            "type": "boolean",
            "description": "Adds seller name, profile URL, rating, review count, items sold and professional status, plus phone, website and address for dealers. Good for dealer lead generation. Charged per car.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}