{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Tenders API: Canada, France, NL, EU & Australia",
    "description": "Government tenders from official open data: Canada (CanadaBuys, incl. award notices), France (BOAMP), the Netherlands (TenderNed), EU-institution calls for tenders and Australian contract awards, in one schema with source licences. Optional World Bank, EU TED and UK. $2 per 1,000.",
    "version": "0.1",
    "x-build-id": "3KNZSW0vwxObJkSWS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlwren~global-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlwren-global-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/crawlwren~global-tenders/runs": {
      "post": {
        "operationId": "runs-sync-crawlwren-global-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/crawlwren~global-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-crawlwren-global-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": "Official open-data sources to search. On by default: CanadaBuys (tenders, and award notices when the stage is 'awarded' or 'all'), BOAMP, TenderNed, AusTender and the EU Funding & Tenders Portal (EU-institution tenders). Optional extras: World Bank procurement notices and contract awards (worldwide, high volume), EU TED and the UK portals.",
            "items": {
              "type": "string",
              "enum": [
                "canadabuys",
                "boamp",
                "tenderned",
                "austender",
                "eu_funding_tenders",
                "worldbank",
                "worldbank_contracts",
                "ted",
                "find_a_tender",
                "contracts_finder"
              ],
              "enumTitles": [
                "Canada: CanadaBuys (federal tenders + award notices)",
                "France: BOAMP",
                "Netherlands: TenderNed",
                "Australia: AusTender (AWARDED contracts only)",
                "EU institutions: Funding & Tenders Portal (tenders only, no grants)",
                "World Bank: procurement notices (worldwide, opt-in)",
                "World Bank: signed contract awards (AWARDED only, opt-in)",
                "EU: TED (all EU/EEA notices)",
                "UK: Find a Tender (above threshold)",
                "UK: Contracts Finder (below threshold)"
              ]
            },
            "default": [
              "canadabuys",
              "boamp",
              "tenderned",
              "austender",
              "eu_funding_tenders"
            ]
          },
          "noticeStage": {
            "title": "Notice stage",
            "enum": [
              "open",
              "awarded",
              "planning",
              "all"
            ],
            "type": "string",
            "description": "Open tenders you can still bid on, awarded contracts, or early-market notices. Australia (AusTender) and World Bank contract awards only have awarded contracts, so they are skipped for 'Open' and 'Planning'. The EU Funding & Tenders Portal has no award results, so it is skipped for 'Awarded'.",
            "default": "open"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep notices whose title, description or buyer contains ANY of these (case-insensitive). Notices are in their own language: add translations (e.g. software, logiciel, programmatuur, software).",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "EU Common Procurement Vocabulary, prefix match (72000000 or 72 = IT services). Applies to sources that use CPV (FR, NL, TED, UK).",
            "items": {
              "type": "string"
            }
          },
          "unspscCodes": {
            "title": "UNSPSC codes",
            "type": "array",
            "description": "UN product/service codes, prefix match (43 = IT equipment, 8111 = computer services). Applies to Canada and Australia.",
            "items": {
              "type": "string"
            }
          },
          "strictClassification": {
            "title": "Drop notices without the requested code scheme",
            "type": "boolean",
            "description": "Off (default): a CPV filter does not remove Canadian/Australian notices (they use UNSPSC) and vice versa. On: only notices that match one of your codes.",
            "default": false
          },
          "buyerCountries": {
            "title": "Countries",
            "type": "array",
            "description": "ISO alpha-2 codes (e.g. FR, DE, IE, KE). Mostly useful with TED and the World Bank sources (project country); other sources are single-country. EU Funding & Tenders rows use the code EU. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Used when 'Published from' is empty. Use 1 with a daily schedule.",
            "default": 3
          },
          "publishedFrom": {
            "title": "Published from (optional)",
            "type": "string",
            "description": "YYYY-MM-DD. Overrides 'last N days'."
          },
          "publishedTo": {
            "title": "Published to (optional)",
            "type": "string",
            "description": "YYYY-MM-DD, inclusive. Defaults to now."
          },
          "onlyOpenDeadlines": {
            "title": "Only tenders whose deadline has not passed",
            "type": "boolean",
            "description": "Applies to the 'Open tenders' stage.",
            "default": true
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "In the notice's own currency. Notices without a published value are excluded when set (many open notices don't publish one)."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "integer",
            "description": "In the notice's own currency."
          },
          "maxResults": {
            "title": "Max results per source",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each source after this many notices (0 = no limit). You are only charged for notices delivered.",
            "default": 200
          },
          "maxPagesPerSource": {
            "title": "Max pages per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap on API pages/files fetched per source.",
            "default": 40
          },
          "tendernedDetails": {
            "title": "Netherlands: fetch CPV and region codes",
            "type": "boolean",
            "description": "TenderNed's list doesn't include CPV/NUTS codes; this fetches one detail record per kept notice (slower, ~1 s each).",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}