{
  "openapi": "3.0.1",
  "info": {
    "title": "Wallapop Scraper - Spanish Classifieds by Keyword",
    "description": "[Limited Launch Offer $0.25/1K] Wallapop scraper: listings by keyword, category, price and condition with description, images, location and date. Deep paging. No login.",
    "version": "0.1",
    "x-build-id": "g48VMZ197paPEtj3X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kalilfagundes.w~wallapop-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kalilfagundes.w-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/kalilfagundes.w~wallapop-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kalilfagundes.w-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/kalilfagundes.w~wallapop-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kalilfagundes.w-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 (keywords)",
            "type": "array",
            "description": "One search per line, e.g. \"iphone 15\" or \"bicicleta eléctrica\". Every keyword is searched with the filters below. Leave empty and set a category ID to browse a category.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "Category ID (categoryId)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional Wallapop category number, e.g. 17000 Bikes, 24200 Technology & electronics, 100 Cars. Find it in the URL of a category page or in the categoryId field of any result."
          },
          "maxResultsPerKeyword": {
            "title": "Max listings per keyword (maxResultsPerKeyword)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listings for each keyword (0 = all of them). The API pages deep: one search returned more than 10,000 listings.",
            "default": 100
          },
          "maxItems": {
            "title": "Max listings in total (maxItems)",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run (0 = no cap). Keeps the cost predictable.",
            "default": 1000
          },
          "orderBy": {
            "title": "Order (orderBy)",
            "enum": [
              "most_relevance",
              "newest",
              "closest",
              "price_low_to_high",
              "price_high_to_low"
            ],
            "type": "string",
            "description": "Sort order of the search. \"Newest first\" is the one for monitoring new listings with a schedule.",
            "default": "most_relevance"
          },
          "minPrice": {
            "title": "Price from, EUR (minPrice)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price in EUR."
          },
          "maxPrice": {
            "title": "Price to, EUR (maxPrice)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price in EUR."
          },
          "conditions": {
            "title": "Condition (conditions)",
            "type": "array",
            "description": "Only items in these conditions. Empty = any condition.",
            "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"
              ]
            }
          },
          "countries": {
            "title": "Countries (countries)",
            "type": "array",
            "description": "Keep only listings located in these countries, as two-letter codes: ES, IT, PT. Wallapop also shows Italian and Portuguese ads near the search point. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Search point latitude (latitude)",
            "type": "number",
            "description": "Wallapop ranks results by closeness to this point (Madrid 40.4168, Barcelona 41.3874, Valencia 39.4699, Sevilla 37.3891). It does not exclude other regions.",
            "default": 40.4168
          },
          "longitude": {
            "title": "Search point longitude (longitude)",
            "type": "number",
            "description": "Longitude of the search point (Madrid -3.7038, Barcelona 2.1686, Valencia -0.3763, Sevilla -5.9845).",
            "default": -3.7038
          },
          "imageSize": {
            "title": "Image size (imageSize)",
            "enum": [
              "small",
              "medium",
              "big"
            ],
            "type": "string",
            "description": "Size of the image links in the output.",
            "default": "medium"
          },
          "maxImages": {
            "title": "Images per listing (maxImages)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "How many image links to include per listing (0 = none; imageCount always holds the total).",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Keywords in parallel (maxConcurrency)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many keywords are searched at the same time. Pages of one keyword are read in order.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy (proxyConfiguration)",
            "type": "object",
            "description": "Default: no proxy, fastest and cheapest. If Wallapop refuses requests the scraper switches to Apify residential proxies by itself. Choose a proxy group to use it from the start.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}