{
  "openapi": "3.0.1",
  "info": {
    "title": "AusTender Scraper: Australian Government Contracts",
    "description": "Scrape AusTender contract notices for Australian government contracts: winning supplier, ABN, state, agency, value in AUD, UNSPSC category, description, contract dates and procurement method. Filter by agency, category, keyword, value or ABN, and get only new notices on a schedule.",
    "version": "1.0",
    "x-build-id": "VXKJWIvIS8MbWlgbD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agents001~australia-gov-contracts-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agents001-australia-gov-contracts-feed",
        "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/agents001~australia-gov-contracts-feed/runs": {
      "post": {
        "operationId": "runs-sync-agents001-australia-gov-contracts-feed",
        "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/agents001~australia-gov-contracts-feed/run-sync": {
      "post": {
        "operationId": "run-sync-agents001-australia-gov-contracts-feed",
        "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": {
          "daysBack": {
            "title": "Last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Window of days up to now. Used when no start or end date is given, and as the window length when only an end date is given.",
            "default": 7
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "First day of the window, read in Canberra time. Overrides 'Last N days'. Example: 2026-10-01."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Last day of the window, included, read in Canberra time. Leave empty for today."
          },
          "dateType": {
            "title": "Which date the window applies to",
            "enum": [
              "published",
              "contractStart",
              "contractEnd",
              "lastModified"
            ],
            "type": "string",
            "description": "Published date finds newly announced contracts (best for buying signals). Contract end date finds contracts about to expire, so a future window works too.",
            "default": "published"
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Only contracts from agencies whose name contains any of these words, or whose ABN matches. Examples: 'Defence', 'Services Australia', 'Taxation'. Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "unspscCodes": {
            "title": "UNSPSC category codes",
            "type": "array",
            "description": "Only contracts in these categories. Trailing zeros widen the match: 43000000 is all IT and telecoms, 8111 is all computer services, 81111500 is software engineering.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Only contracts whose description, supplier name, agency or agency reference contains any of these words or phrases. Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "minValueAud": {
            "title": "Minimum value (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only contracts worth at least this much, including GST. AusTender publishes contracts from AUD 10,000."
          },
          "supplierAbns": {
            "title": "Supplier ABNs",
            "type": "array",
            "description": "Only contracts won by these suppliers. 11-digit ABNs; spaces are ignored. Use this to watch competitors or accounts.",
            "items": {
              "type": "string"
            }
          },
          "supplierStates": {
            "title": "Supplier states",
            "type": "array",
            "description": "Only suppliers based in these states or territories: ACT, NSW, NT, QLD, SA, TAS, VIC, WA or 'Outside Australia'.",
            "items": {
              "type": "string"
            }
          },
          "includeAmendments": {
            "title": "Include amendments",
            "type": "boolean",
            "description": "Also return amendment notices (for example a contract extended or its value changed). They carry isAmendment true and the amended total value.",
            "default": true
          },
          "onlyNew": {
            "title": "Only notices not seen in previous runs",
            "type": "boolean",
            "description": "Remember which notices were already returned for these filters and only return new ones. The first run returns everything in the window. Ideal for a daily schedule with 'Last N days' set to 2 or 3.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many contract notices, newest first. 0 means no limit. You pay per record returned.",
            "default": 1000
          },
          "stateStoreName": {
            "title": "State store name",
            "pattern": "^[a-zA-Z0-9-]{1,63}$",
            "type": "string",
            "description": "Only used when 'Only notices not seen in previous runs' is on. Name of the key-value store in your account that remembers notices already returned. Each set of filters gets its own record inside it. Change it only to keep separate histories. If a run reports that it cannot open the store, enter a different name here.",
            "default": "agents001-australia-gov-contracts-feed-state"
          },
          "requestDelaySecs": {
            "title": "Delay between API requests",
            "minimum": 0.2,
            "maximum": 10,
            "type": "number",
            "description": "Minimum seconds between requests to the AusTender API. Keep this polite.",
            "default": 0.3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}