{
  "openapi": "3.0.1",
  "info": {
    "title": "Marktplaats Scraper: Listings, Bids & Price Alerts (+ 2dehands)",
    "description": "Marktplaats scraper for the Netherlands and 2dehands / 2ememain for Belgium: listings by keyword or search URL, around a postcode, with bids, views, favorites, deal score vs market price and price drop alerts. Fast API, no browser.",
    "version": "0.1",
    "x-build-id": "t1Fuhs5dbv94Yf2Wt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/euroscrape~marktplaats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-euroscrape-marktplaats-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/euroscrape~marktplaats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-euroscrape-marktplaats-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/euroscrape~marktplaats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-euroscrape-marktplaats-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": "What to look for: plain text (\"iphone 13\", \"fiets\", \"lego\"), a search URL copied from Marktplaats or 2dehands (…/q/…, filters after # included), or a listing URL (…/v/…) to follow one listing.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Site",
            "enum": [
              "NL",
              "BE",
              "BE_FR"
            ],
            "type": "string",
            "description": "Marktplaats (Netherlands), 2dehands (Belgium, Dutch) or 2ememain (Belgium, French). Pasted URLs keep their own site.",
            "default": "NL"
          },
          "postcode": {
            "title": "Around postcode",
            "type": "string",
            "description": "Optional, e.g. \"1012AB\" (Amsterdam) or \"1000\" (Brussels). Gives the distance of every listing."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Optional, with a postcode."
          },
          "maxItemsPerSearch": {
            "title": "Maximum listings per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "You pay per listing delivered. Up to 1,000 per search.",
            "default": 100
          },
          "order": {
            "title": "Sort",
            "enum": [
              "newest",
              "relevance",
              "priceLowToHigh",
              "priceHighToLow",
              "closest"
            ],
            "type": "string",
            "description": "Order of the site's results: it decides which listings are read first.",
            "default": "newest"
          },
          "priceMin": {
            "title": "Minimum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional."
          },
          "priceMax": {
            "title": "Maximum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional."
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Optional, one or more.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "as_good_as_new",
                "used",
                "refurbished",
                "not_working"
              ],
              "enumTitles": [
                "New",
                "As good as new",
                "Used",
                "Refurbished",
                "Not working"
              ]
            }
          },
          "onlyShipping": {
            "title": "Only listings with shipping",
            "type": "boolean",
            "description": "Keep only listings the seller ships (\"Verzenden\").",
            "default": false
          },
          "buyNowOnly": {
            "title": "Only \"Buy now\" listings",
            "type": "boolean",
            "description": "Keep only listings you can buy and pay online (\"Direct kopen\").",
            "default": false
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "today",
              "yesterday",
              "week"
            ],
            "type": "string",
            "description": "Optional: only recent listings."
          },
          "strictMatching": {
            "title": "Only listings whose title matches the search",
            "type": "boolean",
            "description": "On: the title must contain the model numbers and the words of your search (Marktplaats also returns cases, chargers, other models).",
            "default": true
          },
          "excludeAccessoriesAndBroken": {
            "title": "Exclude accessories, broken items and wanted ads",
            "type": "boolean",
            "description": "Off: they are kept and flagged (looksLikeAccessory, looksBroken, isWantedAd). On: they are left out.",
            "default": false
          },
          "dealAnalysis": {
            "title": "Deal score (free)",
            "type": "boolean",
            "description": "Compares each price with the median of the most similar listings of the same search: marketMedianPrice, priceVsMarketPct and a dealScore from 0 to 100 (100 = far below the market).",
            "default": true
          },
          "minDealScore": {
            "title": "Only deals scoring at least",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional, e.g. 65 keeps listings priced ~15% or more below their market."
          },
          "includeDetails": {
            "title": "Full details: bids, views, favorites",
            "type": "boolean",
            "description": "Opens each listing: current bids and highest bid, views, favorites, exact posting time, cheapest shipping price, buyer protection, seller type and years on the site (never a private seller's name), full description and all photos. Billed as \"listing with details\".",
            "default": false
          },
          "includeSummary": {
            "title": "Free summary per search",
            "type": "boolean",
            "description": "One extra free row per search: total on the site, median and quartile prices, share with shipping and bidding, top cities, best 5 deals.",
            "default": true
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name this search and schedule the Actor (e.g. every hour): each run then returns only NEW listings and PRICE DROPS since the previous run, and alerts you. The first run is the baseline."
          },
          "alertOnPriceDropPct": {
            "title": "Price drop that counts (%)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "Monitoring: a listing comes back when its price falls by at least this percentage.",
            "default": 5
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Alerts on Telegram: create a bot with @BotFather and paste its token."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Your chat ID (send a message to your bot, then open api.telegram.org/bot<token>/getUpdates)."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Channel settings → Integrations → Webhooks."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Incoming webhook URL."
          },
          "webhookUrl": {
            "title": "Webhook URL (JSON)",
            "type": "string",
            "description": "Receives one POST per run with the new listings and price drops (Make, Zapier, n8n…)."
          },
          "maxNotifications": {
            "title": "Maximum alerts per run",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Extra items are summarized in one message.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}