{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tender & Contract Award Monitor",
    "description": "Find and monitor EU public procurement opportunities and contract awards from the official TED API, with country, CPV, keyword, date, and deadline filters.",
    "version": "0.0",
    "x-build-id": "YprOqp2gmLY9WH7Kz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nordicdataforge~eu-tender-contract-award-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nordicdataforge-eu-tender-contract-award-monitor",
        "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/nordicdataforge~eu-tender-contract-award-monitor/runs": {
      "post": {
        "operationId": "runs-sync-nordicdataforge-eu-tender-contract-award-monitor",
        "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/nordicdataforge~eu-tender-contract-award-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-nordicdataforge-eu-tender-contract-award-monitor",
        "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": {
          "mode": {
            "title": "What to find",
            "enum": [
              "opportunities",
              "awards",
              "all"
            ],
            "type": "string",
            "description": "Open opportunities is the best default for sales and bid monitoring. Awards add winner and awarded-value intelligence.",
            "default": "opportunities"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of normalized notices fetched before change filtering.",
            "default": 100
          },
          "publishedWithinDays": {
            "title": "Recent publication window",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Used when Published since is blank. The default searches the most recent 30 days on every scheduled run.",
            "default": 30
          },
          "countries": {
            "title": "Buyer countries",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional ISO alpha-3 codes, for example DNK, SWE, DEU, FRA, or NLD. Leave empty for all countries.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{3}$"
            },
            "default": []
          },
          "cpvCodes": {
            "title": "CPV sectors or codes",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Enter a 2–8 digit CPV prefix or exact code. Example: 72 for IT services, 48 for software, or 72000000.",
            "items": {
              "type": "string",
              "pattern": "^\\d{2,8}$"
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional full-text terms. Multiple entries match any term, for example cybersecurity, cloud services, or solar.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": []
          },
          "publishedSince": {
            "title": "Published since",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional fixed YYYY-MM-DD date. Overrides the recent publication window."
          },
          "publishedUntil": {
            "title": "Published until",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD end date."
          },
          "deadlineFrom": {
            "title": "Submission deadline from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD deadline filter."
          },
          "deadlineUntil": {
            "title": "Submission deadline until",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD deadline filter."
          },
          "enableChangeMonitoring": {
            "title": "Enable change monitoring",
            "type": "boolean",
            "description": "Compare each result with the previous run of the same filter set in persistent Apify storage.",
            "default": true
          },
          "outputMode": {
            "title": "Results to output",
            "enum": [
              "all",
              "new-and-updated",
              "new-only"
            ],
            "type": "string",
            "description": "On the first run every record is new. Later runs can emit only actionable deltas.",
            "default": "all"
          },
          "preferredLanguage": {
            "title": "Preferred language",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "ISO alpha-3 TED language code used for multilingual text, for example ENG, DAN, DEU, or FRA. Falls back gracefully.",
            "default": "ENG"
          },
          "advancedQuery": {
            "title": "Additional TED expert query",
            "maxLength": 2000,
            "type": "string",
            "description": "Optional advanced clause appended with AND. Use only if you know TED Expert Search syntax."
          },
          "pageSize": {
            "title": "API page size",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "TED permits up to 250 notices per request and 10,000 returned fields per page.",
            "default": 200
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Timeout for each official API request.",
            "default": 45
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries temporary timeouts, rate limits, and server errors with exponential backoff.",
            "default": 3
          },
          "minRequestIntervalMillis": {
            "title": "Minimum request interval",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Conservative pause between API pages.",
            "default": 250
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}