{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tender Awards (TED): Winners, Bids & Contract Values",
    "description": "One row per awarded lot and winner from EU public tenders on TED: winner name, VAT or registration number, contract value, bids received, buyer and CPV. Official keyless TED API, complete results, daily new-wins diff mode, no personal contact data. $3 per 1,000 rows.",
    "version": "0.0",
    "x-build-id": "Wf52nuVCFNGsEJgWd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/classier_linear~ted-award-winners-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-classier_linear-ted-award-winners-tracker",
        "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/classier_linear~ted-award-winners-tracker/runs": {
      "post": {
        "operationId": "runs-sync-classier_linear-ted-award-winners-tracker",
        "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/classier_linear~ted-award-winners-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-classier_linear-ted-award-winners-tracker",
        "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": {
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes or prefixes, one per line, for example 72000000 (IT services), 48000000 (software), 45000000 (construction). A parent code matches all its child codes, so 72000000 also returns 72200000 and 72222300. A check digit (72000000-5) or a short prefix (72, 7222) is accepted. Leave empty for every CPV (large: about 1,500 award notices per publication day).",
            "items": {
              "type": "string"
            }
          },
          "buyerCountries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Countries of the contracting authority as three-letter ISO codes, for example DEU, FRA, POL (common two-letter codes such as DE are converted). Leave empty for all countries.",
            "items": {
              "type": "string"
            }
          },
          "winnerCountries": {
            "title": "Winner countries",
            "type": "array",
            "description": "Keep award notices with at least one winner from these countries (three-letter ISO codes). Rows whose own winner is known to be from another country are dropped and never charged.",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First TED publication date (YYYY-MM-DD). Default when empty: 7 days before 'Published to', both days included (8 calendar days), so a scheduled run always covers the last week with a day of overlap. In diff mode only the first run uses it; later runs continue from the last complete run's newest notice minus 2 days."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Last TED publication date (YYYY-MM-DD). Default: today."
          },
          "keywords": {
            "title": "Keywords (full text)",
            "type": "string",
            "description": "Optional full-text search across the notice, for example cloud or \"data centre\". Letters, digits, spaces and - . , ' / & + * only."
          },
          "buyerName": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Optional word or phrase in the contracting authority's name, for example Gmina or Bundesagentur."
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "eForms result notice types to include, one per line: can-standard (contract award notice), can-social (social and other specific services), can-desg (design contest result), can-tran (public transport award), can-modif (contract modification). Default: the first four.",
            "default": [
              "can-standard",
              "can-social",
              "can-desg",
              "can-tran"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeModifications": {
            "title": "Include contract modifications",
            "type": "boolean",
            "description": "Also include contract modification notices (can-modif). Notices on TED never change; a change to an awarded contract arrives as a new modification notice.",
            "default": false
          },
          "includeUnsuccessfulLots": {
            "title": "Include lots without a winner",
            "type": "boolean",
            "description": "Also output lots that closed without a winner or are still open (no winner columns, but bids received when published). Off by default; when on, these rows are charged like any other row.",
            "default": false
          },
          "minAwardedValue": {
            "title": "Minimum awarded value",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only rows whose awarded value is at least this amount, in the contract's own currency (no conversion). Rows with no published value are dropped. Filtered rows are never charged."
          },
          "skipNoticeLevelRows": {
            "title": "Skip rows without a per-tender winner",
            "type": "boolean",
            "description": "Drop (and never charge) rows with mapping_confidence 'notice-level', where TED does not let the winner be tied to the individual tender, mostly large multi-lot framework agreements. Keeps only 'exact' and 'positional' rows.",
            "default": false
          },
          "maxRows": {
            "title": "Maximum rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows (newest notices first). 0 = no limit. Your run's 'Maximum cost per run' also caps the export: at $3.00 per 1,000 rows a $1.00 cap allows 333 rows.",
            "default": 0
          },
          "diffMode": {
            "title": "Only new awards (diff mode)",
            "type": "boolean",
            "description": "Remember delivered rows and export (and charge) only rows not delivered before. Each run continues from the newest notice of the last complete run minus 2 days of overlap. Schedule it daily for your competitors' new EU wins every morning.",
            "default": false
          },
          "diffStateKey": {
            "title": "Monitoring list name",
            "type": "string",
            "description": "Name of the diff-mode memory. Runs with the same name share what was delivered; use a different name per watch list. Stored in your account in the named key-value store ted-award-state under this name; delete that record to start over.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}