{
  "openapi": "3.0.1",
  "info": {
    "title": "EU TED Tender & Award Monitor",
    "description": "Search EU TED tenders and monitor lot deadlines, awards and winning suppliers. Export values, tender counts and verified changes for your CRM.",
    "version": "0.2",
    "x-build-id": "grzAcB5rjsdjs1hdo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automa-flow~eu-ted-tender-history-award-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automa-flow-eu-ted-tender-history-award-tracker",
        "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/automa-flow~eu-ted-tender-history-award-tracker/runs": {
      "post": {
        "operationId": "runs-sync-automa-flow-eu-ted-tender-history-award-tracker",
        "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/automa-flow~eu-ted-tender-history-award-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-automa-flow-eu-ted-tender-history-award-tracker",
        "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": {
          "targets": {
            "title": "TED tenders",
            "maxItems": 100,
            "type": "array",
            "description": "Up to 100 entries. Each has exactly one noticeId, tedUrl or procedureId; externalRef carries your CRM key. Invalid entries get their own status.",
            "items": {
              "type": "object"
            }
          },
          "tedUrls": {
            "title": "TED links",
            "type": "array",
            "description": "Alternative to targets: official TED notice links.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Run mode",
            "enum": [
              "snapshot",
              "monitor",
              "snapshotAndChanges",
              "changesOnly"
            ],
            "type": "string",
            "description": "Snapshot returns available history. Monitor remembers the same list in your persistent store.",
            "default": "snapshot"
          },
          "stateStoreId": {
            "title": "Persistent Key-value store ID",
            "type": "string",
            "description": "Required for monitor. ID of a store you own and explicitly authorize this Actor to read and write. Do not use a run-specific default store."
          },
          "stateStoreName": {
            "title": "Persistent Key-value store name",
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{0,62}$",
            "type": "string",
            "description": "Alternative to the store ID for monitor: the name of a Key-value store in your own account, created on the first run if it does not exist. Portable across copied Tasks. Give exactly one of store ID or store name."
          },
          "watchlistId": {
            "title": "Watchlist name",
            "maxLength": 120,
            "type": "string",
            "description": "Required for monitor. A stable namespace within your store; keep it unchanged on repeats."
          },
          "changesOnly": {
            "title": "Only new events on repeat runs",
            "type": "boolean",
            "description": "The first run always returns a dossier. Target statuses remain visible on quiet repeats.",
            "default": true
          },
          "keywords": {
            "title": "Tender keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Match any phrase in TED full text; discovery searches competition notices.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "maxItems": 20,
            "type": "array",
            "description": "Three-letter TED buyer-country codes, e.g. DEU or FRA; not place of performance.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "maxItems": 20,
            "type": "array",
            "description": "Two to eight digits; prefixes such as 72 include their descendants.",
            "items": {
              "type": "string"
            }
          },
          "buyerNames": {
            "title": "Buyer names",
            "maxItems": 20,
            "type": "array",
            "description": "Match any buyer-name phrase in TED Search.",
            "items": {
              "type": "string"
            }
          },
          "winnerNames": {
            "title": "Winning suppliers",
            "maxItems": 20,
            "type": "array",
            "description": "Find award notices. Exact normalized or whole-token phrase matching; no company identity resolution.",
            "items": {
              "type": "string"
            }
          },
          "procedureIds": {
            "title": "Procedure identifiers",
            "maxItems": 100,
            "type": "array",
            "description": "Alternative to targets: up to 100 TED procedure UUIDs.",
            "items": {
              "type": "string"
            }
          },
          "publicationNumbers": {
            "title": "Publication numbers",
            "maxItems": 100,
            "type": "array",
            "description": "Alternative to targets: up to 100 TED publication numbers.",
            "items": {
              "type": "string"
            }
          },
          "monitorKey": {
            "title": "Monitor name",
            "maxLength": 80,
            "type": "string",
            "description": "Enables persistent monitoring in your account. Keep unchanged on repeat runs. Alternative to legacy store/watchlist fields."
          },
          "publicationDateFrom": {
            "title": "publicationDateFrom",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD boundary. Filters match notices, not necessarily the same lot."
          },
          "publicationDateTo": {
            "title": "publicationDateTo",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD boundary. Filters match notices, not necessarily the same lot."
          },
          "deadlineFrom": {
            "title": "deadlineFrom",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD boundary. Filters match notices, not necessarily the same lot."
          },
          "deadlineTo": {
            "title": "deadlineTo",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD boundary. Filters match notices, not necessarily the same lot."
          },
          "daysBack": {
            "title": "daysBack",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Discovery only. Search defaults to 30 days and at most 100 candidates; capped results are explicitly partial."
          },
          "maxResults": {
            "title": "maxResults",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Discovery only. Search defaults to 30 days and at most 100 candidates; capped results are explicitly partial."
          },
          "minEstimatedValue": {
            "title": "minEstimatedValue",
            "minimum": 0,
            "maximum": 1000000000000000,
            "type": "number",
            "description": "Notice-level TED estimated lot value filter; requires currency. No FX conversion."
          },
          "maxEstimatedValue": {
            "title": "maxEstimatedValue",
            "minimum": 0,
            "maximum": 1000000000000000,
            "type": "number",
            "description": "Notice-level TED estimated lot value filter; requires currency. No FX conversion."
          },
          "currency": {
            "title": "Estimate currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "Three-letter currency for estimated value filters."
          },
          "includeLots": {
            "title": "includeLots",
            "type": "boolean",
            "description": "Include these output fields/records. Source verification is still performed.",
            "default": true
          },
          "includeAwards": {
            "title": "includeAwards",
            "type": "boolean",
            "description": "Include these output fields/records. Source verification is still performed.",
            "default": true
          },
          "includeChanges": {
            "title": "includeChanges",
            "type": "boolean",
            "description": "Include these output fields/records. Source verification is still performed.",
            "default": true
          },
          "includeDerivedMetrics": {
            "title": "includeDerivedMetrics",
            "type": "boolean",
            "description": "Include these output fields/records. Source verification is still performed.",
            "default": true
          },
          "maxNoticesPerProcedure": {
            "title": "History notices per procedure",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stops with explicit partial coverage when reached; raise deliberately to continue the same watchlist.",
            "default": 200
          },
          "maxTotalNotices": {
            "title": "Notices across the run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stops with explicit partial coverage when reached; raise deliberately to continue the same watchlist.",
            "default": 500
          },
          "maxDiscoveryNotices": {
            "title": "Discovery candidates across the run",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Stops with explicit partial coverage when reached; raise deliberately to continue the same watchlist.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}