{
  "openapi": "3.0.1",
  "info": {
    "title": "EU TED & UK Find a Tender Corrigendum & Award Radar",
    "description": "Keyless stateful procurement intelligence Actor for EU TED API v3 (eForms) and UK Find a Tender OCDS API. Tracks tender deadline/value modifications (Corrigenda) and Contract Award Notices with built-in GDPR personal email redaction.",
    "version": "1.0",
    "x-build-id": "8XHoSll6EcTy3Ta0M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/duypham~eu-uk-tender-corrigendum-delta/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-duypham-eu-uk-tender-corrigendum-delta",
        "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/duypham~eu-uk-tender-corrigendum-delta/runs": {
      "post": {
        "operationId": "runs-sync-duypham-eu-uk-tender-corrigendum-delta",
        "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/duypham~eu-uk-tender-corrigendum-delta/run-sync": {
      "post": {
        "operationId": "run-sync-duypham-eu-uk-tender-corrigendum-delta",
        "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": {
          "sources": {
            "title": "Procurement Data Portals",
            "type": "array",
            "description": "Selects which official procurement APIs to query: EU_TED (EU Tenders Electronic Daily API v3) and/or UK_FTS (UK Find a Tender OCDS API). Both portals are queried keyless over official REST endpoints (Decision 2011/833/EU and UK OGL v3.0).",
            "items": {
              "type": "string",
              "enum": [
                "EU_TED",
                "UK_FTS"
              ]
            },
            "default": [
              "EU_TED",
              "UK_FTS"
            ]
          },
          "signalTypes": {
            "title": "Tender Delta Signal Types",
            "type": "array",
            "description": "Emits records when an active tender publishes a deadline/value modification (CORRIGENDUM_DIFF) or announces a winning prime contractor for B2B subcontracting outreach (CONTRACT_AWARD).",
            "items": {
              "type": "string",
              "enum": [
                "CORRIGENDUM_DIFF",
                "CONTRACT_AWARD"
              ]
            },
            "default": [
              "CORRIGENDUM_DIFF",
              "CONTRACT_AWARD"
            ]
          },
          "cpvCodes": {
            "title": "CPV Sector Classification Codes",
            "type": "array",
            "description": "Optional list of Common Procurement Vocabulary prefixes (e.g., ['72000000', '48000000'] for IT services and software) to narrow tender ingestion at the API query layer.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer Country ISO Codes",
            "type": "array",
            "description": "Optional list of 2-letter/3-letter ISO country codes (e.g., ['DE', 'FR', 'NL', 'GB']) to restrict contracting authorities by geography.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "redactPersonalContacts": {
            "title": "Redact Individual Personal Emails",
            "type": "boolean",
            "description": "Masks individual civil-servant names and personal-pattern email addresses (firstname.lastname@) in buyer/winner contact blocks while preserving legal entity names, VAT/company IDs, and generic department desks (procurement@, tenders@).",
            "default": true
          },
          "lookbackHours": {
            "title": "Publication Lookback (Hours)",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Number of hours back from current UTC time to fetch notices from EU TED and UK Find a Tender.",
            "default": 24
          },
          "deltaStateMode": {
            "title": "Delta State Mode",
            "enum": [
              "stateful_delta_only",
              "full_snapshot"
            ],
            "type": "string",
            "description": "Controls whether the Actor emits only newly created or modified records since the last checkpoint (stateful_delta_only) or re-emits all matching records in the lookback window (full_snapshot).",
            "default": "stateful_delta_only"
          },
          "customStateKey": {
            "title": "Custom State Checkpoint Key",
            "type": "string",
            "description": "Optional identifier to isolate the stateful checkpoint cursor in the apify-delta-fleet-state Named Key-Value Store when running multiple parallel n8n/Make workflows.",
            "default": ""
          },
          "maxDeltaRecords": {
            "title": "Max Delta Records Cap",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard ceiling on the number of delta records pushed and billed per run to strictly cap your Pay-Per-Event spend.",
            "default": 100
          },
          "dryRun": {
            "title": "Dry Run (Zero Event Fee)",
            "type": "boolean",
            "description": "Validates upstream connectivity and counts how many net-new delta records match your filters without mutating your saved checkpoint cursor. Incurs $0.00 in Pay-Per-Event charges.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}