{
  "openapi": "3.0.1",
  "info": {
    "title": "Wallapop Product Search",
    "description": "Wallapop Scraper extracts product listings from the Spain's leading second-hand marketplace. Fetch prices, descriptions, images, locations and filter by keyword, category, province, price, condition.",
    "version": "0.0",
    "x-build-id": "QnOanEq6L0FdJb3AA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alvaraaz~wallapop-product-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alvaraaz-wallapop-product-search",
        "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/alvaraaz~wallapop-product-search/runs": {
      "post": {
        "operationId": "runs-sync-alvaraaz-wallapop-product-search",
        "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/alvaraaz~wallapop-product-search/run-sync": {
      "post": {
        "operationId": "run-sync-alvaraaz-wallapop-product-search",
        "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",
        "required": [
          "keyword"
        ],
        "properties": {
          "keyword": {
            "title": "Search Keyword",
            "minLength": 1,
            "type": "string",
            "description": "Keyword to search for products on Wallapop"
          },
          "location": {
            "title": "Location",
            "enum": [
              "",
              "40.4168,-3.7038",
              "43.3623,-8.3963",
              "38.3452,-0.4831",
              "36.5271,-6.2886",
              "37.3891,-5.9845",
              "41.3851,2.1734",
              "43.2630,-2.9350",
              "37.7642,-3.7900",
              "40.5428,-4.9315",
              "42.5987,-5.5701",
              "37.2614,-6.9447",
              "39.4699,-0.3763",
              "36.7213,-4.4214",
              "42.8125,-1.6458",
              "37.9834,-1.1301",
              "43.3603,-5.8448",
              "41.6528,-4.7236",
              "40.9429,-4.1084",
              "42.4631,-2.4450",
              "41.6488,-0.8891",
              "41.1189,1.2449",
              "41.6176,0.6203",
              "41.9794,2.8134",
              "37.1773,-3.5986",
              "38.8783,-6.9703",
              "39.4765,-6.3722",
              "42.3439,-3.6969",
              "43.0121,-7.5558",
              "42.3359,-7.8652",
              "40.6319,-3.1663",
              "40.0681,-2.1348",
              "38.9942,-1.8588",
              "38.9862,-3.9291",
              "37.8845,-4.7796",
              "41.7637,-2.4689",
              "41.5033,-5.5766",
              "42.0096,-4.5240",
              "40.3457,-1.1147",
              "39.8628,-4.0273",
              "42.8782,-8.5448",
              "43.4623,-3.8099",
              "36.5101,-4.8826",
              "38.2622,-0.6981",
              "38.9667,-0.1833",
              "36.8340,-2.4637",
              "37.6257,-0.9930",
              "39.9864,-0.0513",
              "42.8467,-2.6726",
              "28.1235,-15.4363",
              "28.2916,-16.6291",
              "42.1365,-0.4083"
            ],
            "type": "string",
            "description": "Province to search in (uses coordinates for local results)",
            "default": ""
          },
          "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": "Category to search in",
            "default": ""
          },
          "subcategory": {
            "title": "Subcategory",
            "enum": [
              "",
              "10167",
              "10164",
              "10165",
              "10168",
              "10166",
              "11002",
              "11003",
              "10436",
              "10156",
              "10437",
              "10206",
              "24149",
              "10200",
              "24201",
              "24202",
              "24203",
              "10125",
              "10120",
              "10122",
              "10124",
              "10118",
              "10081",
              "10082",
              "10083",
              "10084",
              "10085",
              "10086",
              "10450",
              "10451",
              "10452",
              "10453",
              "10454",
              "10420",
              "10421",
              "10422",
              "10008"
            ],
            "type": "string",
            "description": "Subcategory to search in (requires category to be selected)",
            "default": ""
          },
          "orderBy": {
            "title": "Order By",
            "enum": [
              "newest",
              "price_low_to_high",
              "price_high_to_low",
              "most_relevance",
              "closest"
            ],
            "type": "string",
            "description": "How to order the results",
            "default": "most_relevance"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "un_opened",
              "new",
              "as_good_as_new",
              "good",
              "fair",
              "has_given_it_all"
            ],
            "type": "string",
            "description": "Filter by product condition",
            "default": ""
          },
          "publishedSince": {
            "title": "Published Since",
            "enum": [
              "",
              "today",
              "lastWeek",
              "lastMonth"
            ],
            "type": "string",
            "description": "Filter by when the item was published"
          },
          "shipOnly": {
            "title": "Ship Only",
            "type": "boolean",
            "description": "Show only items with shipping available (Envío disponible)",
            "default": false
          },
          "minPrice": {
            "title": "Min Price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in euros"
          },
          "maxPrice": {
            "title": "Max Price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in euros"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 40,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of products to retrieve (40-10000)",
            "default": 120
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}