{
  "openapi": "3.0.1",
  "info": {
    "title": "Canada Government IT Tender Monitor",
    "description": "Find and normalize CanadaBuys federal IT tender notices for software, cloud, cybersecurity, data, AI, SaaS, and managed digital services. Includes fit scoring, explanations, deduplication, and company-fit filters.",
    "version": "0.0",
    "x-build-id": "gEAqf0eojIJQxklsV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tenderpilot-data~canada-it-tender-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tenderpilot-data-canada-it-tender-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/tenderpilot-data~canada-it-tender-monitor/runs": {
      "post": {
        "operationId": "runs-sync-tenderpilot-data-canada-it-tender-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/tenderpilot-data~canada-it-tender-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-tenderpilot-data-canada-it-tender-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": {
          "source": {
            "title": "CanadaBuys source file",
            "enum": [
              "open",
              "new",
              "complete"
            ],
            "type": "string",
            "description": "Which CanadaBuys tender notice CSV to process.",
            "default": "open"
          },
          "status": {
            "title": "Tender status",
            "enum": [
              "open",
              "expired",
              "cancelled",
              "all"
            ],
            "type": "string",
            "description": "Filter by normalized tender status. Use all when processing the complete source.",
            "default": "open"
          },
          "keywordsInclude": {
            "title": "Include keywords",
            "type": "array",
            "description": "IT-related keywords used for matching. Leave empty to use the default IT keyword set.",
            "items": {
              "type": "string"
            }
          },
          "keywordsExclude": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Keywords that indicate non-IT opportunities. Leave empty to use defaults.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Published date from",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional lower bound for publication date, YYYY-MM-DD."
          },
          "dateTo": {
            "title": "Published date to",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional upper bound for publication date, YYYY-MM-DD."
          },
          "provinces": {
            "title": "Buyer provinces",
            "type": "array",
            "description": "Optional exact buyer province filters, for example Ontario or Quebec.",
            "items": {
              "type": "string"
            }
          },
          "minScore": {
            "title": "Minimum fit score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum IT-fit score from 0 to 100. Default 50 keeps the public listing cleaner; use 40 for broader recall.",
            "default": 50
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of normalized tender notices to output.",
            "default": 100
          },
          "dropExcluded": {
            "title": "Drop excluded matches",
            "type": "boolean",
            "description": "Drop notices that match any exclude keyword.",
            "default": true
          },
          "closingDateFrom": {
            "title": "Closing date from",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional lower bound for tender closing date, YYYY-MM-DD."
          },
          "closingDateTo": {
            "title": "Closing date to",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional upper bound for tender closing date, YYYY-MM-DD."
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "fitScore",
              "closingDate",
              "publishedDate",
              "companyFitScore"
            ],
            "type": "string",
            "description": "Sort matching tenders before applying maxItems.",
            "default": "fitScore"
          },
          "includePastClosingDates": {
            "title": "Include past closing dates",
            "type": "boolean",
            "description": "By default, the Actor skips notices whose closing date is earlier than today, even if the source status still says Open. Enable this for historical analysis.",
            "default": false
          },
          "strictMode": {
            "title": "Strict mode",
            "type": "boolean",
            "description": "Require stronger IT evidence in the title or classification fields. Reduces generic consulting/supply/audit matches.",
            "default": false
          },
          "dedupeMode": {
            "title": "Deduplication mode",
            "enum": [
              "latestBySolicitationNumber",
              "latestBySourceNoticeId",
              "none"
            ],
            "type": "string",
            "description": "Controls duplicate/amendment handling. Use latestBySolicitationNumber for a cleaner default feed.",
            "default": "latestBySolicitationNumber"
          },
          "focusArea": {
            "title": "Focus area",
            "enum": [
              "all",
              "cybersecurity",
              "cloudSaas",
              "dataAi",
              "softwareLicensing",
              "professionalServices",
              "tbipsSbips"
            ],
            "type": "string",
            "description": "Optional buyer preset. Keeps only tenders matching a specific IT opportunity type.",
            "default": "all"
          },
          "companyFitMode": {
            "title": "Company fit mode",
            "enum": [
              "off",
              "score",
              "filter"
            ],
            "type": "string",
            "description": "Optional company-fit matching. Use score to add company-fit fields, or filter to keep only records matching your company keywords.",
            "default": "off"
          },
          "companyProfileKeywords": {
            "title": "Company profile keywords",
            "type": "array",
            "description": "Optional keywords describing your company offer, such as cloud migration, SOC, penetration testing, Oracle, Salesforce, data warehouse, or Microsoft 365.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxRowsScanned": {
            "title": "Maximum source rows scanned",
            "minimum": 0,
            "type": "integer",
            "description": "Safety limit for very large sources. 0 means unlimited except complete source, where default safety limit is 20000 rows.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}