{
  "openapi": "3.0.1",
  "info": {
    "title": "Australian Government Contracts Scraper — Awards & Expiry",
    "description": "Who won every Australian Government contract, for how much, and when it ends: every AusTender contract notice with supplier ABN, value, amendments and the current end date after extensions. Find contracts coming up for re-tender, track competitors by ABN, get alerts.",
    "version": "0.1",
    "x-build-id": "0leLS2aCYAsh232am"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/he_work~au-gov-contracts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-he_work-au-gov-contracts-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/he_work~au-gov-contracts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-he_work-au-gov-contracts-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/he_work~au-gov-contracts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-he_work-au-gov-contracts-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "expiring",
              "awarded",
              "contracts"
            ],
            "type": "string",
            "description": "Expiring: contracts whose current end date falls in the next N days (your re-tender pipeline). Awarded: contracts published in a date range. Look up: the CN numbers you list below.",
            "default": "expiring"
          },
          "expiringWithinDays": {
            "title": "Expiring within (days)",
            "minimum": 1,
            "maximum": 1095,
            "type": "integer",
            "description": "Expiring mode: contracts whose current end date is between the start date (today by default) and this many days later.",
            "default": 180
          },
          "expiringFrom": {
            "title": "Expiring from (date)",
            "type": "string",
            "description": "Expiring mode: start of the end-date window (default today). Use a past date to list contracts that recently ended."
          },
          "awardedInLastDays": {
            "title": "Awarded in the last (days)",
            "minimum": 1,
            "maximum": 731,
            "type": "integer",
            "description": "Awarded mode: contracts published in this many days up to today (or up to 'Awarded to').",
            "default": 7
          },
          "awardedFrom": {
            "title": "Awarded from (date)",
            "type": "string",
            "description": "Awarded mode: first publish date (overrides 'last N days')."
          },
          "awardedTo": {
            "title": "Awarded to (date)",
            "type": "string",
            "description": "Awarded mode: last publish date (default today)."
          },
          "contractIds": {
            "title": "Contract IDs",
            "type": "array",
            "description": "Look-up mode: AusTender contract notice IDs, e.g. CN4284526.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep contracts whose title, description, agency, supplier or category contains ANY of these words or phrases (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop contracts that contain any of these.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Keep contracts whose agency name contains any of these, e.g. 'Defence', 'Home Affairs'.",
            "items": {
              "type": "string"
            }
          },
          "suppliers": {
            "title": "Suppliers (name or ABN)",
            "type": "array",
            "description": "Keep contracts held by these suppliers: an 11-digit ABN matches exactly, anything else matches part of the name. Track a competitor's (or your own) contracts and when they end.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Keep contracts in these categories (the same labels as the Australian Government Tenders Scraper).",
            "items": {
              "type": "string",
              "enum": [
                "Catering & Hospitality",
                "Community & Social Services",
                "Construction",
                "Defence & Security",
                "Education & Training",
                "Energy & Utilities",
                "Engineering & Infrastructure",
                "Environment & Sustainability",
                "Facilities & Property",
                "Goods & Supplies",
                "Healthcare & Medical",
                "IT & Digital",
                "Manufacturing & Industrial",
                "Office Supplies & Equipment",
                "Professional Services",
                "Research & Science",
                "Transport & Logistics",
                "Travel & Accommodation",
                "Uncategorised"
              ]
            }
          },
          "unspscCodes": {
            "title": "UNSPSC codes",
            "type": "array",
            "description": "Keep contracts whose UNSPSC code starts with any of these, e.g. '8111' (computer services) or '72' (building and facility services).",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep contracts worth at least this much (current value, incl. GST)."
          },
          "maxValue": {
            "title": "Maximum value (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep contracts worth at most this much."
          },
          "procurementMethods": {
            "title": "Procurement method",
            "type": "array",
            "description": "Keep contracts awarded by these methods (open tender, limited tender, prequalified tender).",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "limited",
                "prequalified"
              ],
              "enumTitles": [
                "Open tender",
                "Limited / direct",
                "Prequalified / panel"
              ]
            }
          },
          "includeDetails": {
            "title": "Full history and supplier details",
            "type": "boolean",
            "description": "Read each matching contract's full history: amendments, original value and original end date, so contracts that were extended out of your window drop out instead of showing a stale end date. Recommended; turn off only for a quick look.",
            "default": true
          },
          "maxResults": {
            "title": "Max contracts",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many contracts (0 = no limit). Expiring: soonest first; awarded: newest first.",
            "default": 0
          },
          "useProxy": {
            "title": "Retry through Apify Proxy",
            "type": "boolean",
            "description": "When AusTender refuses a request three times, retry it through Apify Proxy.",
            "default": true
          },
          "watchListName": {
            "title": "Watch list name",
            "type": "string",
            "description": "Any name, e.g. 'defence-it-expiring'. Runs with the same name compare against each other: contracts get change_status new / changed (end date or value changed, e.g. extended) / unchanged."
          },
          "onlyNewItems": {
            "title": "Only new / changed items",
            "type": "boolean",
            "description": "With a watch list name: skip (and don't charge for) items that were already seen and haven't changed.",
            "default": false
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack incoming-webhook URL. Gets a digest of new / changed items after each run."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "From @BotFather. Use together with the chat ID."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Chat, group or channel ID that receives the digest (e.g. -1001234567890)."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Discord channel webhook URL. Gets the digest."
          },
          "googleSheetsWebAppUrl": {
            "title": "Google Sheets web app URL",
            "type": "string",
            "description": "Deploy the 10-line Apps Script from the README in your sheet and paste its web app URL: every new / changed item is appended as a row."
          },
          "notifyEmail": {
            "title": "Email digest to",
            "type": "string",
            "description": "Email address for the digest (sent with Apify's send-mail Actor)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}