{
  "openapi": "3.0.1",
  "info": {
    "title": "Wallapop Listings by Keyword, Item & Seller",
    "description": "Searches Wallapop by keyword and location, fetches a specific item by URL, or pulls a seller's full listing set, returning price, location, images, and seller details.",
    "version": "1.0",
    "x-build-id": "YTSKoUyzDC7iXiO8P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~wallapop-listings-by-keyword-item-and-seller/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-wallapop-listings-by-keyword-item-and-seller",
        "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/dataspryva~wallapop-listings-by-keyword-item-and-seller/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-wallapop-listings-by-keyword-item-and-seller",
        "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/dataspryva~wallapop-listings-by-keyword-item-and-seller/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-wallapop-listings-by-keyword-item-and-seller",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "itemDetails",
              "sellerListings",
              "sellerProfile"
            ],
            "type": "string",
            "description": "What to fetch from Wallapop.",
            "default": "search"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "One or more search phrases. Each keyword is searched separately and results are merged without duplicates (mode=search).",
            "default": [
              "iphone"
            ],
            "items": {
              "type": "string"
            }
          },
          "itemUrls": {
            "title": "Item URLs or IDs",
            "type": "array",
            "description": "Wallapop item URLs or raw item IDs (mode=itemDetails).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sellerIds": {
            "title": "Seller IDs or URLs",
            "type": "array",
            "description": "Seller IDs, profile URLs or item URLs whose seller should be used (mode=sellerListings and sellerProfile).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "ES",
              "IT",
              "PT",
              "FR",
              "DE",
              "GB",
              "CUSTOM"
            ],
            "type": "string",
            "description": "Market centre used when latitude and longitude are empty.",
            "default": "ES"
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional search centre latitude. Leave empty to use the country centre."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional search centre longitude. Leave empty to use the country centre."
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "100",
              "14000",
              "12800",
              "12465",
              "200",
              "12545",
              "16000",
              "15000",
              "12579",
              "17000",
              "12900",
              "12467",
              "13100",
              "12463",
              "12461",
              "18000",
              "19000",
              "20000",
              "21000",
              "13200",
              "12485"
            ],
            "type": "string",
            "description": "Top-level Wallapop category (mode=search).",
            "default": ""
          },
          "subcategory": {
            "title": "Subcategory",
            "enum": [
              "",
              "10167",
              "10164",
              "10165",
              "10168",
              "10166",
              "11002",
              "11003",
              "10436",
              "10156",
              "10437",
              "10094",
              "10101",
              "10096",
              "10097",
              "10099",
              "10095",
              "10102",
              "10105",
              "10100",
              "10107",
              "10106",
              "10098",
              "10103",
              "10108",
              "10109",
              "10104",
              "10055",
              "10058",
              "10056",
              "10059",
              "10057",
              "10125",
              "10119",
              "10120",
              "10122",
              "10123",
              "10124",
              "24276",
              "10118",
              "10111",
              "10112",
              "10114",
              "10113",
              "10115",
              "10441",
              "24003",
              "24002",
              "24001",
              "10178",
              "10185",
              "10181",
              "10177",
              "10187",
              "10183",
              "10182",
              "10189",
              "10179",
              "10188",
              "10180",
              "10184",
              "10186",
              "10071",
              "10075",
              "10081",
              "10073",
              "10074",
              "10072",
              "10080",
              "10079",
              "10083",
              "10085",
              "10076",
              "10078",
              "10082",
              "10077",
              "10086",
              "10084",
              "10138",
              "10149",
              "10141",
              "10147",
              "10143",
              "10142",
              "10148",
              "10144",
              "10145",
              "10146",
              "10128",
              "10129",
              "10117",
              "10116",
              "10191",
              "10190",
              "10195",
              "10196",
              "10192",
              "10194",
              "10197",
              "10193"
            ],
            "type": "string",
            "description": "Optional subcategory. It can be used alone or together with a category (mode=search).",
            "default": ""
          },
          "orderBy": {
            "title": "Sort order",
            "enum": [
              "most_relevance",
              "newest",
              "closest",
              "price_low_to_high",
              "price_high_to_low"
            ],
            "type": "string",
            "description": "Result order (mode=search).",
            "default": "most_relevance"
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "maximum": 999999,
            "type": "integer",
            "description": "Minimum asking price (mode=search)."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "maximum": 999999,
            "type": "integer",
            "description": "Maximum asking price (mode=search)."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "new",
              "in_box",
              "un_opened",
              "un_worn",
              "as_good_as_new",
              "good",
              "fair",
              "has_given_it_all"
            ],
            "type": "string",
            "description": "Item condition (mode=search).",
            "default": ""
          },
          "timeFilter": {
            "title": "Posted within",
            "enum": [
              "",
              "today",
              "lastWeek",
              "lastMonth"
            ],
            "type": "string",
            "description": "Only listings posted within this window (mode=search).",
            "default": ""
          },
          "shippableOnly": {
            "title": "Shippable only",
            "type": "boolean",
            "description": "Only listings whose seller allows shipping (mode=search).",
            "default": false
          },
          "distanceKm": {
            "title": "Max distance (km)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum distance from the search centre. Leave empty to use the market default."
          },
          "includeItemDetails": {
            "title": "Include item details",
            "type": "boolean",
            "description": "Fetch full item details such as condition, attributes, views, favorites and conversations (mode=search and sellerListings).",
            "default": false
          },
          "includeSellerDetails": {
            "title": "Include seller details",
            "type": "boolean",
            "description": "Add seller name, rating, review count and verification to each search result (mode=search).",
            "default": true
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Include the seller's latest reviews (mode=sellerProfile).",
            "default": true
          },
          "maxReviews": {
            "title": "Max reviews",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum reviews per seller (mode=sellerProfile). Wallapop serves older reviews in pages.",
            "default": 20
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum records to return for search, itemDetails and sellerListings.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}