{
  "openapi": "3.0.1",
  "info": {
    "title": "Queensland Forward Procurement Pipeline Monitor",
    "description": "Find planned Queensland Government purchases before tenders are released, filter the official forward pipeline, and monitor additions, changes, and removals.",
    "version": "0.2",
    "x-build-id": "VYdcgNchNhEzL5qHf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fixmyerrorcode~queensland-forward-procurement-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fixmyerrorcode-queensland-forward-procurement-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/fixmyerrorcode~queensland-forward-procurement-monitor/runs": {
      "post": {
        "operationId": "runs-sync-fixmyerrorcode-queensland-forward-procurement-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/fixmyerrorcode~queensland-forward-procurement-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-fixmyerrorcode-queensland-forward-procurement-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",
        "required": [
          "maxItems"
        ],
        "properties": {
          "customerGoal": {
            "title": "Customer goal",
            "enum": [
              "search",
              "monitor",
              "market_summary"
            ],
            "type": "string",
            "description": "Choose the customer outcome. Existing API clients can continue sending the hidden legacy mode field.",
            "default": "search"
          },
          "mode": {
            "title": "Legacy API mode",
            "type": "string",
            "description": "Hidden API compatibility field. Ordinary customers should use Customer goal."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Return records containing any keyword in the program, agency, category, region, or procurement method.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Case-insensitive agency-name filters. Use source wording such as Queensland Health; matching is not case-sensitive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryGroups": {
            "title": "Category groups",
            "type": "array",
            "description": "Filter broad spend groups such as Information and communication technology.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Case-insensitive source-category filters. Start with a keyword if you do not know the exact source vocabulary.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Case-insensitive Queensland SA4 or agency-region filters, such as Cairns or Multiple.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "procurementMethods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "Filter values such as Open tender or Open offer method.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fundingStatuses": {
            "title": "Funding statuses",
            "type": "array",
            "description": "Filter values published by the source, such as Funded.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minSpendAud": {
            "title": "Minimum spend (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep records whose published spend range may reach at least this amount."
          },
          "maxSpendAud": {
            "title": "Maximum spend (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep records whose published spend range may include an amount at or below this value."
          },
          "releaseFrom": {
            "title": "Planned release from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD lower bound applied to parsed planned-release windows."
          },
          "releaseTo": {
            "title": "Planned release to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD upper bound applied to parsed planned-release windows."
          },
          "includePast": {
            "title": "Include past planned windows",
            "type": "boolean",
            "description": "Include records whose published planned-release window has already ended.",
            "default": false
          },
          "brisbane2032Only": {
            "title": "Brisbane 2032 only",
            "type": "boolean",
            "description": "Return only records carrying the official source's published Brisbane 2032 related classification.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum dataset items. Billing stops with this limit or the run's maximum charge, whichever comes first.",
            "default": 25
          },
          "previousDatasetId": {
            "title": "Legacy previous dataset ID",
            "pattern": "^[A-Za-z0-9_-]+$",
            "minLength": 1,
            "maxLength": 128,
            "type": "string",
            "description": "Hidden API-compatible override for older workflows. Automatic customer-scoped monitoring is recommended."
          },
          "monitoringStateKey": {
            "title": "Monitoring state name",
            "pattern": "^[A-Za-z0-9_-]+$",
            "minLength": 1,
            "maxLength": 48,
            "type": "string",
            "description": "Optional name used to keep separate automatic baselines for the same filters.",
            "default": "default"
          },
          "includeUnchanged": {
            "title": "Include unchanged records",
            "type": "boolean",
            "description": "In monitor mode, also output and charge for records that have not changed. Leave off for low-cost scheduled monitoring.",
            "default": false
          },
          "maxRequestRetries": {
            "title": "Maximum API retries",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Hidden API-compatible reliability control. Conservative defaults protect the official source.",
            "default": 3
          },
          "requestDelayMillis": {
            "title": "Request delay (milliseconds)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Hidden API-compatible delay between official-source requests.",
            "default": 250
          },
          "debugMode": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Hidden API-compatible diagnostic control; never logs source contact-email values.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}