{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders Monitor: SAM.gov, CanadaBuys & TED",
    "description": "Monitor government tenders and contract opportunities from SAM.gov (US), CanadaBuys (Canada) and TED (EU) in one feed. Filter by keyword, NAICS, UNSPSC or CPV code and country; scheduled runs return only new and amended notices.",
    "version": "0.1",
    "x-build-id": "Q5vc2iiNdG4CJc8hC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steady-scrape~public-tenders-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steady-scrape-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/steady-scrape~public-tenders-monitor/runs": {
      "post": {
        "operationId": "runs-sync-steady-scrape-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/steady-scrape~public-tenders-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-steady-scrape-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases to look for in the notice title and description (any of them matches, case-insensitive), e.g. 'cybersecurity', 'cloud hosting', 'janitorial'. Combine with codes to narrow further. SEAO (Québec) notices are in French: add French words too (e.g. 'logiciel', 'toiture', 'déneigement'); accents are optional for SEAO.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title or description contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (SAM.gov)",
            "type": "array",
            "description": "2-6 digit NAICS codes or prefixes for SAM.gov notices, e.g. 541511 or 5415. With keywords too, a notice must match both.",
            "items": {
              "type": "string"
            }
          },
          "unspscCodes": {
            "title": "UNSPSC codes (CanadaBuys, SEAO)",
            "type": "array",
            "description": "2-8 digit UNSPSC codes or prefixes for CanadaBuys and SEAO (Québec) notices, e.g. 43230000 or 4323. With keywords too, a notice must match both.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (TED)",
            "type": "array",
            "description": "2-8 digit CPV codes or prefixes for TED (EU) notices, e.g. 72000000 (IT services) or 722. With keywords too, a notice must match both.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official sources to check. Default: all six. If you give codes but no keywords, sources without codes of their own system are skipped.",
            "items": {
              "type": "string",
              "enum": [
                "sam",
                "canadabuys",
                "ted",
                "seao",
                "toronto",
                "yukon"
              ],
              "enumTitles": [
                "SAM.gov (US federal)",
                "CanadaBuys (Canada federal)",
                "TED (EU and EEA)",
                "SEAO (Québec: provincial, municipal, school and health bodies; French)",
                "City of Toronto (open solicitations)",
                "Government of Yukon (open tenders)"
              ]
            },
            "default": [
              "sam",
              "canadabuys",
              "ted",
              "seao",
              "toronto",
              "yukon"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Optional 2-letter ISO codes. US = SAM.gov, CA = CanadaBuys + SEAO (Québec) + Toronto + Yukon, European codes (DE, FR, ES, IT, PL...) filter TED by buyer country. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted or amended in the last N days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Posting window, 1-30 days. For a daily schedule in monitor mode, 3 days is a safe overlap.",
            "default": 7
          },
          "includeAwards": {
            "title": "Include award notices",
            "type": "boolean",
            "description": "Also return award, justification and contract-modification notices. Off = only open solicitations and pre-solicitation notices.",
            "default": false
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "Monitor mode remembers what it returned (per Monitor ID) and returns only new notices and notices whose title, deadline, description, type, value or version changed.",
            "default": "search"
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name for this watch list (letters, digits, dashes). Use a different ID for each saved search you schedule.",
            "default": "default"
          },
          "firstRunEmitsAll": {
            "title": "First monitor run returns all current matches",
            "type": "boolean",
            "description": "On: the first run of a new Monitor ID returns every match as 'new'. Off: it silently saves them as the baseline (free) and later runs return only changes.",
            "default": true
          },
          "maxResults": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum notices returned per run (newest first). You pay only for notices returned.",
            "default": 200
          },
          "includeDescription": {
            "title": "Include description text",
            "type": "boolean",
            "description": "Notice description (plain text, up to 4,000 characters). Turn off for a lighter dataset.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}