{
  "openapi": "3.0.1",
  "info": {
    "title": "EU TED Tenders Scraper & API: Public Procurement Feed",
    "description": "EU tenders API: get new public procurement notices from TED (Tenders Electronic Daily) via the official API. Filter by country, CPV code, keyword, date, notice and procedure type. Open tenders, awards, modifications. No API key. JSON, CSV or Excel for bid alerts, B2G lead gen and market research.",
    "version": "0.1",
    "x-build-id": "Vl6AH975ZNTnteyEa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sidehustler~ted-eu-tenders-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sidehustler-ted-eu-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/sidehustler~ted-eu-tenders-feed/runs": {
      "post": {
        "operationId": "runs-sync-sidehustler-ted-eu-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/sidehustler~ted-eu-tenders-feed/run-sync": {
      "post": {
        "operationId": "run-sync-sidehustler-ted-eu-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": {
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "ISO country codes of the contracting authority, alpha-2 (GR, CY, DE) or alpha-3 (GRC, CYP, DEU). \"EL\" and \"UK\" are accepted. Leave empty for all countries.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes / sectors",
            "type": "array",
            "description": "CPV codes to match. Trailing zeros act as a sector prefix: 72000000 (or 72) matches all IT services, 45000000 all construction work, 33600000 pharmaceuticals. Leave empty for all sectors.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Full-text keywords searched across the whole notice (any language). Multiple keywords are combined with OR; multi-word entries are searched as an exact phrase.",
            "items": {
              "type": "string"
            }
          },
          "lastDays": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Used only when no publication date range is set below.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional start of the publication date range. Overrides \"last N days\"."
          },
          "publishedTo": {
            "title": "Published to (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional end of the publication date range (inclusive)."
          },
          "noticeCategory": {
            "title": "Notice category",
            "enum": [
              "competition",
              "planning",
              "results",
              "modifications",
              "all"
            ],
            "type": "string",
            "description": "Quick filter by notice purpose. \"Open calls for tenders\" covers contract notices and calls for competition. Ignored if specific notice types are selected below.",
            "default": "competition"
          },
          "noticeTypes": {
            "title": "Specific notice types (advanced)",
            "type": "array",
            "description": "Exact TED eForms notice types, e.g. cn-standard, can-standard, pin-only. Overrides the category above.",
            "items": {
              "type": "string",
              "enum": [
                "pin-only",
                "pin-buyer",
                "pin-rtl",
                "pin-tran",
                "pin-cfc-standard",
                "pin-cfc-social",
                "qu-sy",
                "cn-standard",
                "cn-social",
                "subco",
                "cn-desg",
                "can-standard",
                "can-social",
                "can-desg",
                "can-tran",
                "can-modif",
                "veat",
                "compl"
              ],
              "enumTitles": [
                "Prior information (only)",
                "Prior information (buyer profile)",
                "Prior information (reducing time limits)",
                "Prior information (transport)",
                "PIN used as call for competition",
                "PIN call for competition (social)",
                "Qualification system",
                "Contract notice",
                "Contract notice (social / light regime)",
                "Subcontracting notice",
                "Design contest",
                "Contract award notice",
                "Contract award (social)",
                "Design contest result",
                "Contract award (transport)",
                "Contract modification",
                "Voluntary ex-ante transparency",
                "Contract completion"
              ]
            }
          },
          "procedureTypes": {
            "title": "Procedure types",
            "type": "array",
            "description": "Optional procurement procedure filter. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "restricted",
                "neg-w-call",
                "neg-wo-call",
                "comp-dial",
                "innovation",
                "oth-single",
                "oth-mult",
                "comp-tend"
              ],
              "enumTitles": [
                "Open",
                "Restricted",
                "Negotiated with call",
                "Negotiated without call",
                "Competitive dialogue",
                "Innovation partnership",
                "Other single-stage",
                "Other multi-stage",
                "Competitive tendering"
              ]
            }
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Keep only notices whose submission deadline is today or later.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of notices to save. Newest notices come first.",
            "default": 100
          },
          "language": {
            "title": "Preferred language",
            "enum": [
              "en",
              "el",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "nl",
              "pl",
              "ro",
              "bg",
              "cs",
              "da",
              "et",
              "fi",
              "ga",
              "hr",
              "hu",
              "lt",
              "lv",
              "mt",
              "sk",
              "sl",
              "sv"
            ],
            "type": "string",
            "description": "Language for titles, buyer names and links when TED has that translation; otherwise the notice's original language is used.",
            "default": "en"
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate the procurement description to this many characters (0 = no limit).",
            "default": 1000
          },
          "aiSummary": {
            "title": "AI summary (coming soon)",
            "type": "boolean",
            "description": "Not available yet. Will add a short English summary of each notice in a future version. Currently ignored.",
            "default": false
          },
          "rawQuery": {
            "title": "Raw TED expert query (advanced)",
            "type": "string",
            "description": "Optional TED expert-search query, e.g. buyer-country=GRC AND classification-cpv=72* . When set, it replaces all filters above (max results still applies)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}