{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Contract Award Intelligence - TED Winners & Values",
    "description": "Who wins EU public contracts, and for how much? Contract award notices from TED with winner names, countries, contract values in EUR, number of bids, CPV sector presets and a mode that returns only new awards.",
    "version": "1.0",
    "x-build-id": "kd7Cg1ScxfoPZPFOH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tiger19935~eu-contract-award-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tiger19935-eu-contract-award-intelligence",
        "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/tiger19935~eu-contract-award-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-tiger19935-eu-contract-award-intelligence",
        "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/tiger19935~eu-contract-award-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-tiger19935-eu-contract-award-intelligence",
        "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": {
          "sectors": {
            "title": "Sectors",
            "type": "array",
            "description": "Ready-made CPV groups. Combined with 'CPV codes' below. Leave both empty to get all sectors.",
            "items": {
              "type": "string",
              "enum": [
                "reconstruction",
                "energy",
                "it",
                "medical",
                "transport",
                "water",
                "defence",
                "ev"
              ],
              "enumTitles": [
                "Reconstruction & construction (CPV 45, 71, 44)",
                "Energy (CPV 09, 31, 4531, 65)",
                "IT & software (CPV 72, 48, 302)",
                "Medical equipment & health (CPV 33, 85)",
                "Transport, roads & vehicles (CPV 34, 60, 4523)",
                "Water & waste (CPV 41, 4524, 6510, 90)",
                "Defence & security equipment (CPV 35)",
                "EV charging & electric vehicles (CPV 31158, 31681500, 34144900)"
              ]
            },
            "default": []
          },
          "cpvPrefixes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Your own CPV codes or prefixes (2-8 digits). \"45\" = all construction, \"4531\" = electrical installation, \"72000000\" = IT services. Sub-codes are included automatically.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 10,
            "type": "array",
            "description": "Optional full-text keywords (any of them matches), up to 10. Use the notice language for best results, e.g. \"solar\", \"Ladeinfrastruktur\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "buyerCountries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "3-letter ISO codes of the contracting authority's country, e.g. POL, DEU, FRA. Leave empty for all EU/EEA.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "winnerCountries": {
            "title": "Winner countries",
            "type": "array",
            "description": "Keep only awards won by a company from these countries (3-letter ISO codes). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "winnerContains": {
            "title": "Winner name contains",
            "maxItems": 20,
            "type": "array",
            "description": "Track competitors or customers: keep only awards where a winner's name contains any of these texts (case-insensitive), e.g. \"Siemens\", \"Capgemini\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minValueEur": {
            "title": "Minimum contract value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip awards below this value (non-EUR values are converted with official National Bank of Ukraine rates). Awards without a published value are skipped when this is set."
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only award notices published in the last N days.",
            "default": 30
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "all",
              "newSinceLastRun"
            ],
            "type": "string",
            "description": "'All matching' returns every matching award. 'New since last run' returns only awards that are new or changed since the previous run with the same filters.",
            "default": "all"
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "pattern": "^[a-zA-Z0-9-]{1,40}$",
            "type": "string",
            "description": "Name for the monitoring memory, e.g. \"it-poland\". Runs with the same name share it. Leave empty to derive it from the filters. Letters, digits and '-' only."
          },
          "maxItems": {
            "title": "Max awards",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on awards returned (newest first).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}