{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders - UK, US, Australia, Brazil, Ukraine Contracts",
    "description": "Government tenders and contract awards from official open-data APIs: UK Find a Tender and Contracts Finder, Australia AusTender, Brazil PNCP, Ukraine Prozorro, US USAspending (and SAM.gov with your key). Buyer, values, winners, deadlines, CPV/NAICS. $1.20 per 1,000 notices.",
    "version": "0.1",
    "x-build-id": "yNVvwtmgdtLs2u8kr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actor-forge~public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actor-forge-public-tenders",
        "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/actor-forge~public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-actor-forge-public-tenders",
        "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/actor-forge~public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-actor-forge-public-tenders",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "UK Find a Tender (above-threshold tenders and awards), UK Contracts Finder (lower-value UK notices and awards), AusTender (Australian Government contract notices), Brazil PNCP (all public purchases under Lei 14.133), Ukraine Prozorro (tenders and awards), USAspending (US federal contract awards) and SAM.gov (US federal opportunities; needs your free API key, skipped without one).",
            "items": {
              "type": "string",
              "enum": [
                "uk-find-a-tender",
                "uk-contracts-finder",
                "australia-austender",
                "brazil-pncp",
                "ukraine-prozorro",
                "us-usaspending",
                "us-sam"
              ],
              "enumTitles": [
                "UK Find a Tender",
                "UK Contracts Finder",
                "Australia AusTender (contract notices)",
                "Brazil PNCP",
                "Ukraine Prozorro",
                "US USAspending (federal awards)",
                "US SAM.gov opportunities (API key)"
              ]
            },
            "default": [
              "uk-find-a-tender",
              "uk-contracts-finder",
              "australia-austender",
              "brazil-pncp",
              "ukraine-prozorro",
              "us-usaspending",
              "us-sam"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Only notices whose title or description contains one of these words or phrases (whole words, case- and accent-insensitive), e.g. \"software\", \"cleaning\", \"cybersecurity\". Use the notice's language for Brazil (\"limpeza\") and Ukraine (\"програмне\"). Leave empty for all notices.",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication date: YYYY-MM-DD or relative ('7 days', '2 weeks', '1 month', 'yesterday', 'today'). The window is at most 366 days.",
            "default": "7 days"
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Last publication date (inclusive): YYYY-MM-DD or relative. Empty = today."
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Tender = open opportunities you can bid on; Award = who won and for how much; Contract = signed contracts (AusTender, UK); Planning = prior information and market engagement. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "award",
                "contract",
                "planning",
                "other"
              ],
              "enumTitles": [
                "Tender (open opportunity)",
                "Award",
                "Contract",
                "Planning / prior information",
                "Other"
              ]
            }
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices with an estimated or awarded value of at least this amount, in the notice's own currency (GBP, AUD, BRL, UAH, USD). Notices without a value are excluded when this is set."
          },
          "buyerName": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Only notices from buyers whose name contains this text, e.g. 'NHS', 'Department of Defence', 'Prefeitura'."
          },
          "brazilModalities": {
            "title": "Brazil PNCP modalities",
            "type": "array",
            "description": "PNCP modalidade codes to read (the API needs one per request): 6 = Pregão eletrônico, 4 = Concorrência eletrônica, 8 = Dispensa, 9 = Inexigibilidade, 1 = Leilão eletrônico, 3 = Concurso, 12 = Credenciamento (1-13).",
            "default": [
              6,
              4,
              8
            ]
          },
          "samApiKey": {
            "title": "SAM.gov API key (optional)",
            "type": "string",
            "description": "Your free public API key from SAM.gov (Account Details > API Key). Needed only for the us-sam source; without it SAM.gov is skipped with a note and the run continues. Personal keys allow a limited number of requests per day."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (monitor mode)",
            "type": "boolean",
            "description": "For scheduled runs: skip notices already delivered by an earlier run with the same sources and filters, so each run returns (and charges for) only new ones. Hashed IDs are kept in the key-value store 'public-tenders-monitor' in your account.",
            "default": false
          },
          "maxResults": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many notices in total, split evenly between the selected sources, newest first. You are charged only for notices delivered.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}