{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders from TED (daily new-tender alerts, awards)",
    "description": "Search EU public tenders on TED by country, CPV code, keyword and deadline. Daily new-only alerts, contract awards and values, document links. $2 per 1,000 notices.",
    "version": "0.0",
    "x-build-id": "uZnjHfOrzGoMLe8Dm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brimming_placket~ted-eu-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brimming_placket-ted-eu-tenders",
        "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/brimming_placket~ted-eu-tenders/runs": {
      "post": {
        "operationId": "runs-sync-brimming_placket-ted-eu-tenders",
        "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/brimming_placket~ted-eu-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-brimming_placket-ted-eu-tenders",
        "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 contracting authority, as two- or three-letter codes (FR or FRA, DE or DEU). Empty means all countries.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (sectors)",
            "type": "array",
            "description": "Common Procurement Vocabulary codes, 8 digits, e.g. 72000000 (IT services) or 45000000 (construction work). A check digit like -5 is fine. A notice matches if it lists any of them.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases searched in the notice text (TED full-text search, stemmed, in the notice's languages). A notice matches any one of them.",
            "items": {
              "type": "string"
            }
          },
          "noticeKind": {
            "title": "Kind of notice",
            "enum": [
              "tenders",
              "awards",
              "planning",
              "modifications",
              "all"
            ],
            "type": "string",
            "description": "Ignored when you list notice type codes below.",
            "default": "tenders"
          },
          "noticeTypes": {
            "title": "Notice type codes (advanced)",
            "type": "array",
            "description": "eForms notice-type codes, e.g. cn-standard, can-standard, veat, pin-only. Overrides Kind of notice.",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Only notices published on or after this day. YYYY-MM-DD, or relative to the run day like today, today-7 or today+30 (handy in schedules)."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Only notices published on or before this day. YYYY-MM-DD, or relative to the run day like today, today-7 or today+30 (handy in schedules)."
          },
          "deadlineFrom": {
            "title": "Tender deadline from",
            "type": "string",
            "description": "Only notices whose deadline for tenders is on or after this day, e.g. today+7 for tenders you still have a week to answer. Two-stage procedures that only have a deadline to request to take part are left out. YYYY-MM-DD, or relative to the run day like today, today-7 or today+30 (handy in schedules)."
          },
          "deadlineTo": {
            "title": "Tender deadline to",
            "type": "string",
            "description": "Only notices whose deadline for tenders is on or before this day. Two-stage procedures that only have a deadline to request to take part are left out. YYYY-MM-DD, or relative to the run day like today, today-7 or today+30 (handy in schedules)."
          },
          "scope": {
            "title": "Search scope",
            "enum": [
              "ACTIVE",
              "ALL",
              "LATEST"
            ],
            "type": "string",
            "description": "TED's own scope. Use All for award notices and anything historical.",
            "default": "ACTIVE"
          },
          "expertQuery": {
            "title": "TED expert query (advanced)",
            "type": "string",
            "description": "Extra conditions in TED expert-search syntax, joined to the filters above with AND, e.g. procedure-type = open. Leave SORT BY out."
          },
          "newOnly": {
            "title": "Only new since the last run",
            "type": "boolean",
            "description": "For daily alerts: each run returns only notices this search has not returned before, so a schedule pays for each notice once. The position is saved per search (or per alert name) in your account.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Optional. Give each alert its own name to keep separate positions. Without one, the position follows the filters."
          },
          "firstRunLookbackDays": {
            "title": "First run looks back (days)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "With Only new: how far back the very first run reads when Published from is empty.",
            "default": 3
          },
          "language": {
            "title": "Text language",
            "type": "string",
            "description": "Three-letter code for titles and descriptions (eng, fra, deu, spa, ita, pol ...). Falls back to the language the notice was written in.",
            "default": "eng"
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "The procedure description. Turn off for smaller rows.",
            "default": true
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many notices. You are charged per notice, so this caps the cost of a run.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "250 notices a page, for searches without Only new.",
            "default": 40
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 0.1,
            "type": "number",
            "description": "TED allows 700 requests a minute from one IP; the default stays far under it.",
            "default": 0.5
          },
          "failOnZeroItems": {
            "title": "Fail the run if nothing is found",
            "type": "boolean",
            "description": "On by default, so a changed API or a typo shows up as a failed run instead of a silent empty one. Not applied with Only new, where a quiet day is normal.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}