{
  "openapi": "3.0.1",
  "info": {
    "title": "AusTender Contract Awards Scraper (Australia)",
    "description": "Australian Government contract awards from AusTender as clean JSON: agency, supplier and ABN, value, dates, UNSPSC codes and procurement method, plus amendments. Filter by agency, supplier, keyword, code and value, monitor new awards, or get a supplier rollup. CC BY 3.0 AU, no contact data.",
    "version": "1.0",
    "x-build-id": "3WgwCjZOTW4n9u6Zh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/civitab~austender-contract-awards/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-civitab-austender-contract-awards",
        "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/civitab~austender-contract-awards/runs": {
      "post": {
        "operationId": "runs-sync-civitab-austender-contract-awards",
        "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/civitab~austender-contract-awards/run-sync": {
      "post": {
        "operationId": "run-sync-civitab-austender-contract-awards",
        "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": "Days back",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Window size in days ending today (or at Date to). Ignored when Date from is set.",
            "default": 3
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional start date, e.g. 2026-07-01 (UTC).",
            "default": ""
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional end date, inclusive (UTC). Empty = now.",
            "default": ""
          },
          "dateField": {
            "title": "Date field",
            "enum": [
              "contractPublished",
              "contractLastModified",
              "contractStart"
            ],
            "type": "string",
            "description": "Which contract date the window applies to.",
            "default": "contractPublished"
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Part of agency names, e.g. Defence, Home Affairs. Empty = all agencies.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "suppliers": {
            "title": "Suppliers",
            "type": "array",
            "description": "Part of supplier names, or exact ABNs. Empty = all suppliers.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Any word in the contract description or agency reference. Empty = no keyword filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "unspscPrefixes": {
            "title": "UNSPSC prefixes",
            "type": "array",
            "description": "UNSPSC code prefixes, e.g. 4321 (computers) or 8111 (IT services). Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Min value (AUD)",
            "type": "integer",
            "description": "Only contracts worth at least this much. Empty = no minimum.",
            "default": null
          },
          "maxValue": {
            "title": "Max value (AUD)",
            "type": "integer",
            "description": "Only contracts worth at most this much. Empty = no maximum.",
            "default": null
          },
          "procurementMethods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "open, limited or selective (prequalified). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "limited",
                "selective"
              ]
            },
            "default": []
          },
          "includeAmendments": {
            "title": "Include amendments",
            "type": "boolean",
            "description": "Also return contract amendment notices.",
            "default": true
          },
          "maxItems": {
            "title": "Max awards",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many awards. Each award is one billable event.",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new awards (monitor)",
            "type": "boolean",
            "description": "Skip awards delivered by earlier runs with the same filters. Use on a schedule.",
            "default": false
          },
          "rollupReport": {
            "title": "Supplier and agency rollup report",
            "type": "boolean",
            "description": "Also save top suppliers and agencies by value for this run in the ROLLUP record (one extra $0.05 event).",
            "default": false
          },
          "requestDelaySecs": {
            "title": "Request delay (seconds)",
            "minimum": 1,
            "maximum": 10,
            "type": "number",
            "description": "Politeness delay between API requests, 1-10 s.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}