{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders API — EU TED, UK, Canada, Australia & World Bank",
    "description": "One feed of new public tenders and contract awards from EU TED, UK Find a Tender and Contracts Finder, CanadaBuys, AusTender and World Bank, with buyer, CPV/UNSPSC, value, deadline, contact and links. Filter by country, CPV, keyword and value; get only new notices since your last run.",
    "version": "0.1",
    "x-build-id": "IWMVllhNpPvE03hjn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/griffie~public-tenders-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-griffie-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/griffie~public-tenders-monitor/runs": {
      "post": {
        "operationId": "runs-sync-griffie-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/griffie~public-tenders-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-griffie-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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official procurement portals to read. Leave empty for all six. TED covers the EU, EEA and Switzerland; AusTender publishes contract awards only; CanadaBuys covers currently open federal tenders.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk_fts",
                "uk_cf",
                "canadabuys",
                "austender",
                "worldbank"
              ],
              "enumTitles": [
                "EU TED (Tenders Electronic Daily)",
                "UK Find a Tender",
                "UK Contracts Finder",
                "CanadaBuys (Canada federal)",
                "AusTender (Australia, contract awards)",
                "World Bank procurement notices"
              ]
            }
          },
          "keywords": {
            "title": "Keywords (any of)",
            "type": "array",
            "description": "Keep notices whose title, description, buyer or category mentions any of these words or phrases (case-insensitive). On TED this runs TED's own full-text search, which also looks inside the original-language notice text. Leave empty for everything.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title contains any of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "ISO country codes (DE, FR, GB, CA, AU, IN…) or English names. Applies to the buyer's country, or the project country for World Bank. Sources that cannot match (e.g. CanadaBuys when you ask for DE) are skipped automatically.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (prefix match)",
            "type": "array",
            "description": "EU Common Procurement Vocabulary codes or prefixes, e.g. 72 (IT services), 48 (software), 45 (construction), 33 (medical equipment), 9091 (cleaning). Used by TED and both UK sources. CPV-only searches skip CanadaBuys, AusTender and World Bank; add UNSPSC codes to include Canada and Australia.",
            "items": {
              "type": "string"
            }
          },
          "unspscCodes": {
            "title": "UNSPSC codes (prefix match)",
            "type": "array",
            "description": "UNSPSC codes or prefixes used by CanadaBuys and AusTender, e.g. 43 (IT equipment), 8111 (computer services), 72 (building and construction services).",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "tender = open calls for bids (contract notices, invitations for bids, expressions of interest); planning = prior information / pipeline notices; award = who won and for how much; other = corrigenda and anything else.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "planning",
                "award",
                "other"
              ],
              "enumTitles": [
                "Tenders (open calls for bids)",
                "Planning / prior information",
                "Contract awards (winners)",
                "Other (corrigenda, etc.)"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "publishedWithinDays": {
            "title": "Published within the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only notices published in the last N days (today counts as day 1). Ignored when 'Published since' is set.",
            "default": 7
          },
          "publishedSince": {
            "title": "Published since (date)",
            "type": "string",
            "description": "Optional exact start date, YYYY-MM-DD. Overrides 'Published within the last N days'."
          },
          "publishedUntil": {
            "title": "Published until (date)",
            "type": "string",
            "description": "Optional end date, YYYY-MM-DD."
          },
          "openForBidsOnly": {
            "title": "Open for bids only",
            "type": "boolean",
            "description": "Drop notices whose submission deadline has already passed. Notices that publish no deadline are kept.",
            "default": false
          },
          "deadlineWithinDays": {
            "title": "Deadline within the next N days",
            "minimum": 1,
            "maximum": 730,
            "type": "integer",
            "description": "Only notices with a submission deadline between now and N days from now (notices without a deadline are dropped)."
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum estimated value (tenders) or award value (awards), in the currency below. Values in other currencies are converted with today's ECB reference rates."
          },
          "valueCurrency": {
            "title": "Currency for minimum value",
            "type": "string",
            "description": "Three-letter currency code for 'Minimum value', e.g. EUR, GBP, USD, CAD, AUD.",
            "default": "EUR"
          },
          "includeWithoutValue": {
            "title": "Keep notices without a published value",
            "type": "boolean",
            "description": "Many buyers don't publish an estimated value. When a minimum value is set, keep those notices (on) or drop them (off).",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new notices since last run",
            "type": "boolean",
            "description": "Monitor mode: remember every notice delivered and skip it on later runs with the same filters. Schedule the Actor daily to get a clean feed of new tenders only. Notices you've already received are not charged again.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (state key)",
            "type": "string",
            "description": "Optional name for the monitor memory, so several schedules with different filters stay separate or share one memory. Defaults to a hash of your filters."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum notices to save in total. Sources are interleaved newest-first so every source gets its share. 0 = no limit.",
            "default": 100
          },
          "maxResultsPerSource": {
            "title": "Max results per source",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional cap per source. 0 = only the total limit applies."
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Include the notice description (plain text).",
            "default": true
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 100,
            "maximum": 20000,
            "type": "integer",
            "description": "Longer descriptions are cut to this many characters.",
            "default": 2000
          },
          "tedLanguage": {
            "title": "TED language",
            "type": "string",
            "description": "Preferred language for TED titles and descriptions, as a 3-letter EU code (eng, deu, fra, spa, ita, pol…). TED provides English titles for every notice; descriptions fall back to the original language.",
            "default": "eng"
          },
          "maxPagesPerSource": {
            "title": "Max API pages per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety limit on how many result pages (about 100 notices each) are read from each source per run. UK Find a Tender publishes about 350 notices a day across all types, so a 14-day UK search reads about 50 pages.",
            "default": 100
          },
          "maxSecondsPerSource": {
            "title": "Max seconds per source",
            "minimum": 30,
            "maximum": 3000,
            "type": "integer",
            "description": "Time limit for reading each source. If a portal is slow or rate-limits, the Actor keeps what it has read so far, notes it in RUN_SUMMARY and moves on.",
            "default": 300
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Verbose logging.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}