{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders (TED) Feed & Contract Expiry Radar",
    "description": "Clean, deduplicated feed of EU/EEA public tenders, contract awards and soon-to-expire contracts from the official TED Search API. Filter by country, CPV (IT/cyber presets), keyword, value. Personal data stripped by default.",
    "version": "0.1",
    "x-build-id": "dy7paULi6smzgbZCs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/larches~eu-ted-tenders-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-larches-eu-ted-tenders-feed",
        "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/larches~eu-ted-tenders-feed/runs": {
      "post": {
        "operationId": "runs-sync-larches-eu-ted-tenders-feed",
        "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/larches~eu-ted-tenders-feed/run-sync": {
      "post": {
        "operationId": "run-sync-larches-eu-ted-tenders-feed",
        "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": "What to collect",
            "enum": [
              "opportunities",
              "awards",
              "expiringContracts",
              "all"
            ],
            "type": "string",
            "description": "opportunities = open contract notices (calls for tender); awards = contract award notices (who won, for how much); expiringContracts = awarded contracts whose end date falls in the next N months (re-tender leads); all = all three.",
            "default": "opportunities"
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "ISO country codes of the buying organisation, 2- or 3-letter (e.g. DE, FR, IE or DEU, FRA, IRL). Leave empty for all of Europe.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Look back (days)",
            "minimum": 1,
            "maximum": 1460,
            "type": "integer",
            "description": "Notices published in the last N days. For expiringContracts use a long window (e.g. 365-1095), since contracts are awarded years before they end. eForms data (with contract end dates) starts around late 2023.",
            "default": 3
          },
          "cpvPreset": {
            "title": "Sector preset",
            "enum": [
              "none",
              "it",
              "cyber",
              "construction",
              "facilities",
              "medical"
            ],
            "type": "string",
            "description": "Adds a ready-made CPV prefix list (or, for cyber, a multilingual keyword set: cyber*, ciber*, SIEM, pentest, NIS2, ISO 27001...) to your own filters.",
            "default": "none"
          },
          "cpvPrefixes": {
            "title": "CPV code prefixes",
            "type": "array",
            "description": "e.g. 72 = IT services, 48 = software, 7222 = IT strategy, 45 = construction. Matches main or additional CPV codes of any lot.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (any match, full text)",
            "type": "array",
            "description": "Any of these words. Use a trailing * for prefix match (cyber*). Phrases are matched as phrases. TED indexes every notice language, so add local-language words too (e.g. cloud, nuage, nube).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywordScope": {
            "title": "Where to match keywords",
            "enum": [
              "title",
              "titleDescription",
              "fullText"
            ],
            "type": "string",
            "description": "Full text includes legal boilerplate (e.g. data-protection clauses), so it returns more false positives. Sector-preset keywords always match titles only.",
            "default": "titleDescription"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title or description contains any of these words (whole word; trailing * for prefix).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Drop notices with a known value below this (in the notice's own currency, usually EUR). Notices with no value are kept unless 'Require a stated value' is on."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "integer",
            "description": "Drop notices with a known value above this (notice currency)."
          },
          "requireValue": {
            "title": "Require a stated value",
            "type": "boolean",
            "description": "Drop notices that state no estimated or awarded value.",
            "default": false
          },
          "openOnly": {
            "title": "Only tenders still open for bids",
            "type": "boolean",
            "description": "Opportunities: drop notices whose latest submission deadline has passed.",
            "default": true
          },
          "includePriorInformation": {
            "title": "Include prior information (pipeline) notices",
            "type": "boolean",
            "description": "Opportunities: also return planning / prior-information-only notices (early signals before a tender opens).",
            "default": false
          },
          "expiringWithinMonths": {
            "title": "Expiring within (months)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "expiringContracts: keep awards whose contract end date is between today and N months from now.",
            "default": 12
          },
          "language": {
            "title": "Preferred language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "pt",
              "sv",
              "da",
              "fi",
              "cs",
              "ro"
            ],
            "type": "string",
            "description": "Language for titles and links where TED provides a translation. The original-language title is always included.",
            "default": "en"
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Remembers delivered procedures (per input) so scheduled runs only output new rows. You are only charged for rows that are output.",
            "default": false
          },
          "maxItems": {
            "title": "Max output rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many output rows (shared fairly across feeds in 'all' mode). Caps your cost.",
            "default": 500
          },
          "maxPages": {
            "title": "Max API pages per feed",
            "minimum": 1,
            "type": "integer",
            "description": "Each page = up to 100 notices. Hard cap to control run time.",
            "default": 30
          },
          "customQuery": {
            "title": "Advanced: extra TED expert-query clause",
            "type": "string",
            "description": "Optional clause ANDed to the query, in TED expert-search syntax, e.g. procedure-type IN (open) or place-of-performance IN (FR1*)."
          },
          "includeContacts": {
            "title": "Include personal data (natural-person winners)",
            "type": "boolean",
            "description": "Off by default: e-mails and phone numbers are removed from free text, and award winners who are natural persons (sole traders) are withheld. Only enable if you have a lawful basis and will comply with the GDPR yourself.",
            "default": false
          },
          "includeRaw": {
            "title": "Include raw TED fields",
            "type": "boolean",
            "description": "Attach the raw TED API fields for each notice (free text is not scrubbed).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}