{
  "openapi": "3.0.1",
  "info": {
    "title": "Wallapop Scraper — Ads, Prices & Monitor",
    "description": "Export second-hand listings from Wallapop (Spain) with price, location, condition and photos, or monitor a search and get only new items, price drops and removed items on each run. No login needed.",
    "version": "0.1",
    "x-build-id": "omAivyGD7Ry2JCmdt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muira_datamasters~wallapop-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muira_datamasters-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/muira_datamasters~wallapop-scraper/runs": {
      "post": {
        "operationId": "runs-sync-muira_datamasters-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/muira_datamasters~wallapop-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-muira_datamasters-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": {
          "searches": {
            "title": "Searches",
            "type": "array",
            "description": "One entry per search on wallapop.com. Each search can have:<br><b>query</b>: keywords as you would type them on Wallapop<br><b>category</b>: one of <code>bikes, electronics, phones, cars, furniture, fashion</code> (mapped to the matching Wallapop category)<br><b>siteCategory</b>: Wallapop category id (the <code>category_id</code> value in a search URL), for a category not in the list above. Overrides <i>category</i><br><b>location</b>: Spanish city or postcode (e.g. <code>Madrid</code>, <code>08001</code>). Wallapop always searches around a point, so searches without a location are centred on Madrid with no distance limit.<br><b>radiusKm</b>: Kilometres around the location.<br><b>label</b>: your own name for the search, copied to each result's <i>searchLabel</i><br>Each search needs at least a query, category, siteCategory or location. Example: <code>{\"query\":\"bicicleta gravel\",\"category\":\"bikes\",\"location\":\"Madrid\",\"radiusKm\":50}</code>"
          },
          "startUrls": {
            "title": "Wallapop search URLs",
            "type": "array",
            "description": "Optional. Paste search result links copied from your browser on es.wallapop.com, with any filters you set there. Each link is crawled like one search.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many ads in total across all searches (default 1,000). In Monitor mode it limits how many ads are checked per run (only changes are output); if left empty, Monitor checks 200 ads per run. Monitor checks are charged as a <i>monitor-scan</i> event per 100 ads."
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In euros. Ads without a price are left out when a price limit is set."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In euros. Ads without a price are left out when a price limit is set."
          },
          "condition": {
            "title": "Condition",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only items in these conditions. Empty = all. Items without a condition are kept.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "good",
                "used",
                "for_parts"
              ],
              "enumTitles": [
                "New",
                "Like new",
                "Good",
                "Used",
                "For parts / broken"
              ]
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "<b>Not available on Wallapop</b>: the site does not say whether a seller is private or a business, so this setting has no effect and all items are kept.",
            "default": "any"
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order in which Wallapop lists items. Monitor mode always uses newest first.",
            "default": "newest"
          },
          "monitor": {
            "title": "Monitor settings",
            "type": "object",
            "description": "Fill this in to switch from a full export to <b>Monitor mode</b>: each run outputs only what changed since the previous run with the same <b>stateKey</b>. Each run checks up to <i>Max results</i> ads (200 if left empty) and is charged a <i>monitor-scan</i> event per 100 ads checked, plus one event per change output. The first run only records the current ads and outputs nothing: it pays the monitor-scan events but no per-ad events. <b>stateKey</b> (required): any name for this watch list, e.g. <code>berlin-gravel</code>; reuse it on every scheduled run. <b>emit</b>: which changes to output, any of <code>new</code>, <code>priceDrop</code>, <code>priceIncrease</code>, <code>removed</code> (default: new, priceDrop, removed). Removed ads are reported only for searches that fit within <i>Max results</i>. Example: <code>{\"stateKey\": \"berlin-gravel\", \"emit\": [\"new\", \"priceDrop\", \"removed\"]}</code>. Leave empty for a normal export."
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "<b>No effect on Wallapop</b>: the search results already contain the full description and all photos, so no ad pages are opened and nothing extra is charged.",
            "default": false
          },
          "includeSellerNames": {
            "title": "Include business seller names",
            "type": "boolean",
            "description": "<b>No effect on Wallapop</b>: Wallapop does not expose seller type or names.",
            "default": false
          },
          "splitDeepSearches": {
            "title": "Split large searches to get all results",
            "type": "boolean",
            "description": "<b>No effect on Wallapop</b>: the site does not report how many results a search has, so searches cannot be split. Each search is followed as deep as Wallapop allows; use narrower searches (smaller radius, price range, category) to get more items.",
            "default": true
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) works for Wallapop in most cases; if the site starts blocking, the run switches to residential proxies in Spain on its own. You can also choose your own proxies.",
            "default": {
              "useApifyProxy": true
            }
          },
          "healthCheck": {
            "title": "Health check (for scheduled monitoring)",
            "type": "object",
            "description": "Optional. Marks the run as <b>failed</b> when the site returned too few ads or the main fields are no longer filled, so a scheduled run can alert you when Wallapop changes its site. Results are still saved and charged. Example: <code>{\"minAds\": 20, \"minFillRate\": 0.9, \"minPriceFillRate\": 0.75}</code>. <i>minFillRate</i> covers title, link and city."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}