{
  "openapi": "3.0.1",
  "info": {
    "title": "EU TED Tenders Scraper & Registry-ID Normalizer",
    "description": "EU public tenders and contract awards from the official TED API, with buyer and winner registry IDs (KBO, KvK, SIREN/SIRET, org.nr, VAT) parsed and checksum-validated. Open-for-bids filter and daily new-only mode. $1.25 per 1,000 notices.",
    "version": "0.1",
    "x-build-id": "nohgIvrXeYsn6VYhT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goobertje~eu-ted-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goobertje-eu-ted-tenders-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/goobertje~eu-ted-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-goobertje-eu-ted-tenders-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/goobertje~eu-ted-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-goobertje-eu-ted-tenders-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": {
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Countries of the buying organisation as ISO 3166-1 codes (two or three letters): EU and EEA countries, Switzerland and the United Kingdom. Empty means all countries. Example: [\"BE\", \"NL\", \"FR\", \"DE\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "maxItems": 50,
            "type": "array",
            "description": "Keep notices with one of these CPV (Common Procurement Vocabulary) codes. An 8-digit code (optionally with its check digit) matches exactly; fewer digits match every code that starts with them, so \"72\" means all IT services. Up to 50 codes. Empty means any. Example: [\"72\", \"45233120\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "competition = open calls for tenders; award = contract award results (with winners); planning = prior information and market consultations; all = every kind including contract modifications. Default: competition.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "award",
                "planning",
                "all"
              ],
              "enumTitles": [
                "Competition (calls for tenders)",
                "Award (contract award results)",
                "Planning (prior information)",
                "All kinds"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Full-text search in the notice, in any language; a notice matches when it contains any of the keywords or phrases. Only letters, digits, spaces, hyphens and apostrophes are used. Up to 20 keywords. Empty means any. Example: [\"software\", \"smart city\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication date to include (YYYY-MM-DD). Leave empty for the last 7 days. Example: \"2026-11-01\"."
          },
          "publishedTo": {
            "title": "Published until",
            "type": "string",
            "description": "Last publication date to include (YYYY-MM-DD). Leave empty for no upper limit."
          },
          "openForBidsOnly": {
            "title": "Only notices open for bids",
            "type": "boolean",
            "description": "Competition notices with a deadline of today or later: the tender deadline, or for restricted and negotiated procedures the deadline to request participation. Notices that publish no deadline are excluded (stricter than TED's own 'active' scope). Works with notice type competition only. Default: off.",
            "default": false
          },
          "minValueEur": {
            "title": "Minimum estimated value (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Drop notices whose published estimated value is in euro and below this amount. Notices with no published value, or a value in another currency, are kept (most notices publish no value). Leave empty for no limit. Example: 100000."
          },
          "expertQuery": {
            "title": "TED expert query (advanced)",
            "maxLength": 2000,
            "type": "string",
            "description": "A raw TED expert query, used as-is instead of the filters above (publication date, countries, notice types, CPV and keywords are then ignored). Open-for-bids and minimum value still apply. Example: buyer-country IN (BEL) AND classification-cpv = 72* AND publication-date>=20261101"
          },
          "onlyNew": {
            "title": "Only new notices (delta mode)",
            "type": "boolean",
            "description": "Remember every delivered publication number in a named key-value store and skip them on later runs, so a daily schedule returns only notices not delivered before. Skipped notices are not billed. The first run returns everything that matches.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
            "minLength": 3,
            "maxLength": 63,
            "type": "string",
            "description": "Name of the persistent key-value store that holds the delta state. Use a different name per feed (for example per CPV set). Lowercase letters, digits and hyphens only. Default: \"eu-ted-seen-notices\".",
            "default": "eu-ted-seen-notices"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of notices (dataset items, each one billed) a run outputs; the run stops once reached. Notices removed by the filters are not counted and not billed. Default: 100.",
            "default": 100
          },
          "normalizeIds": {
            "title": "Normalize registry identifiers",
            "type": "boolean",
            "description": "Parse buyer and winner identifiers into {rawId, normalizedId, scheme, country, validation}. The raw value is always kept. Turn off to get the raw identifiers only. Default: on.",
            "default": true
          },
          "preferredLanguages": {
            "title": "Preferred languages",
            "type": "array",
            "description": "Order in which the title, description, buyer name and links are taken from the notice, as two-letter codes. If none exists, English and then the first available language is used.",
            "default": [
              "nl",
              "fr",
              "en",
              "de"
            ],
            "items": {
              "type": "string"
            }
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 1,
            "maximum": 30,
            "type": "number",
            "description": "Pause between requests to the TED API, to stay polite. Minimum 1, maximum 30. Default: 1.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}