{
  "openapi": "3.0.1",
  "info": {
    "title": "Wallapop Monitor: New Listings & Price Change Alerts",
    "description": "Watch Wallapop searches on a schedule and get only what changed since the last run: new listings and price drops or rises in Spain, Italy and Portugal. Connect Slack, Telegram or Sheets. From $0.35 per 1,000 alerts.",
    "version": "0.0",
    "x-build-id": "kIJS1NXpUas3YcTCM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epicscrapers~wallapop-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epicscrapers-wallapop-monitor",
        "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/epicscrapers~wallapop-monitor/runs": {
      "post": {
        "operationId": "runs-sync-epicscrapers-wallapop-monitor",
        "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/epicscrapers~wallapop-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-epicscrapers-wallapop-monitor",
        "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": "Search keywords",
            "type": "array",
            "description": "What to watch, one search per keyword (for example `iphone 15` or `bicicleta carretera`). Leave empty to watch a whole category.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Wallapop search URLs",
            "type": "array",
            "description": "Paste search URLs from your browser (all filters in the URL are kept). Listing URLs are not supported here; use Wallapop Scraper for single listings.",
            "items": {
              "type": "string"
            }
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional name that keeps this schedule's memory separate, so two schedules watching the same search don't share state (for example `iphone-daily` and `iphone-hourly`)."
          },
          "notifyOn": {
            "title": "Notify on",
            "type": "array",
            "description": "Which changes to emit: new listings, prices that dropped, prices that went up.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "price_drop",
                "price_rise"
              ],
              "enumTitles": [
                "New listings",
                "Price drops",
                "Price rises"
              ]
            },
            "default": [
              "new",
              "price_drop"
            ]
          },
          "maxItemsPerSearch": {
            "title": "Max alerts per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum rows emitted per keyword or search URL per run. `0` means no limit.",
            "default": 100
          },
          "firstRun": {
            "title": "First run",
            "enum": [
              "output",
              "baseline"
            ],
            "type": "string",
            "description": "What the first run of a search does. `Output` emits the current listings (up to the max per search) as new. `Record only` saves them without output or charge, so the first scheduled run is silent and later runs report only changes.",
            "default": "output"
          },
          "country": {
            "title": "Country",
            "enum": [
              "ES",
              "IT",
              "PT"
            ],
            "type": "string",
            "description": "Wallapop market to search. Results are limited to this country unless you set your own latitude and longitude.",
            "default": "ES"
          },
          "city": {
            "title": "City",
            "enum": [
              "",
              "madrid",
              "barcelona",
              "valencia",
              "sevilla",
              "zaragoza",
              "malaga",
              "murcia",
              "palma",
              "las-palmas",
              "bilbao",
              "alicante",
              "cordoba",
              "valladolid",
              "vigo",
              "granada",
              "a-coruna",
              "roma",
              "milano",
              "napoli",
              "torino",
              "palermo",
              "genova",
              "bologna",
              "firenze",
              "bari",
              "venezia",
              "lisboa",
              "porto",
              "braga",
              "coimbra",
              "faro"
            ],
            "type": "string",
            "description": "Search around a city instead of the whole country. The city sets the country. Radius defaults to 30 km.",
            "default": ""
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings within this distance of the city or your coordinates. Leave empty for the default (whole country, or 30 km around a city)."
          },
          "latitude": {
            "title": "Latitude",
            "type": "string",
            "description": "Custom search point, for example `40.4168`. Overrides the city. Set longitude too."
          },
          "longitude": {
            "title": "Longitude",
            "type": "string",
            "description": "Custom search point, for example `-3.7038`."
          },
          "categoryId": {
            "title": "Category",
            "enum": [
              "",
              "24200",
              "12465",
              "12467",
              "12579",
              "17000",
              "12463",
              "18000",
              "12461",
              "13100",
              "100",
              "14000",
              "12800",
              "200",
              "19000",
              "20000",
              "13200",
              "21000",
              "12485"
            ],
            "type": "string",
            "description": "Limit results to one Wallapop category.",
            "default": ""
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "In the country's currency (EUR)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "In the country's currency (EUR)."
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Only listings in these conditions. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "un_opened",
                "new",
                "as_good_as_new",
                "good",
                "fair",
                "has_given_it_all"
              ],
              "enumTitles": [
                "Unopened",
                "New",
                "Like new",
                "Good",
                "Fair",
                "Has given it all"
              ]
            }
          },
          "shippingOnly": {
            "title": "Shipping available only",
            "type": "boolean",
            "description": "Only listings that can be shipped.",
            "default": false
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Adds views, favorites, conversations, condition, brand, model and all attributes to emitted rows. One extra request per alert, charged per alert.",
            "default": false
          },
          "includeSellerInfo": {
            "title": "Include seller info",
            "type": "boolean",
            "description": "Adds seller name, profile URL, rating, review count, items sold, professional status and shop contacts to emitted rows. Charged per alert.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}