{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Contract Expiry Radar",
    "description": "Find published public contract end dates for bid planning and public-sector sales. Search 21 source markets across 18 countries. Filter by buyer, industry, and expiry, and export CSV, Excel, or JSON with official source links.",
    "version": "0.4",
    "x-build-id": "GwjZamaLf6FV1K1Xt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/viridian_soursop~find-a-tender-expiry-ledger/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-viridian_soursop-find-a-tender-expiry-ledger",
        "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/viridian_soursop~find-a-tender-expiry-ledger/runs": {
      "post": {
        "operationId": "runs-sync-viridian_soursop-find-a-tender-expiry-ledger",
        "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/viridian_soursop~find-a-tender-expiry-ledger/run-sync": {
      "post": {
        "operationId": "run-sync-viridian_soursop-find-a-tender-expiry-ledger",
        "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": {
          "regions": {
            "title": "Countries and regions",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Select one or more verified markets.",
            "items": {
              "type": "string",
              "enum": [
                "GB",
                "AU",
                "CO",
                "US",
                "SK",
                "CA",
                "BR",
                "UA",
                "ES",
                "PL",
                "DO",
                "LV",
                "ZA",
                "PY",
                "TH",
                "CL",
                "BG",
                "CA-FED",
                "NG",
                "GB-ROCH",
                "CA-BUYS"
              ],
              "enumTitles": [
                "United Kingdom",
                "Australia",
                "Colombia",
                "United States",
                "Slovakia — Central Register of Contracts",
                "Canada — Québec SEAO only",
                "Brazil — PNCP",
                "Ukraine — Prozorro",
                "Spain — Catalonia contract extensions only",
                "Poland — BZP signed single-contract notices",
                "Dominican Republic — published active DGCP contracts",
                "Latvia — signed contracts in IUB result notices",
                "South Africa — published Treasury monthly archives",
                "Paraguay — DNCP 2026 contract export",
                "Thailand — Bangkok Metropolitan Administration only",
                "Chile — ChileCompra published active contracts",
                "Bulgaria — PPA published signed contracts",
                "Canada — federal services and construction disclosures",
                "Nigeria — Osun State electronic awards only",
                "United Kingdom — Rochdale local contract register",
                "Canada — CanadaBuys PWGSC awarded contract history"
              ]
            }
          },
          "sector": {
            "title": "Industry",
            "enum": [
              "ALL",
              "IT",
              "TRANSPORT",
              "CONSTRUCTION",
              "HEALTH",
              "SECURITY",
              "CLEANING",
              "ENERGY",
              "CONSULTING",
              "EDUCATION",
              "TELECOM"
            ],
            "type": "string",
            "description": "Filter contracts by industry.",
            "default": "ALL"
          },
          "expiryWithinMonths": {
            "title": "Contract expiration window",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Find contracts expiring within this many calendar months.",
            "default": 6
          },
          "minContractValue": {
            "title": "Minimum contract value",
            "minimum": 0,
            "type": "number",
            "description": "Set to zero to disable the value filter.",
            "default": 0
          },
          "currency": {
            "title": "Contract currency",
            "enum": [
              "ANY",
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "TRY",
              "JPY",
              "CHF",
              "NOK",
              "SEK",
              "COP",
              "BRL",
              "UAH",
              "PLN",
              "DOP",
              "ZAR",
              "PYG",
              "THB",
              "CLP",
              "BGN",
              "NGN"
            ],
            "type": "string",
            "description": "Select a currency when filtering by contract value. No implicit currency conversion.",
            "default": "ANY"
          },
          "keyword": {
            "title": "Keyword or product name",
            "maxLength": 200,
            "type": "string",
            "description": "Optional keyword, such as Microsoft, cloud, motorcycles or security."
          },
          "buyerName": {
            "title": "Buyer or organization",
            "type": "string",
            "description": "Optional public organization name."
          },
          "historyYears": {
            "title": "Historical search period",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Look back from the reference date using source-specific notice history. Explicit dates override this setting.",
            "default": 5
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of matching contract records to return.",
            "default": 100
          },
          "maxNotices": {
            "title": "Maximum notices scanned",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Total scan limit across selected sources. Report incomplete coverage and continuation.",
            "default": 300
          },
          "asOf": {
            "title": "Expiry reference date",
            "type": "string",
            "description": "Optional YYYY-MM-DD. Defaults to UTC today."
          },
          "updatedFrom": {
            "title": "History start",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD."
          },
          "updatedTo": {
            "title": "History end",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD."
          },
          "cursor": {
            "title": "Legacy UK cursor",
            "type": "string",
            "description": "Only for a UK pilot continuation."
          },
          "maxPages": {
            "title": "Page requests per source",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional. Overrides the standard setting when supplied."
          },
          "horizonDays": {
            "title": "Custom day horizon",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional. Overrides the standard setting when supplied."
          },
          "verifySample": {
            "title": "Official record checks per country",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Optional. Overrides the standard setting when supplied."
          },
          "continuation": {
            "title": "Continuation state",
            "type": "object",
            "description": "Use nextInput from SUMMARY to resume the same bounded search."
          },
          "changesOnly": {
            "title": "Deliver only new or changed records",
            "type": "boolean",
            "description": "Use a persistent ledger for repeat searches. Disable for independent snapshots.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}