{
  "openapi": "3.0.1",
  "info": {
    "title": "Gvt Procurement Scraper",
    "description": "Scrape tender notices & contract awards from 11 government procurement databases across 9 countries. Covers US, EU, UK, Ukraine, France, Brazil, Australia & Canada. Filter by keyword, date, and contract value.",
    "version": "0.0",
    "x-build-id": "mtBxRsZsYwcXtdZQA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zcamper~gvt-procurement-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zcamper-gvt-procurement-scraper",
        "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/zcamper~gvt-procurement-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zcamper-gvt-procurement-scraper",
        "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/zcamper~gvt-procurement-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zcamper-gvt-procurement-scraper",
        "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"
        ],
        "properties": {
          "sources": {
            "title": "Data Sources",
            "type": "array",
            "description": "Select one or more government procurement databases to scrape. Choose 'All Sources' to scrape everything.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "sam.gov",
                "ted.eu",
                "uk.findatender",
                "prozorro.gov.ua",
                "boamp.fr",
                "pncp.gov.br",
                "austender.gov.au",
                "canadabuys.canada.ca",
                "ny.data.gov",
                "eva.virginia.gov",
                "comptroller.texas.gov"
              ],
              "enumTitles": [
                "All Sources (scrape all 11 databases)",
                "SAM.gov — United States (Federal)",
                "TED — European Union (27 member states)",
                "Find a Tender — United Kingdom",
                "ProZorro — Ukraine",
                "BOAMP — France",
                "PNCP — Brazil",
                "AusTender — Australia",
                "CanadaBuys — Canada",
                "NY Open Data — New York State (US)",
                "eVA — Virginia (US)",
                "Texas — DIR Contracts & TxDOT Projects (US)"
              ]
            },
            "default": [
              "sam.gov"
            ]
          },
          "samGovApiKey": {
            "title": "SAM.gov API Key",
            "type": "string",
            "description": "Only required if scraping SAM.gov. Get a free key in 30 seconds at https://api.data.gov/signup/ — all other sources work without a key."
          },
          "dataType": {
            "title": "Data Type",
            "enum": [
              "both",
              "tender_notices",
              "contract_awards"
            ],
            "type": "string",
            "description": "What type of procurement data to collect.",
            "default": "both"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Search terms to find specific tenders (e.g. 'software development', 'medical supplies', 'construction'). Leave empty to get all results.",
            "default": ""
          },
          "keywords": {
            "title": "Filter Keywords",
            "type": "array",
            "description": "Only keep results containing at least one of these keywords in the title or description. Leave empty to keep all results.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "dateFrom": {
            "title": "Date From",
            "type": "string",
            "description": "Only include tenders posted on or after this date. Format: YYYY-MM-DD (e.g. 2025-01-01). Leave empty for no start date limit.",
            "default": ""
          },
          "dateTo": {
            "title": "Date To",
            "type": "string",
            "description": "Only include tenders posted on or before this date. Format: YYYY-MM-DD. Leave empty for no end date limit.",
            "default": ""
          },
          "minContractValue": {
            "title": "Min Contract Value (USD)",
            "type": "number",
            "description": "Only include contracts worth at least this amount. Set to 0 for no minimum.",
            "default": 0
          },
          "maxContractValue": {
            "title": "Max Contract Value (USD)",
            "type": "string",
            "description": "Only include contracts worth less than this amount. Leave empty for no maximum.",
            "default": ""
          },
          "maxResults": {
            "title": "Max Results Per Source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of results to collect from each source. Lower values run faster and cost less.",
            "default": 100
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "json",
              "csv",
              "jsonl"
            ],
            "type": "string",
            "description": "Format for the output data file saved to Key-Value Store.",
            "default": "json"
          },
          "useProxy": {
            "title": "Use Residential Proxy",
            "type": "boolean",
            "description": "Route requests through Apify's residential proxy to avoid rate limiting. Increases reliability but costs more. Not needed for most sources.",
            "default": false
          },
          "browserTimeout": {
            "title": "Request Timeout (seconds)",
            "minimum": 10,
            "maximum": 600,
            "type": "integer",
            "description": "How long to wait for each HTTP request before timing out. Increase if you're getting timeout errors.",
            "default": 60
          },
          "debugMode": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "Log detailed information for each request. Useful for troubleshooting but produces a lot of output.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}