{
  "openapi": "3.0.1",
  "info": {
    "title": "Eu Ted Tender Summary",
    "version": "0.0",
    "x-build-id": "3y3S2MmObMUGY1cmJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/worthwhile_loblolly~eu-ted-tender-summary/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-worthwhile_loblolly-eu-ted-tender-summary",
        "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/worthwhile_loblolly~eu-ted-tender-summary/runs": {
      "post": {
        "operationId": "runs-sync-worthwhile_loblolly-eu-ted-tender-summary",
        "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/worthwhile_loblolly~eu-ted-tender-summary/run-sync": {
      "post": {
        "operationId": "run-sync-worthwhile_loblolly-eu-ted-tender-summary",
        "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": {
          "query": {
            "title": "Custom expert query",
            "type": "string",
            "description": "Optional raw TED expert-search expression. Combined with structured filters using AND. Example: notice-type=cn-standard AND buyer-country=DEU"
          },
          "keyword": {
            "title": "Keyword (full text)",
            "type": "string",
            "description": "Full-text keyword searched with TED FT~ operator across notice text. Example: software OR logistics"
          },
          "buyerCountry": {
            "title": "Buyer country (ISO 3166-1 alpha-3)",
            "type": "string",
            "description": "Filter by buyer country code used on TED, e.g. DEU, FRA, ITA, ESP, POL, NLD, BEL."
          },
          "cpv": {
            "title": "CPV code",
            "type": "string",
            "description": "Common Procurement Vocabulary code (digits). Hierarchical — a short prefix matches the branch. Example: 03000000 (food/agricultural) or 72000000 (IT)."
          },
          "noticeType": {
            "title": "Notice type",
            "enum": [
              "",
              "cn-standard",
              "can-standard",
              "pin-only",
              "pin-rtl",
              "pin-cfc-standard",
              "veat",
              "corr"
            ],
            "type": "string",
            "description": "TED notice-type filter (eForms).",
            "default": "cn-standard"
          },
          "procedureType": {
            "title": "Procedure type",
            "enum": [
              "",
              "open",
              "restricted",
              "competitive-negotiation",
              "competitive-dialogue",
              "innovation-partnership"
            ],
            "type": "string",
            "description": "Procurement procedure filter.",
            "default": ""
          },
          "contractNature": {
            "title": "Contract nature",
            "enum": [
              "",
              "services",
              "supplies",
              "works"
            ],
            "type": "string",
            "description": "Main contract nature.",
            "default": ""
          },
          "publicationDateFrom": {
            "title": "Publication date from (YYYYMMDD)",
            "type": "string",
            "description": "Inclusive lower bound on publication-date, e.g. 20260901."
          },
          "publicationDateTo": {
            "title": "Publication date to (YYYYMMDD)",
            "type": "string",
            "description": "Inclusive upper bound on publication-date, e.g. 20261231. Leave empty for no upper bound."
          },
          "scope": {
            "title": "Search scope",
            "enum": [
              "ACTIVE",
              "ALL"
            ],
            "type": "string",
            "description": "ACTIVE = currently published notices; ALL = broader TED scope when supported.",
            "default": "ACTIVE"
          },
          "limit": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of notice summaries to return (1–5000). TED allows max 250 per request; this Actor pages automatically (ITERATION mode by default).",
            "default": 50
          },
          "page": {
            "title": "Start page (PAGE_NUMBER mode only)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "1-based page index when paginationMode is PAGE_NUMBER. Ignored in ITERATION mode.",
            "default": 1
          },
          "paginationMode": {
            "title": "Pagination mode",
            "enum": [
              "ITERATION",
              "PAGE_NUMBER"
            ],
            "type": "string",
            "description": "ITERATION (recommended): scroll through all matching notices with a token. PAGE_NUMBER: classic pages (TED caps at ~15,000 notices).",
            "default": "ITERATION"
          },
          "linkLanguage": {
            "title": "Preferred link language",
            "enum": [
              "ENG",
              "DEU",
              "FRA",
              "ITA",
              "SPA",
              "NLD",
              "POL",
              "CES",
              "RON",
              "SWE"
            ],
            "type": "string",
            "description": "ISO-ish TED language code for notice HTML/PDF links (ENG, DEU, FRA, …).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}