{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Tender Leads Scraper",
    "description": "Apify Actor that aggregates public procurement tenders from 40+ official government and international procurement portals worldwide into a unified Dataset. Designed for businesses, agencies, and researchers that need a global feed of tender opportunities.",
    "version": "0.0",
    "x-build-id": "ZUEGGeucMhF29ThPg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/paduchak~global-tender-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-paduchak-global-tender-leads-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/paduchak~global-tender-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-paduchak-global-tender-leads-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/paduchak~global-tender-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-paduchak-global-tender-leads-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": "Sources",
            "type": "array",
            "description": "Select which procurement portals to scrape. Leave empty to scrape all 45. Values: ContractsFinder, FindTender, Ted, SamGov, Prozorro, AusTender, WorldBank, UNGM, DGMarket, Boamp, Chilecompra, IndiaEprocure, SingaporeGebiz, NzGets, PakistanPpra, SouthAfricaEtender, MalaysiaEperolehan, KenyaIfmis, OeffentlicheVergabe, Ezamowienia, ComprasGovBr, AnacItaly, TenderNed, EkapTurkey, JapanProcurement, LpseIndonesia, ContratacionDelestado, BasePortugal, ELicitatieRo, EVergabeAt, SimapCh, UdbudDk, HankintaFi, DoffinNo, UpphandlingSe, EprocurementGr, SeacePeru, ComprasAr, ComprasPublicasEc, ComprasEstatalesUy, MuasamcongVn, GprocurementTh, HongKongTendering, DubaiProcurement, BangladeshCcm.",
            "items": {
              "type": "string"
            }
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of sources to run in parallel. Higher values speed up scraping but may trigger rate limits.",
            "default": 5
          },
          "timeout": {
            "title": "Run Timeout (seconds)",
            "minimum": 60,
            "maximum": 86400,
            "type": "integer",
            "description": "Total time allowed for the actor to run before aborting. Default is 1 hour (3600s).",
            "default": 3600
          },
          "requestDelay": {
            "title": "Request Delay (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Milliseconds to wait after each source completes. Increase to avoid IP bans on strict portals.",
            "default": 1000
          },
          "requestRetries": {
            "title": "Request Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Number of retry attempts with exponential backoff when a source fails. Backoff: 1s, 2s, 4s.",
            "default": 2
          },
          "apifyProxy": {
            "title": "Proxy Configuration",
            "type": "boolean",
            "description": "Enable rotating residential and datacenter proxies via Apify Proxy. Recommended for production runs to avoid IP bans.",
            "default": true
          },
          "apifyProxyGroups": {
            "title": "Proxy Groups",
            "type": "array",
            "description": "Select specific Apify Proxy groups. Leave empty for Apify's automatic proxy selection.",
            "items": {
              "type": "string",
              "enum": [
                "RESIDENTIAL",
                "DATACENTER",
                "SERP"
              ]
            },
            "default": []
          },
          "proxyUrls": {
            "title": "Custom Proxy URLs",
            "type": "array",
            "description": "Use your own rotating proxy service (e.g., BrightData, SmartProxy). Format: http://user:pass@host:port. Overrides Apify Proxy when provided.",
            "items": {
              "type": "string"
            }
          },
          "proxyCountries": {
            "title": "Proxy Countries",
            "type": "array",
            "description": "Route traffic through specific countries (ISO 2-letter codes). E.g., ['US', 'GB']. Required for geo-restricted portals. Leave empty for any location.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "proxyRotation": {
            "title": "Proxy Rotation",
            "enum": [
              "perRequest",
              "perSource"
            ],
            "type": "string",
            "description": "Controls IP switching frequency. 'perRequest' changes IP on every HTTP call. 'perSource' keeps same IP for entire source run.",
            "default": "perRequest"
          },
          "webhookFilters": {
            "title": "Webhook Filters",
            "type": "array",
            "description": "Receive webhook notifications for tenders matching these keywords. Searches title, description, buyer name, and category. Leave empty to send all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "HTTPS endpoint to receive POST notifications when matching tenders are found. Payload includes source, count, and tender details."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}