{
  "openapi": "3.0.1",
  "info": {
    "title": "Wallapop API & Scraper: Listings, Prices, Sellers & Alerts",
    "description": "Scrape Wallapop without login: listings in Spain, Portugal and Italy by keyword, category, city, price and condition, or from a search, listing or seller URL. Price, photos, location, seller rating, full description. No depth limit, new-listing alerts. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "LPZmxsJPCN9EqpZ2H"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~wallapop-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-wallapop-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/s_actors~wallapop-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-wallapop-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/s_actors~wallapop-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-wallapop-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": "Keywords",
            "type": "array",
            "description": "What to search for, as you would type it on Wallapop: \"iphone 15\", \"bicicleta\", \"sofá\", \"PlayStation 5\". One search per keyword. Leave empty to list a whole category (choose one below) or paste URLs.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "ES",
              "PT",
              "IT"
            ],
            "type": "string",
            "description": "Wallapop market: Spain, Portugal or Italy. It sets the default point of the search (the capital) and the language of the texts. Listings from the whole country are returned unless you choose a place and a radius.",
            "default": "ES"
          },
          "location": {
            "title": "City or postcode",
            "type": "string",
            "description": "Only listings around this place (radius below), for example \"Valencia\", \"Torrejón de Ardoz\", \"46001\", \"Porto\", \"Milano\". Empty = the whole country, nearest to the capital first."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Distance around the city or postcode. 30 km if a place is given and this is empty. Without a place the radius is measured from the capital of the country."
          },
          "startUrls": {
            "title": "Wallapop URLs",
            "type": "array",
            "description": "Search pages copied from your browser with the filters already set (wallapop.com/search?...), links of single listings (wallapop.com/item/...) or of sellers (wallapop.com/user/...: all their listings). A search URL keeps its own filters (brand, model, year, km ...); the form adds the missing ones.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Listings per search",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum listings for each keyword and each URL. Wallapop has no depth limit: tens of thousands per search are possible (about 450 listings per second).",
            "default": 100
          },
          "category": {
            "title": "Category",
            "enum": [
              "100",
              "14000",
              "12800",
              "12465",
              "200",
              "24200",
              "12579",
              "17000",
              "12467",
              "13100",
              "12463",
              "12461",
              "18000",
              "19000",
              "20000",
              "21000",
              "13200",
              "12485"
            ],
            "type": "string",
            "description": "Only this top-level category. With no keywords it lists the whole category."
          },
          "minPrice": {
            "title": "Minimum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this amount."
          },
          "maxPrice": {
            "title": "Maximum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this amount."
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Only listings in these conditions. Empty = any. \"New\" is unopened or in the box.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "as_good_as_new",
                "good",
                "fair",
                "has_given_it_all"
              ],
              "enumTitles": [
                "New",
                "As good as new",
                "Good",
                "Fair",
                "Has given it all"
              ]
            }
          },
          "shippingOnly": {
            "title": "Shipping available",
            "type": "boolean",
            "description": "Only listings that can be shipped.",
            "default": false
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "today",
              "lastWeek",
              "lastMonth"
            ],
            "type": "string",
            "description": "Only listings published today, in the last week or in the last month. Empty = any time."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "priceAsc",
              "priceDesc",
              "closest"
            ],
            "type": "string",
            "description": "Newest first is the steadiest while listings are added during a run and is what monitoring needs.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Full details",
            "type": "boolean",
            "description": "Open every listing and its seller to add the full description, brand, model, condition and other attributes, views, favorites and chats, and the seller's name, type (private or business), registration date, city, rating, reviews and number of sales. Same price per listing, slower run.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new and price-changed",
            "type": "boolean",
            "description": "Output only listings that were not returned for the same search in the previous runs with the same monitor name, plus listings whose price changed (fields isNew, previousPrice, priceChange, priceChangePct). Sorted newest first, a run stops after three pages with nothing new. Schedule the Actor to get new listings every few minutes. The first run returns everything.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen listings apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}