{
  "openapi": "3.0.1",
  "info": {
    "title": "Marktplaats.nl Scraper",
    "description": "Scrape Marktplaats.nl listings into clean rows: title, price in EUR, condition, seller, location, images. Search, detail and monitor modes (new, changed, removed). For Dutch dealers, resellers and lead generation.",
    "version": "0.1",
    "x-build-id": "qzMdJxg0oDpPl1lhK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/redomic~marktplaats-nl/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-redomic-marktplaats-nl",
        "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/redomic~marktplaats-nl/runs": {
      "post": {
        "operationId": "runs-sync-redomic-marktplaats-nl",
        "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/redomic~marktplaats-nl/run-sync": {
      "post": {
        "operationId": "run-sync-redomic-marktplaats-nl",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "detail",
              "monitor"
            ],
            "type": "string",
            "description": "search = listings, detail = single listings, monitor = new/changed/removed since last run.",
            "default": "search"
          },
          "queries": {
            "title": "Queries",
            "type": "array",
            "description": "Keywords or search/category/listing URLs to scrape."
          },
          "query": {
            "title": "Query",
            "type": "string",
            "description": "Single keyword (used when queries is empty)."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Marktplaats search, category or listing URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Specific listing URLs or IDs to scrape in detail.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingIds": {
            "title": "Listing IDs",
            "type": "array",
            "description": "Marktplaats item IDs (e.g. m1234567890)."
          },
          "sellerIds": {
            "title": "Seller IDs",
            "type": "array",
            "description": "Fetch all active listings from seller IDs (numeric IDs or Marktplaats seller profile URLs)."
          },
          "priceMin": {
            "title": "Min price (EUR)",
            "type": "number",
            "description": "Keep listings with price >= this value."
          },
          "priceMax": {
            "title": "Max price (EUR)",
            "type": "number",
            "description": "Keep listings with price <= this value."
          },
          "condition": {
            "title": "Condition",
            "type": "string",
            "description": "Filter by condition (e.g. Nieuw, Gebruikt)."
          },
          "delivery": {
            "title": "Delivery",
            "type": "string",
            "description": "Filter by delivery method: \"Ophalen\" (pickup) or \"Verzenden\" (shipping). Also accepts \"Ophalen of Verzenden\"."
          },
          "advertiserType": {
            "title": "Advertiser type",
            "type": "string",
            "description": "Particulier or Zakelijk (Bedrijf also accepted). Only rows with a known advertiser type match."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Dutch L1 vertical to browse (e.g. \"Auto's\", \"Fietsen\", \"Telefoons\"). Works with or without a keyword; resolved to a Marktplaats category ID."
          },
          "l1CategoryId": {
            "title": "L1 category ID",
            "type": "integer",
            "description": "Exact Marktplaats top-level category ID (overrides the category name)."
          },
          "l2CategoryId": {
            "title": "L2 category ID",
            "type": "integer",
            "description": "Marktplaats sub-category ID; rows are post-filtered to this category."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Filter by city name."
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "Postcode centre for a local radius search (e.g. 1012AB). Use with distanceKm."
          },
          "distanceKm": {
            "title": "Distance (km)",
            "minimum": 0,
            "type": "number",
            "description": "Keep listings within this many kilometres of the postcode. Rows with no distance from the postcode (e.g. nationwide listings) are excluded when set."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "date_desc",
              "date_asc"
            ],
            "type": "string",
            "description": "Sort order for results.",
            "default": "relevance"
          },
          "scrapeDetails": {
            "title": "Scrape details",
            "type": "boolean",
            "description": "Fetch each listing page for full detail fields (slower).",
            "default": false
          },
          "searchInTitleAndDescription": {
            "title": "Search in title and description",
            "type": "boolean",
            "description": "Match the search term in both title and description (broader). When false, only titles are matched.",
            "default": false
          },
          "hasImages": {
            "title": "Has images",
            "type": "boolean",
            "description": "Keep only listings that include at least one image.",
            "default": false
          },
          "constructionYearMin": {
            "title": "Min construction year",
            "type": "integer",
            "description": "Keep listings with construction year >= this value."
          },
          "constructionYearMax": {
            "title": "Max construction year",
            "type": "integer",
            "description": "Keep listings with construction year <= this value."
          },
          "mileageMax": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings with mileage <= this value (km)."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Filter by vehicle make (matches make field or title)."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Filter by vehicle model (matches model field or title)."
          },
          "fuel": {
            "title": "Fuel",
            "type": "string",
            "description": "Filter by fuel type (e.g. Benzine, Diesel, Hybride)."
          },
          "transmission": {
            "title": "Transmission",
            "type": "string",
            "description": "Filter by transmission (e.g. Automaat, Handgeschakeld)."
          },
          "postedWithinDays": {
            "title": "Posted within days",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings posted within the last N days (based on postedAt). Rows without a known posted date are excluded."
          },
          "firstSeenWithinDays": {
            "title": "First seen within days",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings first seen by this Actor within the last N days (search mode, based on persisted firstSeenAt)."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Upper limit on rows returned.",
            "default": 100
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}