{
  "openapi": "3.0.1",
  "info": {
    "title": "Marktplaats.nl Scraper",
    "description": "Marktplaats scraper & API (Netherlands classifieds): search listings by keyword & category and export title, price, description, location, seller, attributes, photos, date and URL. Dutch marketplace, resale and second-hand market data plus seller lead gen — fast, no login.",
    "version": "1.0",
    "x-build-id": "JVX7MTRBP2ApQl6f3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~marktplaats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-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/haketa~marktplaats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-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/haketa~marktplaats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-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": {
          "platform": {
            "title": "Platform / Country",
            "enum": [
              "marktplaats.nl",
              "2dehands.be",
              "2ememain.be"
            ],
            "type": "string",
            "description": "Which marketplace to scrape. All three cover the Benelux second-hand market.",
            "default": "marktplaats.nl"
          },
          "query": {
            "title": "Search keyword (optional)",
            "type": "string",
            "description": "Type what you are looking for, e.g. 'iphone 15', 'bmw 320', 'vouwfiets', 'bank'. Leave empty to browse a whole category, or leave everything empty for a mixed sample of popular listings."
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "91",
              "92",
              "1655",
              "135",
              "322",
              "31",
              "504",
              "1525",
              "1953",
              "621",
              "728",
              "1099",
              "1100",
              "367",
              "2017",
              "380",
              "356",
              "33",
              "34"
            ],
            "type": "string",
            "description": "Pick a category to browse an entire vertical. Works with or without a search keyword. Choose 'All categories' to search across the whole marketplace.",
            "default": ""
          },
          "sellerTypeFilter": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Keep only private sellers (particulieren) or only business sellers / dealers (zakelijk), or return both.",
            "default": "all"
          },
          "conditionFilter": {
            "title": "Item condition",
            "type": "array",
            "description": "Keep only listings in the selected condition(s). Leave empty to include every condition.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "used"
              ],
              "enumTitles": [
                "New (Nieuw)",
                "Like new (Zo goed als nieuw)",
                "Used (Gebruikt)"
              ]
            },
            "default": []
          },
          "postcode": {
            "title": "Postcode (optional)",
            "type": "string",
            "description": "Center your search on a Dutch or Belgian postcode, e.g. '1012AB' (Amsterdam) or '3011AA' (Rotterdam). Combine with a distance below to search a local area."
          },
          "distanceMeters": {
            "title": "Search radius",
            "minimum": 0,
            "type": "integer",
            "description": "How far around the postcode to search, in meters. Only used together with a postcode. Example: 10000 = 10 km, 50000 = 50 km. Leave 0 for the whole country.",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum price (in cents)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price to include, in euro cents. Example: 10000 = €100. Leave 0 for no lower limit.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price (in cents)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price to include, in euro cents. Example: 100000 = €1000. Leave 0 for no upper limit.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "SORT_INDEX",
              "PRICE",
              "OPTIMIZED"
            ],
            "type": "string",
            "description": "How to order the listings that come back.",
            "default": "SORT_INDEX"
          },
          "sortOrder": {
            "title": "Sort direction",
            "enum": [
              "DECREASING",
              "INCREASING"
            ],
            "type": "string",
            "description": "Ascending or descending order for the sort above (e.g. price low-to-high vs high-to-low).",
            "default": "DECREASING"
          },
          "scrapeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Also open each listing page for the full description and category-specific attributes (car specs, property details, etc.). More complete, but slower.",
            "default": false
          },
          "maxListings": {
            "title": "Maximum listings",
            "minimum": 0,
            "type": "integer",
            "description": "How many listings to collect in total. Set 0 for unlimited (Marktplaats caps a single search at ~5000).",
            "default": 0
          },
          "subcategoryId": {
            "title": "Subcategory ID (advanced, optional)",
            "type": "string",
            "description": "Power users only: narrow a category to one subcategory using its Marktplaats L2 ID (e.g. 1953 = Apple iPhone inside Telecom). Leave empty to include the whole category."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings used to reach the marketplace reliably. The default works well for most runs."
          },
          "requestDelay": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause between page requests, in milliseconds. Higher values are gentler on the site.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}