{
  "openapi": "3.0.1",
  "info": {
    "title": "Marktplaats.nl Scraper",
    "description": "Scrapes Marktplaats.nl classified listings via the LRP search API with optional VIP listing details and seller enrichment.",
    "version": "0.1",
    "x-build-id": "g9AZWFftTR3mj7mE3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~marktplaats-nl-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-marktplaats-nl-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/rigelbytes~marktplaats-nl-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-marktplaats-nl-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/rigelbytes~marktplaats-nl-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-marktplaats-nl-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": {
          "startUrl": {
            "title": "Start URL",
            "type": "string",
            "description": "Marktplaats search, category, or filtered URL. When set, search/filter fields below are ignored."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Additional Marktplaats URLs (same priority as Start URL).",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keywords when Start URL is empty. Example: car, iphone, bankstel."
          },
          "l1CategoryId": {
            "title": "Category",
            "enum": [
              "91",
              "74",
              "178",
              "504",
              "1085",
              "445",
              "1098",
              "599",
              "378",
              "3569",
              "201",
              "112"
            ],
            "type": "string",
            "description": "Main Marktplaats category. Required when not using Start URL.",
            "default": "91"
          },
          "l2CategoryId": {
            "title": "Subcategory ID",
            "minimum": 1,
            "type": "integer",
            "description": "Optional L2 subcategory ID (e.g. 105 = Daihatsu)."
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "Dutch postcode for distance search (e.g. 1012AB)."
          },
          "distanceMeters": {
            "title": "Search distance",
            "enum": [
              "",
              "3000",
              "5000",
              "10000",
              "15000",
              "25000",
              "50000",
              "75000",
              "100000"
            ],
            "type": "string",
            "description": "Search radius from postcode, matching Marktplaats Zoek afstand."
          },
          "listingType": {
            "title": "Type advertentie",
            "enum": [
              "10882",
              "10883"
            ],
            "type": "string",
            "description": "Listing type.",
            "default": "10882"
          },
          "advertiserType": {
            "title": "Adverteerder",
            "enum": [
              "10898",
              "10899"
            ],
            "type": "string",
            "description": "Filter by private or business seller."
          },
          "fuelType": {
            "title": "Brandstof",
            "enum": [
              "473",
              "474",
              "11756",
              "13838",
              "13839",
              "475",
              "13840",
              "13841",
              "476"
            ],
            "type": "string",
            "description": "Fuel type filter (auto category)."
          },
          "transmissionType": {
            "title": "Transmissie",
            "enum": [
              "534",
              "535"
            ],
            "type": "string",
            "description": "Transmission filter."
          },
          "bodyType": {
            "title": "Carrosserie",
            "enum": [
              "485",
              "486",
              "481",
              "482",
              "483",
              "484",
              "488",
              "487"
            ],
            "type": "string",
            "description": "Body style filter."
          },
          "color": {
            "title": "Kleur",
            "enum": [
              "468",
              "287",
              "469",
              "443364",
              "288",
              "465",
              "471",
              "466",
              "290",
              "293"
            ],
            "type": "string",
            "description": "Exterior color filter."
          },
          "condition": {
            "title": "Conditie",
            "enum": [
              "30",
              "14049"
            ],
            "type": "string",
            "description": "New or used condition filter."
          },
          "energyLabel": {
            "title": "Energielabel",
            "enum": [
              "13947",
              "13948",
              "13949",
              "13950",
              "13951",
              "13952",
              "13953"
            ],
            "type": "string",
            "description": "Energy label filter."
          },
          "hybridType": {
            "title": "Type hybride",
            "enum": [
              "13954",
              "13955",
              "13956"
            ],
            "type": "string",
            "description": "Hybrid type filter."
          },
          "imported": {
            "title": "Import auto",
            "enum": [
              "13813",
              "13812"
            ],
            "type": "string",
            "description": "Import vs Dutch-origin filter."
          },
          "apk": {
            "title": "APK",
            "enum": [
              "168",
              "169"
            ],
            "type": "string",
            "description": "APK (MOT) validity filter."
          },
          "warranty": {
            "title": "Garantie",
            "enum": [
              "8783"
            ],
            "type": "string",
            "description": "Warranty filter."
          },
          "driveTrain": {
            "title": "Aandrijving",
            "enum": [
              "13943",
              "13944",
              "13945"
            ],
            "type": "string",
            "description": "Drive train filter."
          },
          "constructionYearMin": {
            "title": "Bouwjaar van",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Minimum construction year."
          },
          "constructionYearMax": {
            "title": "Bouwjaar tot",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Maximum construction year."
          },
          "mileageMin": {
            "title": "Kilometerstand van",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum mileage in km."
          },
          "mileageMax": {
            "title": "Kilometerstand tot",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum mileage in km."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "",
              "OPTIMIZED",
              "SORT_INDEX",
              "PRICE",
              "ATTRIBUTE"
            ],
            "type": "string",
            "description": "Result sort field."
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "",
              "INCREASING",
              "DECREASING"
            ],
            "type": "string",
            "description": "Ascending or descending sort."
          },
          "sortAttribute": {
            "title": "Sort attribute",
            "enum": [
              "",
              "constructionYear",
              "mileage"
            ],
            "type": "string",
            "description": "Attribute used when sorting by Attribute."
          },
          "searchInTitleAndDescription": {
            "title": "Search in title and description",
            "type": "boolean",
            "description": "Match query in title and description.",
            "default": true
          },
          "includeListingDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Enrich each listing with VIP and seller data. Adds a pay-per-event charge of listing-details per successful enrichment (in addition to dataset-item per listing).",
            "default": false
          },
          "detailsConcurrency": {
            "title": "Details concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Parallel workers for listing details (each listing processed concurrently up to this limit).",
            "default": 10
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listings to scrape (0 = unlimited).",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings for search and detail requests.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}