{
  "openapi": "3.0.1",
  "info": {
    "title": "OCDS Tenders Scraper: Global Open Contracting Data to Excel",
    "description": "Export public contracting processes from the Open Contracting Partnership Data Registry (official OCDS JSONL bulk downloads, 130+ publishers, no API key). Filter by country, publisher, keyword, stage, status, buyer and dates. Default: newest open tenders from the last 7 days. Excel, CSV, JSON.",
    "version": "1.0",
    "x-build-id": "peabcOF4IDw2BoiYf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tenderfeed~ocds-registry-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tenderfeed-ocds-registry-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/tenderfeed~ocds-registry-tenders/runs": {
      "post": {
        "operationId": "runs-sync-tenderfeed-ocds-registry-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/tenderfeed~ocds-registry-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-tenderfeed-ocds-registry-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to look for in the title, description, OCID and buyer name, e.g. [\"software\", \"water\", \"road\"]. Empty = all notices.",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Match ANY or ALL keywords.",
            "default": "any"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Limit to registry countries. Accepts names or ISO codes, e.g. [\"United Kingdom\", \"GB\", \"Liberia\", \"Kenya\"]. Empty = all countries (still subject to the file-size cap).",
            "items": {
              "type": "string"
            }
          },
          "publicationIds": {
            "title": "Publication IDs",
            "type": "array",
            "description": "Optional OCP Data Registry publication ids (from publications.json or the dataset page URL), e.g. [\"41\", \"156\"] for UK Find a Tender and Liberia PPCC. Empty = every matching publication.",
            "items": {
              "type": "string"
            }
          },
          "publishers": {
            "title": "Publisher contains",
            "type": "array",
            "description": "Match against the registry title or source_id (case-insensitive contains), e.g. [\"Find a Tender\", \"PPCC\", \"Contracts Finder\"].",
            "items": {
              "type": "string"
            }
          },
          "stages": {
            "title": "Stages",
            "type": "array",
            "description": "Which contracting-process stages to keep. Default is open opportunity notices (tender). Add planning, award or contract for market intelligence.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "planning",
                "award",
                "contract"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "OCDS mainProcurementCategory. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "goods",
                "works",
                "services"
              ]
            }
          },
          "procurementMethods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "Empty = all. Match against procurementMethod or procurementMethodDetails (contains), e.g. [\"open\", \"selective\", \"limited\", \"direct\"].",
            "items": {
              "type": "string"
            }
          },
          "buyerName": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Procuring entity / buyer name contains (case-insensitive)."
          },
          "cpvCodes": {
            "title": "Classification code prefixes",
            "type": "array",
            "description": "Match CPV, NAICS or other item classification ids by prefix, e.g. [\"72\", \"45\", \"5415\"].",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "YYYY-MM-DD or relative (\"7 days\", \"2 weeks\"). Default: last 7 days. Compared to the compiled-release date (or tender.datePublished / tenderPeriod.startDate).",
            "default": "7 days"
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "YYYY-MM-DD. Default: no upper bound."
          },
          "onlyOpen": {
            "title": "Only open for offers",
            "type": "boolean",
            "description": "Keep tender-stage notices whose status is active and whose tenderPeriod.endDate is today or later (rows with no deadline are kept).",
            "default": true
          },
          "includeFrozen": {
            "title": "Include discontinued datasets",
            "type": "boolean",
            "description": "The registry marks some publications as frozen (no longer updated by the publisher). Off by default.",
            "default": false
          },
          "maxFileMb": {
            "title": "Max download size per year file (MB)",
            "minimum": 1,
            "type": "integer",
            "description": "Skip a yearly JSONL.gz that is larger than this, unless you listed the publication in publicationIds. Default 250 MB reads the large active feeds (Ecuador SERCOP, Germany BMI, UK Find a Tender). Lower it for faster, cheaper runs; raise it for the very largest datasets.",
            "default": 250
          },
          "minValue": {
            "title": "Minimum value",
            "type": "number",
            "description": "Minimum estimated tender value (in the notice currency). Notices with no value are kept."
          },
          "maxValue": {
            "title": "Maximum value",
            "type": "number",
            "description": "Maximum estimated tender value (in the notice currency). Notices with no value are kept."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit. Default 50. The Actor scans matching year files, then returns the newest notices first.",
            "default": 50
          },
          "includeBuyerContacts": {
            "title": "Include buyer contacts",
            "type": "boolean",
            "description": "Adds contactPoint name/email/phone from the buyer or procuring entity when the notice publishes them (buyerContactName / Email / Phone). Off by default — many OCDS contact points are named individuals.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new tenders (monitoring mode)",
            "type": "boolean",
            "description": "Remember what earlier runs delivered and return (and charge for) only processes you have not received yet. Ideal for scheduled alerts.",
            "default": false
          },
          "monitoringId": {
            "title": "Monitoring ID",
            "type": "string",
            "description": "Name of the watch-list memory used by 'Only new'. Use a different ID per saved search/schedule."
          },
          "includeRawData": {
            "title": "Include raw OCDS compiled release",
            "type": "boolean",
            "description": "Adds the compiled release under `raw` (much bigger output). Person-level contactPoint fields are removed unless buyer contacts are on.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}