{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders from TED: Contract Notices and Awards",
    "description": "Search EU public tenders on TED by keyword, buyer country, CPV code, notice type and date. Get title, buyer, CPV, procedure, estimated value, deadline, place of performance and links to the notice and PDF. Official TED Search API. Pay per notice.",
    "version": "0.1",
    "x-build-id": "Pe3d7xJ5ZerbXSZ92"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/forgeloop~eu-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-forgeloop-eu-public-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/forgeloop~eu-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-forgeloop-eu-public-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/forgeloop~eu-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-forgeloop-eu-public-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": {
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Words to find in the full text of the notices, in any EU language. Separate alternatives with commas: software, cloud means software OR cloud. A term with several words is searched as an exact phrase, like data centre. Empty searches all notices."
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Country of the buyer as ISO 3166 code, like DE, FR, AT or DEU, FRA. EL and UK work for Greece and the United Kingdom. Empty means all countries.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. Trailing zeros match the whole group: 72000000 finds all IT services, 48000000 all software packages, 7226 everything starting with 7226. The check digit (-5) is optional. A notice matches when any of its CPV codes matches.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these eForms notice types. Empty keeps all types. Older notices from before eForms (late 2023) are mapped to the same types by TED.",
            "items": {
              "type": "string",
              "enum": [
                "pin-only",
                "pin-buyer",
                "pin-rtl",
                "pin-tran",
                "pin-cfc-standard",
                "pin-cfc-social",
                "qu-sy",
                "cn-standard",
                "cn-social",
                "cn-desg",
                "subco",
                "pmc",
                "veat",
                "can-standard",
                "can-social",
                "can-desg",
                "can-tran",
                "can-modif",
                "compl"
              ],
              "enumTitles": [
                "Prior information notice (information only)",
                "Prior information notice (buyer profile)",
                "Prior information notice (shortening time limits)",
                "Prior information notice (public transport)",
                "Prior information notice used as call for competition",
                "Prior information notice used as call for competition (social services)",
                "Qualification system notice",
                "Contract notice",
                "Contract notice (social and other specific services)",
                "Design contest notice",
                "Subcontracting notice",
                "Pre-market consultation notice",
                "Voluntary ex ante transparency notice",
                "Contract award notice",
                "Contract award notice (social and other specific services)",
                "Design contest result notice",
                "Contract award notice (public transport)",
                "Contract modification notice",
                "Contract completion notice"
              ]
            }
          },
          "lastDays": {
            "title": "Published in the last days",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "Notices published in the last N days, counted from today (UTC). Used only when Publication date from is empty. 0 means no lower limit."
          },
          "dateFrom": {
            "title": "Publication date from",
            "type": "string",
            "description": "First publication date to include. Overrides Published in the last days."
          },
          "dateTo": {
            "title": "Publication date to",
            "type": "string",
            "description": "Last publication date to include. Empty means up to today."
          },
          "activeOnly": {
            "title": "Active notices only",
            "type": "boolean",
            "description": "Search only notices TED marks as active, for example calls for tender that are still open. Off searches all notices.",
            "default": false
          },
          "maxNotices": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many notices, newest first. Every notice is one charged result, so this also caps the cost.",
            "default": 50
          },
          "expertQuery": {
            "title": "Expert query",
            "type": "string",
            "description": "For power users. A TED expert search query, combined with AND with the filters above, like notice-type=can-standard AND total-value>1000000. Build and test it at https://ted.europa.eu/en/search/expert-search. An own SORT BY clause replaces the default order (newest first)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}