{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Procurement Tenders (TED) – Tender Alerts",
    "description": "EU public procurement tenders from TED (Tenders Electronic Daily, ted.europa.eu), the official journal. Input: CPV codes, keywords, countries. Output: title, buyer, value, deadline, notice + PDF links. Tender alerts send only new notices. $2.52/1k.",
    "version": "1.0",
    "x-build-id": "RQnabTcnJjUSyrpva"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/glidepath~ted-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-glidepath-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/glidepath~ted-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-glidepath-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/glidepath~ted-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-glidepath-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases searched in the full notice text in any EU language (e.g. 'software', 'road maintenance', 'Reinigung'). A notice matches if it contains at least one of them. Up to 20. Leave empty for all notices.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Buyer country codes (ISO, 3 or 2 letters), e.g. DEU Germany, FRA France, ITA Italy, ESP Spain, POL Poland, NLD Netherlands, BEL Belgium, AUT Austria, SWE Sweden, CZE Czechia, ROU Romania, PRT Portugal. More: FIN Finland, DNK Denmark, IRL Ireland, GRC Greece (EL), HUN Hungary, NOR Norway, CHE Switzerland. 2-letter codes (DE, FR) work too. Empty = every country that publishes on TED.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. A code also matches everything below it: 72000000 = all IT services, 45000000 = all construction work, 4873 = all security software. Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "enum": [
              "tenders",
              "prior-information",
              "both"
            ],
            "type": "string",
            "description": "Tenders are notices that invite bids. Prior information notices announce purchases a buyer plans to make, often months ahead.",
            "default": "tenders"
          },
          "publishedLastDays": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Rolling date window: only notices published in the last N days (1 for a daily schedule, 7 for a weekly one). The form starts with 7. 0 or empty = no window. If 'Published on or after' is also set, the later of the two dates is used."
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after saving this many notices (each saved notice is charged). Newest notices come first.",
            "default": 100
          },
          "onlyOpen": {
            "title": "Only tenders still open for bids",
            "type": "boolean",
            "description": "Keep only notices whose bid deadline (of at least one lot) is today or later. Turn off to search past tenders too. Ignored for prior information notices, which have no bid deadline.",
            "default": true
          },
          "publishedFrom": {
            "title": "Published on or after",
            "type": "string",
            "description": "Only notices published on TED on or after this date (YYYY-MM-DD). For schedules, 'Published in the last N days' needs no updating."
          },
          "publishedTo": {
            "title": "Published on or before",
            "type": "string",
            "description": "Only notices published on or before this date (YYYY-MM-DD)."
          },
          "minEstimatedValue": {
            "title": "Minimum estimated value (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only notices with an estimated value in euro of at least this amount (excluding VAT). Notices without a published value, or valued in another currency, are left out when this is set. Applied to each notice after download; left-out notices are never charged. Empty or 0 = off."
          },
          "buyerName": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Keep only notices whose buyer organisation name contains this text (not case-sensitive), e.g. 'Stadt München' or 'university'. Applied to each notice after download; left-out notices are never charged."
          },
          "contractNature": {
            "title": "Contract type",
            "type": "array",
            "description": "Keep only notices for these types of contract: works, supplies, services. A notice matches if any of its contract types is selected. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "supplies",
                "services"
              ],
              "enumTitles": [
                "Works (construction)",
                "Supplies (goods)",
                "Services"
              ]
            }
          },
          "procedureType": {
            "title": "Procedure type",
            "type": "array",
            "description": "Keep only notices run under these procedure types (TED codes open, restricted, neg-w-call, comp-dial, innovation, oth-single, oth-mult). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "restricted",
                "neg-w-call",
                "comp-dial",
                "innovation",
                "oth-single",
                "oth-mult"
              ],
              "enumTitles": [
                "Open procedure",
                "Restricted procedure",
                "Negotiated procedure with a call for competition",
                "Competitive dialogue",
                "Innovation partnership",
                "Other single-stage procedure",
                "Other multi-stage procedure"
              ]
            }
          },
          "onlyNew": {
            "title": "Only new notices (tender alert)",
            "type": "boolean",
            "description": "Save and charge only notices this alert has not delivered before. The first run saves up to 'Max notices' (newest first); later runs save new notices and any older matches it left out. Skipped notices are counted in the run summary. Delivered notice IDs are remembered for 120 days in a key-value store in your account. For only new notices from the second run on, give the first run a 'Max notices' above the number of matches.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Name of this alert's memory, e.g. it-dach (letters, digits and '-'); use one name per alert. The memory is the key-value store 'ted-alert-' plus the name (ted-alert-it-dach) in your account. Empty = one memory per distinct search, so changing a filter starts a new baseline. Used only with 'Only new notices'."
          },
          "expertQuery": {
            "title": "TED expert query",
            "type": "string",
            "description": "Optional raw query in TED's expert search syntax, e.g. FT~\"cloud\" AND FT~\"migration\" (both words, where Keywords match either). Put words and phrases in double quotes; single quotes are allowed only inside them. It is combined with AND with all other filters, so it can only narrow the search; output fields stay the same. SORT BY is not allowed (results come newest first). If TED rejects the query, the run stops with an input error and nothing is charged."
          },
          "titleLanguage": {
            "title": "Title language",
            "enum": [
              "ENG",
              "DEU",
              "FRA",
              "SPA",
              "ITA",
              "POL",
              "NLD",
              "POR",
              "SWE",
              "CES",
              "RON",
              "HUN",
              "ELL",
              "DAN",
              "FIN",
              "SLK",
              "BUL",
              "HRV",
              "SLV",
              "LIT",
              "LAV",
              "EST",
              "MLT",
              "GLE"
            ],
            "type": "string",
            "description": "Language of the 'title' field: TED's translated notice heading (country and CPV subject translated; the buyer's own title part stays as published). English is used where TED has no translation. Descriptions always stay in the buyer's language.",
            "default": "ENG"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}