{
  "openapi": "3.0.1",
  "info": {
    "title": "Marktplaats Scraper - NL Classifieds, Prices & Seller Leads",
    "description": "Scrape Marktplaats.nl by keyword, category or URL: prices, full ad details, attributes, images, location, seller leads & new-ad / price-drop monitoring. Cars, electronics, real estate & more.",
    "version": "0.1",
    "x-build-id": "kNbXwNB8iVHlplhMK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~marktplaats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-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/scrapesage~marktplaats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-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/scrapesage~marktplaats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-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": "Keywords to search Marktplaats.nl for, e.g. <code>iphone</code>, <code>racefiets</code>, <code>bmw e46</code>, <code>bank</code>, <code>ps5</code>. Each keyword is scraped as its own feed. Leave empty if you only use a Category or Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Marktplaats.nl URLs to scrape directly: search pages (<code>/q/&lt;keyword&gt;/</code>), category / browse pages (<code>/l/&lt;category&gt;/</code>), ad pages (<code>/v/.../m1234...</code>) and seller storefronts (<code>/u/.../&lt;id&gt;/</code>). Used in addition to the keyword search.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Optional Marktplaats category ID to scope the search/browse (e.g. <code>91</code> = Auto's, <code>322</code> = Telecommunicatie, <code>504</code> = Fietsen en Brommers). Find it in any category URL. Combine with a keyword or leave the keyword empty to browse the whole category."
          },
          "listingUrls": {
            "title": "Ad URLs (direct detail)",
            "type": "array",
            "description": "Marktplaats ad URLs to fetch full detail for directly (<code>/v/.../m1234567890-...</code>).",
            "items": {
              "type": "string"
            }
          },
          "sellerUrls": {
            "title": "Seller URLs",
            "type": "array",
            "description": "Marktplaats seller storefront URLs (<code>/u/&lt;name&gt;/&lt;id&gt;/</code>) to scrape all of a seller's ads and (optionally) build a seller lead.",
            "items": {
              "type": "string"
            }
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "Dutch postcode to centre a distance search on, e.g. <code>1011</code> (Amsterdam) or <code>3011</code> (Rotterdam). Pair with Distance."
          },
          "distanceKm": {
            "title": "Distance (km)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Radius in kilometres around the postcode to include ads from."
          },
          "minPrice": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep ads priced at least this much (euros). Ads without a fixed price (bidding / free / 'on request') are kept unless you set a max price."
          },
          "maxPrice": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep ads priced at most this much (euros)."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Only keep ads with this item condition.",
            "default": "any"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Keep only ads from private sellers or from businesses / dealers.",
            "default": "any"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "default",
              "dateDesc",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "How Marktplaats orders the results.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of ad records to scrape across all searches/URLs.",
            "default": 100
          },
          "includeListingDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "Open each ad to add the full untruncated description, every structured attribute, complete image gallery, category breadcrumb, view count, favourite count and bidding info. Turn OFF for a faster/cheaper run (the search card already includes title, price, location, images, key attributes and seller). Adds one request per ad.",
            "default": false
          },
          "includeSellerLeads": {
            "title": "Output seller leads",
            "type": "boolean",
            "description": "Output one deduplicated lead record per seller seen in the run: name, private/business type, business-verified flag, review count & rating, storefront URL, website, active-ad count, sample listings, price range and a 0-100 lead score. Best for finding dealers and active businesses.",
            "default": false
          },
          "enrichSellerContacts": {
            "title": "Enrich business seller contacts",
            "type": "boolean",
            "description": "For business / dealer sellers, open their storefront to add their website, extra contact details and accurate active-ad count. Adds one request per business seller.",
            "default": false
          },
          "maxSellerLeads": {
            "title": "Max seller leads",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of seller lead records to output.",
            "default": 200
          },
          "deduplicateListings": {
            "title": "Deduplicate listings",
            "type": "boolean",
            "description": "Drop duplicate ads that appear in more than one search/page in the same run.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember ads across runs in a named key-value store and emit ONLY ads that are new OR whose price changed since the last run (each carries a <code>changeType</code>: new / price_drop / price_rise). Pair with Apify Schedules for new-ad & price-drop alerts — it complements the scheduler (the schedule starts the run; monitor mode dedupes against prior runs).",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the monitor's memory store so you can run several independent monitors (e.g. one per keyword). Reuse the same key to keep tracking the same feed.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel detail/seller request fetches. Keep moderate (3–6).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Marktplaats serves its internal API cleanly to Apify residential proxies — keep the default (residential, Netherlands).",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}