{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders (TED): procurement notices by keyword and country",
    "description": "Public procurement notices from TED, the EU's official tender journal, plus Germany's national notices below the EU thresholds (oeffentlichevergabe.de): buyer, title, value, deadline, procedure, legal basis and links from official open data. Filter by keyword, country, CPV, region. Pay per notice.",
    "version": "0.1",
    "x-build-id": "kdl4ltQdWa8kVfSh8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadydata~eu-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadydata-eu-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/steadydata~eu-tenders/runs": {
      "post": {
        "operationId": "runs-sync-steadydata-eu-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/steadydata~eu-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-steadydata-eu-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",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search terms",
            "type": "array",
            "description": "One search per row, up to 50: words that must appear in the notice text, for example software licences. Empty text with a country or CPV filter lists everything that matches the filters.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "notices",
              "expiring_contracts"
            ],
            "type": "string",
            "description": "notices lists tender notices as before. expiring_contracts lists awarded contracts whose end date falls in the window below, with the winning company, so you see which contracts will be tendered again.",
            "default": "notices"
          },
          "source": {
            "title": "Source",
            "enum": [
              "ted",
              "de_national",
              "both"
            ],
            "type": "string",
            "description": "ted searches TED as before. de_national reads Germany's own notice service (oeffentlichevergabe.de), including tenders below the EU thresholds that never appear in TED. both returns TED plus the German notices TED does not carry, each notice once.",
            "default": "ted"
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Three-letter ISO codes of the buyer's country, for example NLD, DEU, FRA. Empty means every country.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes the notice is classified under, for example 48000000 for software packages. Empty means every code.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "cn-standard for contract notices (open tenders), can-standard for award notices, pin-only for prior information. Empty means contract notices.",
            "items": {
              "type": "string"
            }
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "Only notices published on or after this date (YYYY-MM-DD). Empty means the most recent notices. For the German source: empty means the last 7 days, and at most 31 days back."
          },
          "nutsRegions": {
            "title": "German regions (NUTS)",
            "type": "array",
            "description": "German source only: NUTS codes of the buyer or the place of performance, for example DE2 for Bavaria or DE212 for Munich. A code covers every region under it. Empty means all of Germany.",
            "items": {
              "type": "string"
            }
          },
          "legalBasis": {
            "title": "Legal basis (Germany)",
            "type": "array",
            "description": "German source only: the procurement law the notice falls under. Below the EU thresholds: UVgO, VOB/A, VOL/A, Haushaltsrecht. Above: VgV, VOB/A-EU, SektVO, KonzVgV, VSVgV, or GWB for all of these. Empty means every basis.",
            "items": {
              "type": "string"
            }
          },
          "onlyBelowEuThreshold": {
            "title": "Only below the EU threshold",
            "type": "boolean",
            "description": "German source only: keep notices under national law only, the ones TED never publishes.",
            "default": false
          },
          "expiresFrom": {
            "title": "Contracts ending from",
            "type": "string",
            "description": "Expiring-contracts mode: first day of the window the contract end date must fall in (YYYY-MM-DD). Empty means today."
          },
          "expiresTo": {
            "title": "Contracts ending until",
            "type": "string",
            "description": "Expiring-contracts mode: last day of the window (YYYY-MM-DD), at most 24 months after the first. Empty means expiresFrom plus monthsAhead."
          },
          "monthsAhead": {
            "title": "Months ahead",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Expiring-contracts mode: window length in months when expiresTo is empty, 1 to 24. Empty means 6."
          },
          "includeComputedEndDates": {
            "title": "Include computed end dates",
            "type": "boolean",
            "description": "Expiring-contracts mode: also list awards that state no end date but a start or signing date plus a duration; the end date is then computed and marked as computed. Off by default: this route reads more awards than it returns.",
            "default": false
          },
          "maxNoticesPerQuery": {
            "title": "Max notices per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cost ceiling per search, newest first.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}