{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders Scraper & Opportunity Monitor",
    "description": "Find and monitor EU public tenders from official TED data. Score opportunities for company fit and track deadline changes, amendments, contract awards, and other important updates.",
    "version": "1.0",
    "x-build-id": "t0OZko2vhXE204DWP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/herazur~eu-tender-fit-amendment-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-herazur-eu-tender-fit-amendment-radar",
        "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/herazur~eu-tender-fit-amendment-radar/runs": {
      "post": {
        "operationId": "runs-sync-herazur-eu-tender-fit-amendment-radar",
        "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/herazur~eu-tender-fit-amendment-radar/run-sync": {
      "post": {
        "operationId": "run-sync-herazur-eu-tender-fit-amendment-radar",
        "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",
        "required": [
          "monitorId",
          "stateStoreName",
          "lookbackDays",
          "maxScanNotices",
          "maxResults",
          "targetCpvCodes",
          "targetCountries",
          "targetNutsRegions",
          "buyerKeywords",
          "procedureTypes",
          "capabilityKeywords",
          "excludedKeywords",
          "minimumFitScore",
          "highPriorityScore",
          "deadlineNearDays",
          "stateRetentionDays",
          "maxStateNotices",
          "resetState"
        ],
        "properties": {
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Stable ID used to isolate recurring state.",
            "default": "default"
          },
          "stateStoreName": {
            "title": "State store",
            "type": "string",
            "description": "Named key-value store retained across Actor runs.",
            "default": "eu-tender-radar-state"
          },
          "expertQuery": {
            "title": "Additional TED expert query",
            "type": "string",
            "description": "Optional official TED expert-search expression combined with the publication window."
          },
          "lookbackDays": {
            "title": "Publication lookback days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How far back to search by TED publication date on every run.",
            "default": 14
          },
          "maxScanNotices": {
            "title": "Maximum notices to scan",
            "minimum": 25,
            "maximum": 50000,
            "type": "integer",
            "description": "Acquisition safety cap across all query shards. A capped run explicitly reports incomplete coverage.",
            "default": 5000
          },
          "maxResults": {
            "title": "Maximum actionable updates",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum customer-visible update rows returned per run. Overflow remains pending for the next run.",
            "default": 500
          },
          "targetCpvCodes": {
            "title": "Target CPV codes",
            "type": "array",
            "description": "Exact codes or parent prefixes ending in *.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "targetCountries": {
            "title": "Target buyer countries",
            "type": "array",
            "description": "Three-letter TED country codes such as DEU or FRA.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "targetNutsRegions": {
            "title": "Target NUTS regions",
            "type": "array",
            "description": "NUTS codes or prefixes for target places of performance.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "buyerKeywords": {
            "title": "Preferred buyer terms",
            "type": "array",
            "description": "Case-insensitive terms matched against buyer names.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "procedureTypes": {
            "title": "Procedure types",
            "type": "array",
            "description": "Exact TED procedure-type values such as open or restricted.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "capabilityKeywords": {
            "title": "Capability keywords",
            "type": "array",
            "description": "Case-insensitive terms matched in buyer, title, description, and criteria text.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludedKeywords": {
            "title": "Excluded terms",
            "type": "array",
            "description": "Any matching term makes the notice ineligible.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minimumContractValue": {
            "title": "Minimum contract value",
            "minimum": 0,
            "type": "integer",
            "description": "Optional inclusive lower value bound in the notice's stated currency."
          },
          "maximumContractValue": {
            "title": "Maximum contract value",
            "minimum": 0,
            "type": "integer",
            "description": "Optional inclusive upper value bound in the notice's stated currency."
          },
          "contractCurrency": {
            "title": "Contract currency",
            "type": "string",
            "description": "Optional three-letter currency required before applying value-range points."
          },
          "minimumFitScore": {
            "title": "Minimum fit score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum deterministic score for an eligible match.",
            "default": 35
          },
          "highPriorityScore": {
            "title": "High-priority score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Score threshold for NEW_HIGH_PRIORITY_TENDER.",
            "default": 70
          },
          "deadlineNearDays": {
            "title": "Near-deadline window",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Remaining-day threshold for DEADLINE_NEAR scoring.",
            "default": 21
          },
          "stateRetentionDays": {
            "title": "Closed-state retention days",
            "minimum": 30,
            "maximum": 1825,
            "type": "integer",
            "description": "How long closed, expired, and emitted update state is retained.",
            "default": 365
          },
          "maxStateNotices": {
            "title": "Maximum retained notice snapshots",
            "minimum": 100,
            "maximum": 100000,
            "type": "integer",
            "description": "Safety bound for non-actionable history; open actionable notices are never dropped solely to meet this bound.",
            "default": 20000
          },
          "resetState": {
            "title": "Reset this monitor",
            "type": "boolean",
            "description": "Ignore existing monitor state on this run.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}