{
  "openapi": "3.0.1",
  "info": {
    "title": "TenderNed Publications Scraper",
    "description": "Haal TenderNed aanbestedingen op via de officiële API. Inclusief filters voor CPV, data en contracttype. Biedt optionele XML-verrijking (TED) voor diepgaande info. Snel, schaalbaar en direct naar JSON/Excel. Perfect voor marktanalyse en automatische rapportages. 🚀",
    "version": "0.0",
    "x-build-id": "4n56csxSPCv75c4ag"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eloquent_mountain~tenderned-publications-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eloquent_mountain-tenderned-publications-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/eloquent_mountain~tenderned-publications-scraper/runs": {
      "post": {
        "operationId": "runs-sync-eloquent_mountain-tenderned-publications-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/eloquent_mountain~tenderned-publications-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-eloquent_mountain-tenderned-publications-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": {
          "search": {
            "title": "Zoekterm",
            "type": "string",
            "description": "Zoektrefwoorden in titel of beschrijving (API-filter).",
            "default": ""
          },
          "publicatieType": {
            "title": "Publicatietypen",
            "type": "array",
            "description": "Filter op publicatietypecodes (API-filter). Laat leeg voor alle typen.",
            "items": {
              "type": "string",
              "enum": [
                "AAO",
                "AGO",
                "VOP",
                "RVO",
                "WNO",
                "MAC",
                "REC"
              ],
              "enumTitles": [
                "AAO - Aankondiging van een opdracht",
                "AGO - Aankondiging van gegunde opdracht",
                "VOP - Vooraankondiging",
                "RVO - Rectificatie van opdracht",
                "WNO - Wijziging van opdracht",
                "MAC - Marktconsultatie",
                "REC - Rectificatie"
              ]
            },
            "default": []
          },
          "publicatieDatumVanaf": {
            "title": "Publicatiedatum vanaf",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^$",
            "type": "string",
            "description": "Startdatum voor publicaties in YYYY-MM-DD-indeling (API-filter).",
            "default": ""
          },
          "publicatieDatumTot": {
            "title": "Publicatiedatum tot",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^$",
            "type": "string",
            "description": "Einddatum voor publicaties in YYYY-MM-DD-indeling (API-filter).",
            "default": ""
          },
          "publicatieDatumPreset": {
            "title": "Publicatiedatum preset",
            "type": "string",
            "description": "Gebruik een preset uit de Swagger (bijv. AGP). Laat leeg voor maatwerkdatums.",
            "default": ""
          },
          "sluitingsDatumPreset": {
            "title": "Sluitingsdatum preset",
            "type": "string",
            "description": "Preset voor sluitingsdatums (portal gebruikt o.a. VDG).",
            "default": ""
          },
          "cpvCodes": {
            "title": "CPV-codes",
            "type": "array",
            "description": "Filter op CPV-sectorcodes (API-filter). Voorbeeld: 45000000-7 voor bouw.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "typeOpdracht": {
            "title": "Contracttype",
            "type": "array",
            "description": "Filter op contracttype (API-filter). Laat leeg voor alle typen.",
            "items": {
              "type": "string",
              "enum": [
                "D",
                "L",
                "W"
              ],
              "enumTitles": [
                "D - Diensten",
                "L - Leveringen",
                "W - Werken"
              ]
            },
            "default": []
          },
          "nationaalOfEuropees": {
            "title": "Nationaal of Europees",
            "type": "array",
            "description": "Filter op scope: NL (nationaal) of EU (europees).",
            "items": {
              "type": "string",
              "enum": [
                "NL",
                "EU"
              ],
              "enumTitles": [
                "NL - Nationaal",
                "EU - Europees"
              ]
            },
            "default": []
          },
          "aardVanDeOpdracht": {
            "title": "Aard van de opdracht",
            "type": "array",
            "description": "Aard van de opdracht (portal-codes: OOP, RAO, COO, NA, ...).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "procedure": {
            "title": "Procedurevorm",
            "type": "array",
            "description": "Filter op procedurevorm (API-filter). Laat leeg voor alle procedures.",
            "items": {
              "type": "string",
              "enum": [
                "OPE",
                "NOP",
                "MAC"
              ],
              "enumTitles": [
                "OPE - Openbaar",
                "NOP - Niet-openbaar",
                "MAC - Marktconsultatie"
              ]
            },
            "default": []
          },
          "aanbestedendeDienstId": {
            "title": "Organisatie-ID",
            "type": "string",
            "description": "Filter op specifieke organisatie-ID (API-filter). Laat leeg voor alle organisaties.",
            "default": ""
          },
          "typeAanbestedendeDienst": {
            "title": "Type aanbestedende dienst",
            "type": "array",
            "description": "Portal-codes zoals cga. Vrije invoer; laat leeg indien onbekend.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "useExperimentalFeature": {
            "title": "Experimental feature flag",
            "type": "boolean",
            "description": "Door portal gebruikte toggle; standaard false.",
            "default": false
          },
          "pageSize": {
            "title": "Paginagrootte",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Aantal publicaties per API-pagina (max 100).",
            "default": 50
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximaal aantal publicaties om te scrapen.",
            "default": 500
          },
          "publicatieIds": {
            "title": "Publicatie-ID(s)",
            "type": "array",
            "description": "Optioneel: lijst van publicatieId's om op te halen (filtert resultaten en kan worden verrijkt).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enrichMode": {
            "title": "Verrijking (public-xml)",
            "enum": [
              "none",
              "selectedIds",
              "allFound"
            ],
            "type": "string",
            "description": "Kies verrijking via /public-xml. Let op: extra kosten (~$0.02 per publicatieId).",
            "default": "none"
          },
          "useOffsetPagination": {
            "title": "Offset-paginatie",
            "type": "boolean",
            "description": "Gebruik offset i.p.v. page (zoals portal-aanroepen).",
            "default": false
          },
          "offsetStart": {
            "title": "Offset start",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Startoffset wanneer offset-paginatie actief is.",
            "default": 0
          },
          "maxPages": {
            "title": "Max pagina's/offset-stappen",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard limiet op aantal paginastappen (0 = onbeperkt totdat API stopt).",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}