{
  "openapi": "3.0.1",
  "info": {
    "title": "Marktplaats & 2dehands Scraper - Dutch & Belgian Ads & Prices",
    "description": "Marktplaats.nl, 2dehands.be and 2ememain.be scraper and API: search second-hand ads by keyword, category or URL, filter by price, condition, seller type and date. One row per ad: title, price, condition, city, date, photos; views and full text with details. Scheduled new-ad alerts. $0.50 per 1,000.",
    "version": "1.0",
    "x-build-id": "thd8Jw2esXq7BNVsO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~marktplaats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-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/rel8ble~marktplaats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-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/rel8ble~marktplaats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Optional. What you would type into the site's search box, one per line, in Dutch, French or as product names: \"fiets\", \"iphone 13\", \"ikea kallax\", \"playstation 5\", \"velo\". Each keyword is one search (times each site and category). Leave empty to list a whole category instead.",
            "items": {
              "type": "string"
            }
          },
          "sites": {
            "title": "Sites",
            "type": "array",
            "description": "Optional. Which sites to search: marktplaats.nl (default), 2dehands.be and / or 2ememain.be. 2dehands.be and 2ememain.be show the same Belgian ads in Dutch and French, so pick one of the two for Belgium.",
            "items": {
              "type": "string",
              "enum": [
                "marktplaats.nl",
                "2dehands.be",
                "2ememain.be"
              ],
              "enumTitles": [
                "Marktplaats.nl (Netherlands)",
                "2dehands.be (Belgium, Dutch)",
                "2ememain.be (Belgium, French)"
              ]
            },
            "default": [
              "marktplaats.nl"
            ]
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional. Category keys from the site's URLs, one per line: the part after /l/ in a category URL. Top level: \"fietsen-en-brommers\", \"telecommunicatie\", \"audio-tv-en-foto\", \"auto-s\", \"huis-en-inrichting\", \"spelcomputers-en-games\", \"kleding-dames\", \"witgoed-en-apparatuur\". Sub-category: \"fietsen-en-brommers/elektrische-fietsen\". Names work too (\"Fietsen en Brommers / Elektrische fietsen\"). 2dehands / 2ememain use their own keys (open the category there and copy the path). With keywords: the keyword is searched inside each category. Unknown categories are skipped with a warning, not charged.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Marktplaats / 2dehands / 2ememain URLs",
            "type": "array",
            "description": "Optional. URLs copied from the sites, one per line: a search (\"https://www.marktplaats.nl/q/iphone+13/\"), a category (\"https://www.2dehands.be/l/fietsen-en-brommers/\"), a later page (\".../p/3/\") or a single ad (\"https://www.marktplaats.nl/v/.../m2212132856-...\"). A price range set on the site (#PriceCentsFrom:...|PriceCentsTo:...) is applied. Ad URLs are looked up directly with full details.",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Lowest asking price in whole euros, e.g. 100. Ads without a number (\"Zie omschrijving\", \"Bieden\" without a start bid) are left out by any price filter. Empty = no minimum."
          },
          "priceMax": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Highest asking price in whole euros, e.g. 400. Empty = no maximum."
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Optional. Keep only ads with one of these conditions (as the seller set it on the site). Empty = any condition, including ads without one.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "refurbished",
                "used",
                "not_working"
              ],
              "enumTitles": [
                "New (Nieuw / Neuf)",
                "As good as new (Zo goed als nieuw / Comme neuf)",
                "Refurbished",
                "Used (Gebruikt / Utilisé)",
                "Not working (Niet werkend)"
              ]
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Optional. \"any\" (default), \"private\" or \"business\". Without details, business = shop ads (ids starting with \"a\") and verified sellers; with includeDetails the site's own seller type is used too.",
            "default": "any"
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only ads whose shown date is today (0), today or yesterday (1), or within N days. Uses the date shown in the results (the last time the ad was placed or bumped). Empty = any date."
          },
          "mustInclude": {
            "title": "Title must contain",
            "type": "array",
            "description": "Optional. Keep only ads whose title or description start contain all words of one of these lines (case and accents ignored), e.g. \"128gb\" or \"gazelle n8\".",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Optional. Drop ads whose title or description start contain all words of any of these lines, e.g. \"gezocht\", \"hoesje\", \"defect\".",
            "items": {
              "type": "string"
            }
          },
          "skipTopAds": {
            "title": "Skip top ads",
            "type": "boolean",
            "description": "Optional boolean, default false. true = leave out paid \"Dagtopper\" / top ads that the site pins above the normal results.",
            "default": false
          },
          "maxItems": {
            "title": "Max ads per search",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Maximum ads saved per search (one site x keyword x category, or one URL), integer >= 0. Default 100; 0 = every ad the search has (the site shows at most 5,010 per search). You pay per ad saved ($0.0005 each), so 1,000 ads = $0.50.",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 167,
            "type": "integer",
            "description": "Optional. Result pages read per search (30 ads each, the site's own cap is 167 pages). Filtered-out ads are free, so this caps reading time when filters are strict.",
            "default": 167
          },
          "includeDetails": {
            "title": "Include ad details (slower)",
            "type": "boolean",
            "description": "Optional boolean. false (default) = data from the result pages: title, description start, price, price type, condition, delivery, attributes, city, date shown, top-ad flag, seller id, category, all photos, URL; 30 ads per request. true = also open each ad for the full description (phone numbers and e-mails masked), exact posting time, view count, favourites count, private / business seller type, years on the site, shipping options and buy-it-now. Same price per ad, 1 extra request per ad.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional, advanced. Parallel requests, integer 1-10. Default 3; requests are also paced to stay polite. Leave unset.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional, advanced. Apify Proxy settings object. Default {\"useApifyProxy\": true} (datacenter proxy). Leave unset.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}