{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tender Alerts — New Tenders, Updates & Awards from TED",
    "description": "Monitor EU public tenders on TED (Tenders Electronic Daily) through its official API. Filter by keywords, CPV codes and countries; each run returns only new tenders, tender updates with the changed deadline or value, and contract awards with winners. No duplicates. Built by AGI Tools Team.",
    "version": "0.0",
    "x-build-id": "WOvBtFtQuVvTz0YcL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agitools~eu-tender-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agitools-eu-tender-alerts",
        "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/agitools~eu-tender-alerts/runs": {
      "post": {
        "operationId": "runs-sync-agitools-eu-tender-alerts",
        "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/agitools~eu-tender-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-agitools-eu-tender-alerts",
        "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": "array",
            "description": "Full-text search terms (any of them matches), e.g. 'cybersecurity', 'facility management'. Letters, digits, spaces and . , ' & / + - only. Leave empty to watch by CPV code or country alone.",
            "items": {
              "type": "string"
            }
          },
          "keywordScope": {
            "title": "Keyword scope",
            "enum": [
              "titleAndDescription",
              "fullText"
            ],
            "type": "string",
            "description": "Where keywords are searched. Full text finds more notices but many are false matches (for example 'cloud' in a document URL).",
            "default": "titleAndDescription"
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. 8 digits (72000000 = IT services, sub-codes included) or a shorter prefix (7226 = all codes starting 7226).",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Country of the contracting authority, as ISO codes: FR, DE, IT, ES, NL ... (2 or 3 letters). Empty = all countries publishing on TED.",
            "items": {
              "type": "string"
            }
          },
          "noticeKinds": {
            "title": "Notice kinds",
            "type": "array",
            "description": "Which notices to deliver. tenders = new calls for competition; updates = corrigenda and re-published tenders (with the changed deadline/value when the watch knows the original); awards = contract award results with winners and values; planning = prior information notices.",
            "items": {
              "type": "string",
              "enum": [
                "tenders",
                "updates",
                "awards",
                "planning"
              ],
              "enumTitles": [
                "New tenders",
                "Tender updates (corrigenda)",
                "Contract awards",
                "Planned procurement (prior information)"
              ]
            },
            "default": [
              "tenders",
              "updates",
              "awards"
            ]
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Skip notices whose published estimated value (or award value) is below this amount, in the notice's currency (usually EUR). Notices without a published value are always kept. Skipped notices are free."
          },
          "monitorId": {
            "title": "Monitor ID (keeps this watch's memory)",
            "type": "string",
            "description": "Any name for this watch, e.g. 'it-tenders-fr-de'. Use the same ID on every scheduled run so only new notices are returned. Saved Tasks get their own memory automatically."
          },
          "lookbackDays": {
            "title": "First-run look-back (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How far back the first run of a watch searches. Later runs continue from where the previous run stopped.",
            "default": 7
          },
          "firstRun": {
            "title": "First run",
            "enum": [
              "deliver",
              "baseline"
            ],
            "type": "string",
            "description": "What the first run of a new watch does with the notices it finds.",
            "default": "deliver"
          },
          "expertQuery": {
            "title": "Expert query (advanced)",
            "type": "string",
            "description": "Optional TED expert-search expression, AND-ed with the filters above, e.g. procedure-type=open. Do not filter on publication-date (the Actor manages the date window). Syntax: TED expert search help."
          },
          "language": {
            "title": "Preferred language",
            "type": "string",
            "description": "3-letter code for titles when TED provides a translation (eng, fra, deu, ita, spa ...). Falls back to English, then the notice's official language.",
            "default": "eng"
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Add the procedure description (in its original language).",
            "default": true
          },
          "emitSummary": {
            "title": "Add a run summary record",
            "type": "boolean",
            "description": "Adds one free record per run (recordType 'summary': window, matching notices, delivered, already delivered). A scheduled run then always returns a result, also when nothing is new. Turn off when every dataset row must be a notice.",
            "default": true
          },
          "maxDescriptionChars": {
            "title": "Max description length",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Descriptions are cut at this many characters (descriptionTruncated says when).",
            "default": 1000
          },
          "maxNoticesPerRun": {
            "title": "Max notices per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on notices delivered (and charged) in one run. Remaining notices are delivered by the next run.",
            "default": 500
          },
          "maxPagesPerRun": {
            "title": "Max search pages per run",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Each page reads up to 250 matching notices from TED. Bounds run time for very broad watches.",
            "default": 8
          },
          "stateStoreName": {
            "title": "Memory store name (advanced)",
            "type": "string",
            "description": "Explicit key-value store name for the watch memory, e.g. to share one memory between Tasks on purpose. Normally leave empty and use monitorId."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout per TED API request.",
            "default": 45
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retries on timeouts and temporary TED errors (with backoff).",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}