{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders TED Scraper – Public Procurement Notices & CPV",
    "description": "Search EU public tenders on TED by country, CPV code, keyword and deadline: buyer, estimated value, deadline and links. Ready for bid-alert workflows.",
    "version": "0.1",
    "x-build-id": "x9SzATguYJaKJMM0K"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/flets_sv~ted-eu-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-flets_sv-ted-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/flets_sv~ted-eu-tenders/runs": {
      "post": {
        "operationId": "runs-sync-flets_sv-ted-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/flets_sv~ted-eu-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-flets_sv-ted-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",
        "properties": {
          "palabrasClave": {
            "title": "Keywords",
            "type": "string",
            "description": "Full-text search sent to TED, e.g. \"software\", \"limpieza\", \"cloud\". Quotes, parentheses and the characters ~ < > = are replaced by spaces before searching. Leave it empty to get everything that matches the other filters.",
            "default": "software"
          },
          "paises": {
            "title": "Buyer countries (ISO-3 codes)",
            "type": "array",
            "description": "Countries of the contracting authority as three-letter codes: ESP, FRA, DEU, ITA, PRT... Case does not matter. Values that are not three letters are ignored. Empty means no country filter (whole TED).",
            "default": [
              "ESP"
            ],
            "items": {
              "type": "string"
            }
          },
          "cpv": {
            "title": "CPV codes (prefix)",
            "type": "array",
            "description": "Common Procurement Vocabulary codes, matched as a prefix: 72 (IT services), 48 (software), 45 (construction), 90 (waste and cleaning). A full code such as 72000000 is shortened to 72. Only digits are kept and codes need at least 2 digits. A notice matches if it has any of the codes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tipoContrato": {
            "title": "Contract type",
            "enum": [
              "any",
              "supplies",
              "services",
              "works"
            ],
            "type": "string",
            "description": "Nature of the contract as TED labels it. \"Any\" adds no filter.",
            "default": "any"
          },
          "tipoAviso": {
            "title": "Notice type",
            "enum": [
              "cn-standard",
              "can-standard",
              "pin-only",
              "any"
            ],
            "type": "string",
            "description": "Contract notices are open tenders. Award notices are the ones published after the contract is awarded; they return the same fields as the others (buyer, CPV, estimated value of the lot). With the option Include award data on, the winner, awarded amount and award date are returned for any notice type when TED publishes them; only can-standard rows are charged the award-notice event (see the pricing section of the README).",
            "default": "cn-standard"
          },
          "diasAtras": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only notices published in this window. Values are clamped to 1-365. Notices come newest first.",
            "default": 30
          },
          "soloAbiertos": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Skip contract notices whose submission deadline is before today. It only applies when the notice type is a contract notice (cn-standard); it has no effect on award, prior information or \"any\" searches.",
            "default": true
          },
          "valorMinimo": {
            "title": "Minimum estimated value",
            "minimum": 0,
            "type": "integer",
            "description": "Skip notices whose estimated value (the sum of the values TED declares for the lots) is below this number. The number is compared as is, in the currency of the notice; currencies are not converted. When it is above 0, notices without a declared value are skipped too. 0 disables the filter.",
            "default": 0
          },
          "incluirAdjudicacion": {
            "title": "Include award data (paid: award-notice event)",
            "type": "boolean",
            "description": "Off by default. When on, award notices of type can-standard return the winner, the awarded amount and the award date. A row is charged award-notice instead of tender-notice only if it is can-standard and really carries a winner, an amount or a date; if TED publishes none of them, it is charged tender-notice. Other notice types, including can-social, are charged tender-notice. If TED rejects the award fields, the Actor retries without them and charges tender-notice. Prices are in the README. Your maximum spend per run still applies.",
            "default": false
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of notices returned (1-5000). Each returned notice is billed as one event, so this also caps what a run can cost.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}