{
  "openapi": "3.0.1",
  "info": {
    "title": "Canada Public Tenders Scraper: Quebec SEAO, Toronto Bids",
    "description": "Canadian public tenders and awarded contracts in one search: Quebec SEAO (ministries, health, schools, municipalities), Toronto bids with buyer email and phone, Nova Scotia awards. Open calls, closing dates, winning supplier, NEQ, CAD amount. Export the data to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "1vB1Dnp5RLQ4WzmyC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~canada-public-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-canada-public-tenders-scraper",
        "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/steadyscrape~canada-public-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-canada-public-tenders-scraper",
        "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/steadyscrape~canada-public-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-canada-public-tenders-scraper",
        "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",
            "minItems": 1,
            "type": "array",
            "description": "The open-data sources to search, all at once. <b>Quebec – SEAO</b>: every Quebec ministry, health and education body and municipality (open calls, awards, contracts with the winner's NEQ, bids, amendments), read from the weekly OCDS files the Conseil du trésor publishes on Données Québec; <b>the newest weekly file covers up to last Sunday</b>. <b>Toronto</b>: the City's open solicitations (with the buyer's name, email and phone) and awarded contracts, refreshed daily. <b>Nova Scotia</b>: awarded public tenders of the province, municipalities, universities and agencies, with vendor and amount, updated monthly.",
            "items": {
              "type": "string",
              "enum": [
                "quebec-seao",
                "toronto",
                "nova-scotia"
              ],
              "enumTitles": [
                "Quebec – SEAO (provincial bodies and municipalities)",
                "Ontario – City of Toronto (Toronto Bids)",
                "Nova Scotia – awarded public tenders"
              ]
            },
            "default": [
              "quebec-seao",
              "toronto",
              "nova-scotia"
            ]
          },
          "postedWithinDays": {
            "title": "Active in the last N days",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Keeps tenders published, amended or awarded from this many days ago up to today (Eastern time). An open call published earlier and not amended since is outside the window: raise N to reach it (half of SEAO's calls stay open 31 days or more). Ignored when the dates below are set.",
            "default": 30
          },
          "postedFrom": {
            "title": "Active from (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "The first day, YYYY-MM-DD. A window spans at most 366 days. SEAO's weekly files start on 2021-04-01, Nova Scotia's awards in 2010-04, Toronto's in 2008."
          },
          "postedTo": {
            "title": "Active to (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "The last day, YYYY-MM-DD. Leave empty for today."
          },
          "stages": {
            "title": "Stages",
            "minItems": 1,
            "type": "array",
            "description": "<b>Open</b>: calls whose closing date is still ahead. <b>Awarded</b>: a winning supplier is named (in SEAO this includes direct contracts, \"contrats de gré à gré\"). <b>Closed</b>: past the closing date with no winner published yet. <b>Cancelled</b>. Every row says its stage in <code>stage</code>.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "closed",
                "awarded",
                "cancelled"
              ],
              "enumTitles": [
                "Open for bids (closing date still ahead)",
                "Closed, no winner published",
                "Awarded (winning supplier named)",
                "Cancelled"
              ]
            },
            "default": [
              "open",
              "closed",
              "awarded",
              "cancelled"
            ]
          },
          "keywords": {
            "title": "Keywords (optional)",
            "type": "array",
            "description": "Keeps tenders whose title, description, buyer, category or commodity has a word starting with any of these, case and accents aside. <b>Quebec's notices are in French</b>: search \"déneigement\" or \"deneig\" for snow removal.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories (optional)",
            "type": "array",
            "description": "Keeps tenders of any of these categories. Toronto's \"Goods and Services\" counts as both.",
            "items": {
              "type": "string",
              "enum": [
                "goods",
                "services",
                "construction"
              ],
              "enumTitles": [
                "Goods (supplies, equipment)",
                "Services (professional and technical)",
                "Construction (works)"
              ]
            },
            "default": []
          },
          "buyers": {
            "title": "Buyers (optional)",
            "type": "array",
            "description": "Keeps tenders whose buyer name (or Toronto division) has words starting with any of these: \"Ville de Montréal\", \"Hydro-Québec\", \"Halifax\", \"Transportation Services\".",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value in CAD (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keeps tenders whose awarded or contract amount reaches it, or, before an award, whose SEAO value bracket starts at it or above. 0 for no minimum.",
            "default": 0
          },
          "maxResultsPerSource": {
            "title": "Maximum tenders per source",
            "minimum": 0,
            "type": "integer",
            "description": "Each source stops after this many, newest first. 0 for no limit.",
            "default": 100
          },
          "maxResults": {
            "title": "Maximum tenders in total",
            "minimum": 0,
            "type": "integer",
            "description": "The run stops after this many across all sources. 0 for no limit.",
            "default": 300
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}