{
  "openapi": "3.0.1",
  "info": {
    "title": "Government Contracts & Tenders - UK, EU & US - $2/1k",
    "description": "Find active public tenders from official UK Contracts Finder, EU TED, and optional SAM.gov sources. Export buyers, deadlines, values, fit scores, and official URLs. No API key is needed for UK or EU searches.",
    "version": "1.0",
    "x-build-id": "OwsU1u6vhnltwxS1b"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fascinating_lentil~global-government-contracts-aggregator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fascinating_lentil-global-government-contracts-aggregator",
        "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/fascinating_lentil~global-government-contracts-aggregator/runs": {
      "post": {
        "operationId": "runs-sync-fascinating_lentil-global-government-contracts-aggregator",
        "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/fascinating_lentil~global-government-contracts-aggregator/run-sync": {
      "post": {
        "operationId": "run-sync-fascinating_lentil-global-government-contracts-aggregator",
        "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": [
          "sources",
          "maxResults"
        ],
        "properties": {
          "sources": {
            "title": "Sources",
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "type": "array",
            "description": "Official procurement sources to search. Use UK Contracts Finder and EU TED for no-key public tender discovery. Select SAM.gov only when you provide a SAM.gov API key.",
            "items": {
              "type": "string",
              "enum": [
                "uk_contracts_finder",
                "ted",
                "sam_gov"
              ],
              "enumTitles": [
                "UK Contracts Finder",
                "EU TED",
                "SAM.gov"
              ]
            },
            "default": [
              "uk_contracts_finder",
              "ted"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 10,
            "type": "array",
            "description": "Search terms for opportunity matching, such as software, roofing, security, construction, facilities, or cybersecurity. Leave empty to return recent tenders from selected sources.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": [
              "software"
            ]
          },
          "dateFrom": {
            "title": "Published from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Publication start date in YYYY-MM-DD. Defaults to 30 days ago. A single run can cover at most 366 days."
          },
          "dateTo": {
            "title": "Published to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Publication end date in YYYY-MM-DD. Defaults to today and must be on or after Published from."
          },
          "country": {
            "title": "Country filter",
            "maxLength": 100,
            "type": "string",
            "description": "Optional country, region, or state filter. For SAM.gov use a US state code like CA or NY. For UK/TED, this matches the normalized buyer country or region."
          },
          "noticeStatus": {
            "title": "Notice status",
            "enum": [
              "active",
              "all"
            ],
            "type": "string",
            "description": "Which opportunity status to target where supported. Use Active / open for actionable alerts and All available for research/backfills.",
            "default": "active"
          },
          "decisionProfile": {
            "title": "Bid / opportunity profile",
            "type": "object",
            "description": "Optional deterministic bid/no-bid triage preferences. These settings score saved opportunities but do not change official source data or invent missing facts.",
            "properties": {
              "preferredKeywords": {
                "title": "Preferred keywords",
                "type": "array",
                "description": "Terms that increase fit, such as cloud, cybersecurity, software, or managed services. Falls back to the main Keywords field when empty.",
                "editor": "stringList",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                }
              },
              "preferredRegions": {
                "title": "Preferred regions",
                "type": "array",
                "description": "Countries, regions, or cities that increase fit, such as United Kingdom, London, Germany, or California.",
                "editor": "stringList",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                }
              },
              "preferredCategories": {
                "title": "Preferred categories / codes",
                "type": "array",
                "description": "Category words or CPV/NAICS/PSC code fragments that increase fit, such as IT services or 72000000.",
                "editor": "stringList",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                }
              },
              "excludedKeywords": {
                "title": "Excluded keywords",
                "type": "array",
                "description": "Terms that force a skip recommendation when found in the published opportunity text.",
                "editor": "stringList",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                }
              },
              "minimumContractValue": {
                "title": "Minimum contract value",
                "type": "number",
                "description": "Optional minimum published value. Set Minimum value currency too; no exchange-rate conversion is performed.",
                "editor": "number",
                "minimum": 0
              },
              "minimumValueCurrency": {
                "title": "Minimum value currency",
                "type": "string",
                "description": "Currency for the minimum value comparison, such as GBP, EUR, or USD. Records in another currency are flagged rather than compared.",
                "editor": "textfield",
                "maxLength": 3,
                "pattern": "^[A-Za-z]{3}$"
              },
              "minimumDaysToDeadline": {
                "title": "Minimum days to deadline",
                "type": "integer",
                "description": "Opportunities with fewer remaining days receive a warning and score penalty. Defaults to 7 days.",
                "editor": "number",
                "default": 7,
                "minimum": 0,
                "maximum": 365
              }
            },
            "additionalProperties": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum total records saved across all selected sources and keywords. For AI agents and quick validation, use a small limit such as 1-10.",
            "default": 10
          },
          "samApiKey": {
            "title": "SAM.gov API key",
            "type": "string",
            "description": "Optional SAM.gov public API key. Required only when SAM.gov is selected."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Compatibility setting for older saved tasks. Official API calls are direct; leave Apify Proxy disabled. Enabled proxy routing is rejected.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}