{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Tender Alerts — EU TED, UK, Canada & SAM.gov Procurement",
    "description": "Daily public procurement tender alerts from official government APIs: EU TED, UK Find a Tender, UK Contracts Finder, CanadaBuys and SAM.gov. Keyword, CPV, country and value filters, cross-source dedupe and only-new-since-last-run mode. One clean JSON schema.",
    "version": "1.0",
    "x-build-id": "nVcCycfiLfwQ8N3HZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~global-tender-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-global-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/gazidev~global-tender-alerts/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-global-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/gazidev~global-tender-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-global-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": "A tender is returned if ANY keyword matches its title, description or buyer (case- and accent-insensitive, whole words). Use a trailing * for prefixes, e.g. \"cyber*\". Leave empty to get every notice (then use CPV/country filters). For EU TED the search runs over the full notice text in all languages, so add local-language terms (e.g. \"Software\", \"logiciel\", \"oprogramowanie\") for best coverage.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop tenders whose title/description/buyer contains any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Official procurement portals to monitor. SAM.gov needs your own free API key (see below).",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk_fts",
                "uk_cf",
                "canadabuys",
                "sam_gov"
              ],
              "enumTitles": [
                "EU — TED (27 EU states + EEA, CH, candidates)",
                "UK — Find a Tender Service",
                "UK — Contracts Finder",
                "Canada — CanadaBuys",
                "USA — SAM.gov (API key required)"
              ]
            },
            "default": [
              "ted",
              "uk_fts",
              "uk_cf",
              "canadabuys"
            ]
          },
          "countries": {
            "title": "Buyer countries (ISO-2)",
            "type": "array",
            "description": "Optional. Two-letter country codes, e.g. DE, FR, PL, GB, CA, US. Filters TED by buyer country; UK/Canada/US sources are skipped if their country isn't listed. Empty = all countries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (prefix match)",
            "type": "array",
            "description": "Optional. Common Procurement Vocabulary codes or prefixes, e.g. 72 (IT services), 48 (software), 45 (construction), 79 (business services). Applied to TED and UK sources (CanadaBuys/SAM.gov use UNSPSC/NAICS and are not filtered by CPV).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "competition = open calls for tender you can bid on; planning = prior information / early market engagement (bid early!); result = contract award notices (competitor & market intelligence).",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "planning",
                "result"
              ],
              "enumTitles": [
                "Open tenders (calls for competition)",
                "Planned tenders (prior information notices)",
                "Contract awards (results)"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "daysBack": {
            "title": "Look back (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Publication window. For a daily schedule 2–3 days is plenty (only-new mode removes repeats). Max 90.",
            "default": 3
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (alert mode)",
            "type": "boolean",
            "description": "Remember delivered tenders and output only ones you have never received before. Perfect for scheduled runs: you pay only for genuinely new notices.",
            "default": true
          },
          "stateKey": {
            "title": "Alert profile name",
            "type": "string",
            "description": "Optional name for the 'already delivered' memory, e.g. \"acme-it-tenders\". Runs with the same name share memory. Leave empty to derive it automatically from your filters."
          },
          "openOnly": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Drop notices whose submission deadline has already passed or that are cancelled.",
            "default": true
          },
          "minValue": {
            "title": "Minimum estimated value",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Drop tenders with an estimated value below this number (in the notice's own currency). Notices without a published value are kept."
          },
          "dedupeAcrossSources": {
            "title": "De-duplicate across sources",
            "type": "boolean",
            "description": "Merge the same tender published on several portals (e.g. UK Find a Tender + Contracts Finder) into one result, listing the others in alsoPublishedOn.",
            "default": true
          },
          "maxItems": {
            "title": "Max results per run",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap on results (and cost) per run.",
            "default": 1000
          },
          "samGovApiKey": {
            "title": "SAM.gov API key",
            "type": "string",
            "description": "Only needed for the SAM.gov source. Free: sign in at sam.gov → Account Details → Public API Key. Stored encrypted."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}