{
  "openapi": "3.0.1",
  "info": {
    "title": "Official EU Public Tender Opportunities API",
    "description": "Monitor active official EU competition notices from TED with bounded date, country, CPV, buyer, notice-type, and language filters plus deadlines, estimated values, source links, and explicit coverage telemetry.",
    "version": "0.1",
    "x-build-id": "DRojepWgafANMK4V5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/redfoxxie~official-eu-public-tenders-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-redfoxxie-official-eu-public-tenders-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/redfoxxie~official-eu-public-tenders-monitor/runs": {
      "post": {
        "operationId": "runs-sync-redfoxxie-official-eu-public-tenders-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/redfoxxie~official-eu-public-tenders-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-redfoxxie-official-eu-public-tenders-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": {
          "publicationStartDate": {
            "title": "Publication start date",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "maxLength": 10,
            "type": "string",
            "description": "First inclusive TED publication date in YYYY-MM-DD form. Leave empty to derive it from days back.",
            "default": ""
          },
          "publicationEndDate": {
            "title": "Publication end date",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "maxLength": 10,
            "type": "string",
            "description": "Last inclusive TED publication date in YYYY-MM-DD form. Leave empty to use the current UTC date.",
            "default": ""
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Publication lookback used only when publication start date is empty.",
            "default": 1
          },
          "noticeTypes": {
            "title": "Competition notice types",
            "minItems": 1,
            "maxItems": 7,
            "type": "array",
            "description": "Official TED competition notice codes to include. Award and planning-only notices are excluded by design.",
            "items": {
              "type": "string",
              "enum": [
                "cn-desg",
                "cn-social",
                "cn-standard",
                "pin-cfc-social",
                "pin-cfc-standard",
                "qu-sy",
                "subco"
              ]
            },
            "default": [
              "cn-desg",
              "cn-social",
              "cn-standard",
              "pin-cfc-social",
              "pin-cfc-standard",
              "qu-sy",
              "subco"
            ]
          },
          "countries": {
            "title": "Performance countries",
            "maxItems": 30,
            "type": "array",
            "description": "Optional ISO alpha-3 countries of performance, such as PRT, ESP, or DEU.",
            "items": {
              "type": "string",
              "pattern": "^[A-Z]{3}$"
            },
            "default": []
          },
          "cpvPrefixes": {
            "title": "CPV code prefixes",
            "maxItems": 50,
            "type": "array",
            "description": "Optional Common Procurement Vocabulary prefixes containing 2 to 8 digits, such as 72 for IT services.",
            "items": {
              "type": "string",
              "pattern": "^\\d{2,8}$"
            },
            "default": []
          },
          "search": {
            "title": "Title or buyer search",
            "maxLength": 200,
            "type": "string",
            "description": "Case-insensitive text matched against normalized notice titles, buyers, countries, and CPV codes.",
            "default": ""
          },
          "preferredLanguage": {
            "title": "Preferred TED language",
            "pattern": "^[a-z]{3}$",
            "maxLength": 3,
            "type": "string",
            "description": "Three-letter lowercase TED language code used for multilingual titles, buyers, and official notice links.",
            "default": "eng"
          },
          "scanLimit": {
            "title": "Maximum source notices scanned",
            "minimum": 250,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard source-side scan cap. Coverage telemetry reports when the official result set exceeds it.",
            "default": 5000
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on returned tender opportunities and possible paid events for one run.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}