{
  "openapi": "3.0.1",
  "info": {
    "title": "GeBIZ Singapore Government Tender Awards & Supplier Analytics",
    "description": "Search Singapore government tender awards (GeBIZ, via official data.gov.sg open data) by keyword, agency, supplier, date and amount. Clean, de-duplicated records plus agency/supplier spend rankings.",
    "version": "0.1",
    "x-build-id": "aPJdoly1H2zaZOXmS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhucl1006~gebiz-singapore-tender-awards/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhucl1006-gebiz-singapore-tender-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/zhucl1006~gebiz-singapore-tender-awards/runs": {
      "post": {
        "operationId": "runs-sync-zhucl1006-gebiz-singapore-tender-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/zhucl1006~gebiz-singapore-tender-awards/run-sync": {
      "post": {
        "operationId": "run-sync-zhucl1006-gebiz-singapore-tender-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases to find in the tender description or tender number (case-insensitive substring match). Leave empty to return all awards.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword matching",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Return awards matching ANY of the keywords, or only those matching ALL of them.",
            "default": "any"
          },
          "agencies": {
            "title": "Procuring agencies",
            "type": "array",
            "description": "Filter by government agency name (partial, case-insensitive), e.g. 'Land Transport Authority', 'Ministry of Education', 'Housing'.",
            "items": {
              "type": "string"
            }
          },
          "suppliers": {
            "title": "Supplier names",
            "type": "array",
            "description": "Filter by awarded supplier name (partial, case-insensitive), e.g. 'NCS', 'KPMG'.",
            "items": {
              "type": "string"
            }
          },
          "tenderNumbers": {
            "title": "Tender numbers",
            "type": "array",
            "description": "Optional exact GeBIZ tender numbers, e.g. 'BCA000ETT22000021'.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Awarded on or after",
            "type": "string",
            "description": "Earliest award date (YYYY-MM-DD)."
          },
          "dateTo": {
            "title": "Awarded on or before",
            "type": "string",
            "description": "Latest award date (YYYY-MM-DD)."
          },
          "minAmount": {
            "title": "Minimum awarded amount (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only awards with an awarded amount at or above this value."
          },
          "maxAmount": {
            "title": "Maximum awarded amount (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only awards with an awarded amount at or below this value."
          },
          "includeNoAward": {
            "title": "Include tenders awarded to no supplier",
            "type": "boolean",
            "description": "Also return tenders closed with status 'Awarded to No Suppliers' (no supplier, no amount).",
            "default": false
          },
          "maxItems": {
            "title": "Maximum award records",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of award records to output (0 = no limit). Summary rows are not counted.",
            "default": 1000
          },
          "sortBy": {
            "title": "Sort award records by",
            "enum": [
              "awardDateDesc",
              "awardDateAsc",
              "amountDesc",
              "amountAsc"
            ],
            "type": "string",
            "description": "Order of award records in the output.",
            "default": "awardDateDesc"
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "records",
              "summary",
              "both"
            ],
            "type": "string",
            "description": "Award records, an aggregated spend ranking, or both.",
            "default": "records"
          },
          "summaryBy": {
            "title": "Summarise by",
            "enum": [
              "supplier",
              "agency",
              "agencySupplier",
              "fiscalYear",
              "agencyFiscalYear",
              "supplierFiscalYear"
            ],
            "type": "string",
            "description": "Grouping used for the spend summary: total awarded SGD, award count, distinct tenders, average/median/max award, share of total, first/last award date and top counterparties.",
            "default": "supplier"
          },
          "summaryTopN": {
            "title": "Summary rows (top N)",
            "minimum": 0,
            "type": "integer",
            "description": "How many summary rows to output, ranked by total awarded amount (0 = all).",
            "default": 50
          },
          "dataSource": {
            "title": "Data access method",
            "enum": [
              "auto",
              "bulkDownload",
              "datastoreApi"
            ],
            "type": "string",
            "description": "How to read the official data.gov.sg dataset. 'Auto' uses the fast bulk CSV download and falls back to the paginated datastore API. Note: live GeBIZ opportunities are not collected because the GeBIZ website terms prohibit republishing its content.",
            "default": "auto"
          },
          "dataGovApiKey": {
            "title": "data.gov.sg API key (optional)",
            "type": "string",
            "description": "Optional. Your own free data.gov.sg API key for higher rate limits. Not required."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}