{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Public Tender Search",
    "description": "Search UK public tenders from Contracts Finder and Find a Tender. Choose open tenders, award winners or contracts ending soon; filter notices and set a result limit.",
    "version": "1.2",
    "x-build-id": "R4TOox2dg0UXd2LdK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brotherly_elm~tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brotherly_elm-tender-radar",
        "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/brotherly_elm~tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-brotherly_elm-tender-radar",
        "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/brotherly_elm~tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-brotherly_elm-tender-radar",
        "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": {
          "selfTest": {
            "title": "Offline self-test",
            "type": "boolean",
            "description": "Return a fixed fixture dataset without contacting notice sources Format: boolean. allowed values: true or false. Example: false.",
            "default": false
          },
          "query": {
            "title": "Keyword and filter mapping",
            "type": "string",
            "description": "Optional keyword and filter mapping: recognised text maps to mode, keywords, CPV prefixes, deadline/value limits and source selection. Explicit fields take precedence Format: string. allowed values: any string. Example: \"\"."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "open",
              "winners",
              "ending-soon"
            ],
            "type": "string",
            "description": "Choose open tenders, reported award winners, or contracts ending soon Format: string. allowed values: open, winners, ending-soon. Example: \"open\".",
            "default": "open"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "UK sources to search Format: array. allowed values: array of string (contracts-finder, find-a-tender). Example: [\"contracts-finder\", \"find-a-tender\"].",
            "items": {
              "type": "string",
              "enum": [
                "contracts-finder",
                "find-a-tender"
              ],
              "enumTitles": [
                "Contracts Finder",
                "Find a Tender"
              ]
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional words or phrases matched against notice title, description, or CPV classification Format: array. allowed values: array of string. Example: [].",
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "CPV prefixes",
            "type": "array",
            "description": "Optional CPV classification prefixes Format: array. allowed values: array of string. Example: [].",
            "items": {
              "type": "string"
            }
          },
          "publishedSinceDays": {
            "title": "Published since days",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Publication look-back in days when sinceDays is not supplied; default 14 for open and 7 for winners. Recent publication windows are capped at 500 days Format: integer. allowed values: integer 1–500. Example: 14.",
            "default": 14
          },
          "sinceDays": {
            "title": "Published in the last days",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Optional publication-date window. When absent, the mode's existing look-back is used. Maximum 500 days Format: integer. allowed values: integer 1–500. Example: 1."
          },
          "maxDaysLeft": {
            "title": "Maximum days until deadline",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Open-mode deadline horizon in days Format: integer. allowed values: integer 0–3650. Example: 180.",
            "default": 50
          },
          "maxRequests": {
            "title": "Maximum source requests",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Run-wide source request ceiling; the implementation caps this at 400 Format: integer. allowed values: integer 1–400. Example: 400.",
            "default": 50
          },
          "maxPagesPerSource": {
            "title": "Maximum pages per source",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Page ceiling per UK source; the implementation caps this at 400. Scans follow safe next links until the feed ends or 500 qualifying, deduplicated output rows are reached. Lower ceilings can make coverage incomplete Format: integer. allowed values: integer 1–400. Example: 400.",
            "default": 50
          },
          "minValue": {
            "title": "Minimum reported value",
            "minimum": 0,
            "type": "number",
            "description": "Exclude notices with missing or lower reported value. Amounts are not currency-converted Format: number. allowed values: number 0–∞. Example: 1."
          },
          "maxItems": {
            "title": "Maximum output items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum output items; default 50, maximum 500 Format: integer. allowed values: integer 1–500. Example: 50.",
            "default": 50
          },
          "publishedBeforeDays": {
            "title": "Published before days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Exclude notices published more recently than this many days ago Format: integer. allowed values: integer 0–3650. Example: 0.",
            "default": 0
          },
          "contractEndsWithinDays": {
            "title": "Contracts end within days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "For contracts ending soon, include reported end dates within this many days Format: integer. allowed values: integer 0–3650. Example: 365.",
            "default": 365
          },
          "minContractDays": {
            "title": "Minimum contract duration in days",
            "minimum": 0,
            "type": "integer",
            "description": "For contracts ending soon, exclude awards with a reported start-to-end duration shorter than this many days; missing start dates are not excluded by this filter Format: integer. allowed values: integer 0–∞. Example: 0.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}