{
  "openapi": "3.0.1",
  "info": {
    "title": "Government Tenders Scraper: Global Notices & Awards",
    "description": "Search official public procurement notices across countries. Get buyers, deadlines, values, classification codes, lots, document links and awards in one schema, with deduplication and new-notice alerts.",
    "version": "0.1",
    "x-build-id": "L3P7yJ3VQsXz4V2gu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zaiq~government-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zaiq-government-tenders-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/zaiq~government-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zaiq-government-tenders-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/zaiq~government-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zaiq-government-tenders-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",
        "properties": {
          "sources": {
            "title": "Official sources",
            "type": "array",
            "description": "Select the feeds to search. The result limit applies to each source. Australia supplies awarded contracts; Canada supplies federal open tenders and fiscal-year awards; New Zealand supplies the current-tenders RSS feed.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk_find_tender",
                "uk_contracts_finder",
                "us_sam",
                "au_austender",
                "ca_canadabuys",
                "fr_boamp",
                "nz_gets"
              ],
              "enumTitles": [
                "EU and EEA — TED",
                "UK — Find a Tender",
                "UK — Contracts Finder",
                "US federal — SAM.gov search and links",
                "Australia — AusTender awarded contracts",
                "Canada — CanadaBuys federal open data",
                "France — BOAMP",
                "New Zealand — GETS current tenders"
              ]
            },
            "default": [
              "ted"
            ]
          },
          "keywords": {
            "title": "Keywords or phrases",
            "type": "array",
            "description": "Optional literal phrases matched case-insensitively in the title, description or buyer. A notice may match any phrase. Use the source language; the Actor does not translate. Empty means all notices.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Tender opportunities, awarded contracts, prior information, or other notices. Availability differs by source. The open-only filter applies only to tenders.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "award",
                "prior_information",
                "other"
              ],
              "enumTitles": [
                "Tender",
                "Award",
                "Prior information",
                "Other notice"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "maxResults": {
            "title": "Maximum notices per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum unique matching notices delivered from each source, after filters, deduplication and alert suppression. A reached cap is shown as partial coverage in SUMMARY.",
            "default": 10
          },
          "openOnly": {
            "title": "Only tenders with a future deadline",
            "type": "boolean",
            "description": "Exclude tenders with missing or expired deadlines and cancelled tenders. A date-only deadline remains eligible on that date. Awards and prior-information notices are unaffected.",
            "default": true
          },
          "mode": {
            "title": "Run mode",
            "enum": [
              "search",
              "new"
            ],
            "type": "string",
            "description": "Search returns matching notices. New notices remembers delivered notice identities in a named store across runs. The first run emits the current matches. Keep schedules sequential.",
            "default": "search"
          },
          "stateStore": {
            "title": "Alert state store",
            "type": "string",
            "description": "Named key-value store for new-notice mode. Use the same name and filters for repeated runs. Changes to filters start a separate profile. Up to 100,000 identities are retained; evictions appear in SUMMARY.",
            "default": "government-tender-alerts"
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Optional ISO alpha-2 country codes. Matches the buyer country, not necessarily the location of the work. TED covers notices published there; a selected national source is skipped when its country is excluded.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cpvCodes": {
            "title": "CPV codes or prefixes",
            "type": "array",
            "description": "Optional CPV codes, such as 72000000, or numeric prefixes, such as 72. A notice may match any requested CPV or UNSPSC prefix. Sources that publish neither requested scheme are skipped with a free note.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "unspscCodes": {
            "title": "UNSPSC codes or prefixes",
            "type": "array",
            "description": "Optional UNSPSC codes or prefixes. Available mainly in Australia, Canada and New Zealand. A notice may match any requested prefix in either code system; the Actor does not translate between systems.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "currency": {
            "title": "Value currency",
            "type": "string",
            "description": "Three-letter currency, such as EUR, GBP, USD, AUD or CAD. Required when using a value range. The Actor never converts currencies. Awards use awardCurrency; other notices use currency."
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "number",
            "description": "Minimum estimated value for tenders or disclosed award value for awards, in the selected currency. Missing values are excluded."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "number",
            "description": "Maximum estimated value for tenders or disclosed award value for awards, in the selected currency. Missing values are excluded."
          },
          "publishedWithinDays": {
            "title": "Published within days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Rolling publication window when publishedFrom is empty. Relative to UTC today; does not imply that a feed contains every notice in this window.",
            "default": 30
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Optional earliest publication date, YYYY-MM-DD, inclusive. Overrides publishedWithinDays. The maximum window is 365 days."
          },
          "publishedTo": {
            "title": "Published through",
            "type": "string",
            "description": "Optional latest publication date, YYYY-MM-DD, inclusive. Defaults to UTC today."
          },
          "deadlineFrom": {
            "title": "Deadline from",
            "type": "string",
            "description": "Optional earliest deadline, YYYY-MM-DD, inclusive. Notices without a deadline are excluded."
          },
          "deadlineTo": {
            "title": "Deadline through",
            "type": "string",
            "description": "Optional latest deadline, YYYY-MM-DD, inclusive. Notices without a deadline are excluded."
          },
          "deduplicate": {
            "title": "Deduplicate across portals",
            "type": "boolean",
            "description": "Suppress duplicates with the same published notice identity: eForms UUID and version, OCDS release, source ID or exact notice URL. Similar titles alone are never merged.",
            "default": true
          },
          "maxScannedPerSource": {
            "title": "Maximum records checked per source",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Safety limit before filters. Sparse searches may need a higher limit. If reached, SUMMARY says coverage is partial; zero matches then does not mean the source has none.",
            "default": 5000
          },
          "maxRequestsPerSource": {
            "title": "Maximum HTTP requests per source",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Polite request limit including retries. The Actor spaces requests and stops that source on HTTP 429 or 503. At most 150 requests per source per run.",
            "default": 120
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}