{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Procurement Notice Finder by CPV & Country",
    "description": "Search EU TED procurement notices by CPV category, buyer country, publication date, and keyword, or fetch specific notices by publication number, with buyer, deadline, and contract value per notice.",
    "version": "1.0",
    "x-build-id": "Pxrx2xoD3ISc1sldg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~eu-procurement-notice-finder-by-cpv-and-country/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-eu-procurement-notice-finder-by-cpv-and-country",
        "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/vexaloom-labs~eu-procurement-notice-finder-by-cpv-and-country/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-eu-procurement-notice-finder-by-cpv-and-country",
        "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/vexaloom-labs~eu-procurement-notice-finder-by-cpv-and-country/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-eu-procurement-notice-finder-by-cpv-and-country",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "getNotice"
            ],
            "type": "string",
            "description": "What to scrape: `search` builds a query from filters; `getNotice` fetches a notice by its publication number.",
            "default": "search"
          },
          "cpvCategory": {
            "title": "CPV Category",
            "enum": [
              "",
              "03",
              "09",
              "14",
              "15",
              "16",
              "18",
              "19",
              "22",
              "24",
              "30",
              "31",
              "32",
              "33",
              "34",
              "35",
              "37",
              "38",
              "39",
              "41",
              "42",
              "43",
              "44",
              "45",
              "48",
              "50",
              "51",
              "55",
              "60",
              "63",
              "64",
              "65",
              "66",
              "70",
              "71",
              "72",
              "73",
              "75",
              "76",
              "77",
              "79",
              "80",
              "85",
              "90",
              "92",
              "98"
            ],
            "type": "string",
            "description": "Common Procurement Vocabulary top-level division. Matches the whole division and all its sub-codes. Used in `search` mode.",
            "default": ""
          },
          "cpvCode": {
            "title": "CPV Code(s) (advanced)",
            "type": "string",
            "description": "Optional exact or partial CPV code(s) (e.g. `45233140`, `48000000`). Separate several codes with commas or spaces; each matches the code and its sub-codes. Combined with CPV Category. Used in `search` mode."
          },
          "noticeType": {
            "title": "Notice Type",
            "enum": [
              "",
              "cn-standard",
              "cn-social",
              "cn-desg",
              "can-standard",
              "can-social",
              "can-desg",
              "can-modif",
              "can-tran",
              "pin-buyer",
              "pin-only",
              "pin-rtl",
              "pin-cfc-standard",
              "pin-cfc-social",
              "pin-tran",
              "veat",
              "qu-sy",
              "subco",
              "compl",
              "pmc",
              "brin-ecs",
              "brin-eeig"
            ],
            "type": "string",
            "description": "Restrict to one TED notice type, e.g. contract notices or contract award notices. Used in `search` mode.",
            "default": ""
          },
          "procedureType": {
            "title": "Procedure Type",
            "enum": [
              "",
              "open",
              "restricted",
              "comp-dial",
              "comp-tend",
              "neg-w-call",
              "neg-wo-call",
              "innovation",
              "exp-int-rail",
              "oth-mult",
              "oth-single"
            ],
            "type": "string",
            "description": "Restrict to a procurement procedure, e.g. open or restricted. Used in `search` mode.",
            "default": ""
          },
          "contractNature": {
            "title": "Contract Nature",
            "enum": [
              "",
              "works",
              "supplies",
              "services"
            ],
            "type": "string",
            "description": "Restrict to works, supplies, or services. Used in `search` mode.",
            "default": ""
          },
          "country": {
            "title": "Buyer Country",
            "enum": [
              "",
              "AUT",
              "BEL",
              "BGR",
              "HRV",
              "CYP",
              "CZE",
              "DNK",
              "EST",
              "FIN",
              "FRA",
              "DEU",
              "GRC",
              "HUN",
              "IRL",
              "ITA",
              "LVA",
              "LTU",
              "LUX",
              "MLT",
              "NLD",
              "POL",
              "PRT",
              "ROU",
              "SVK",
              "SVN",
              "ESP",
              "SWE",
              "ISL",
              "LIE",
              "NOR",
              "CHE",
              "GBR",
              "ALB",
              "BIH",
              "MKD",
              "MNE",
              "SRB",
              "TUR",
              "UKR",
              "MDA",
              "GEO",
              "XKX"
            ],
            "type": "string",
            "description": "Filter by the buyer's country (ISO-3166 alpha-3, TED style). Used in `search` mode.",
            "default": ""
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Full-text keyword to match anywhere in the notice (title, description, buyer, ...). Used in `search` mode."
          },
          "buyerName": {
            "title": "Buyer Name",
            "type": "string",
            "description": "Match notices whose contracting authority name contains this text, e.g. `comune di milano`. Used in `search` mode."
          },
          "publicationDateFrom": {
            "title": "Published From",
            "type": "string",
            "description": "Only notices published on or after this date (YYYY-MM-DD). Used in `search` mode."
          },
          "publicationDateTo": {
            "title": "Published To",
            "type": "string",
            "description": "Only notices published on or before this date (YYYY-MM-DD). Used in `search` mode."
          },
          "deadlineFrom": {
            "title": "Tender Deadline From",
            "type": "string",
            "description": "Only notices with a submission deadline on or after this date (YYYY-MM-DD). Used in `search` mode."
          },
          "deadlineTo": {
            "title": "Tender Deadline To",
            "type": "string",
            "description": "Only notices with a submission deadline on or before this date (YYYY-MM-DD). Used in `search` mode."
          },
          "minValue": {
            "title": "Minimum Contract Value",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices whose total contract value is at least this amount, in the notice's own currency. Used in `search` mode."
          },
          "maxValue": {
            "title": "Maximum Contract Value",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices whose total contract value is at most this amount, in the notice's own currency. Used in `search` mode."
          },
          "scope": {
            "title": "Scope",
            "enum": [
              "ACTIVE",
              "LATEST",
              "ALL"
            ],
            "type": "string",
            "description": "Which notices to include: Active (still open for submission), Latest version of each notice, or All notices and versions. Used in `search` mode.",
            "default": "ACTIVE"
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "newest",
              "oldest",
              "deadlineSoonest",
              "valueHighest"
            ],
            "type": "string",
            "description": "Order of the returned notices. Used in `search` mode.",
            "default": "newest"
          },
          "publicationNumber": {
            "title": "Publication Number",
            "type": "string",
            "description": "TED publication number(s) to fetch (e.g. `463590-2022`). Accepts several separated by comma/space. Used in `getNotice` mode."
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of notice records to return (1-10,000).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}