{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders UK & EU — Contracts Finder, Find a Tender, TED",
    "description": "No API key: public tenders and contract awards as company data from Contracts Finder + Find a Tender (UK, OGL v3) and TED (EU). Buyer, CPV, value, deadline, days left, winner + company number. No contact persons. Unofficial: not affiliated with the Cabinet Office or the EU Publications Office.",
    "version": "0.3",
    "x-build-id": "sglPSO4j9gX5n1g4t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rein8~public-tenders-uk-eu/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rein8-public-tenders-uk-eu",
        "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/rein8~public-tenders-uk-eu/runs": {
      "post": {
        "operationId": "runs-sync-rein8-public-tenders-uk-eu",
        "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/rein8~public-tenders-uk-eu/run-sync": {
      "post": {
        "operationId": "run-sync-rein8-public-tenders-uk-eu",
        "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": {
          "source": {
            "title": "Source",
            "enum": [
              "cf",
              "fts",
              "ted"
            ],
            "type": "string",
            "description": "Which notice service this run reads. One source per run — schedule one run per source for several. cf = Contracts Finder (every UK public-sector opportunity and award over £12k / £30k, OCDS); fts = Find a Tender (UK notices above the Procurement Act thresholds, OCDS); ted = TED (the EU's Official Journal supplement: every EU above-threshold notice).",
            "default": "cf"
          },
          "tedQuery": {
            "title": "TED expert query",
            "type": "array",
            "description": "[TED only] One TED expert query per line, the syntax of the Expert search on ted.europa.eu. PD>=today(-7) = last 7 days; add AND FT~\"software\" (full text), AND classification-cpv=72* (CPV prefix), AND buyer-country=FRA (ISO-3), AND buyer-name~\"hospital\", AND estimated-value-proc>=1000000, AND notice-type IN (cn-standard cn-social) for tenders or (can-standard can-social) for awards. Ignored by the UK sources. Narrowing here is faster and cheaper than the filters below.",
            "default": [
              "PD>=today(-7)"
            ],
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Earliest publication date, written 2026-09-19. Empty = the last 7 days (today minus 7, set at run time, so a saved Task or the daily test never goes stale). Contracts Finder and Find a Tender receive it as a query parameter (fewer pages); on TED write PD>=20260919 or PD>=today(-7) in the query instead."
          },
          "publishedTo": {
            "title": "Published to (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Latest publication date, INCLUSIVE, written 2026-09-26 (Contracts Finder treats a bare date as that day at 00:00, so the Actor sends 23:59:59 for you). Leave empty for 'until today'."
          },
          "keyword": {
            "title": "Keyword in title or description",
            "type": "string",
            "description": "Keep only notices whose title or description contains this text (case-insensitive); several words separated by commas = any of them (software, IT services, cloud). Applied to every notice read: a notice that does not match is never charged. On TED prefer AND FT~\"software\" in the query, which makes the source do the narrowing."
          },
          "cpvCodes": {
            "title": "CPV code prefix(es)",
            "type": "string",
            "description": "Common Procurement Vocabulary prefix of the notice's main classification, or several separated by commas: 72 = IT services, 48 = software packages, 45 = construction works, 85 = health and social work, 79 = business services, 90 = environmental services, 60 = transport. 4521 = building construction only. The additional codes of a notice are in the cpvAdditional column."
          },
          "buyerName": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Keep only notices whose contracting authority's name contains this text: NHS, council, Ministry of Defence, université. Several separated by commas = any of them."
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Contracts Finder: the delivery region as the notice names it (Yorkshire and the Humber, London, Scotland, North West). Find a Tender: the buyer's ITL/NUTS code, e.g. UKE = Yorkshire, UKI = London, UKM = Scotland (a prefix works: the match is 'contains'). TED has no region column — put the country in the query. Several separated by commas = any of them."
          },
          "country": {
            "title": "Buyer country (ISO-2)",
            "type": "string",
            "description": "Two-letter country code(s) of the buyer, separated by commas: FR, DE, NL. The two UK sources are always GB. On TED this is applied after reading; AND buyer-country=FRA in the query is faster."
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notices whose published value (estimated or awarded, in the notice's own currency) is at least this amount. A notice that publishes no value does not pass a value filter."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notices whose published value is at most this amount (same currency caveat as the minimum)."
          },
          "stage": {
            "title": "Stage",
            "enum": [
              "tender",
              "award"
            ],
            "type": "string",
            "description": "Leave empty for every stage (tenders, awards and the planning / pipeline notices of Find a Tender and TED). Contracts Finder and Find a Tender receive it as stages=; on TED the row's stage (from the notice type) is filtered after reading — notice-type IN (cn-standard cn-social cn-desg) in the query is faster."
          },
          "closingWithinDays": {
            "title": "Closing within N days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Keep only open tenders whose submission deadline is at most this many days away (14 = closing in the next two weeks). Notices with no deadline or a deadline already passed are dropped when this is set. The dataset's daysToDeadline column carries the number for every row."
          },
          "buyerType": {
            "title": "Buyer type",
            "enum": [
              "health",
              "central-government",
              "council",
              "education",
              "other"
            ],
            "type": "string",
            "description": "Keep only buyers of one type, classified from the buyer's name by keyword patterns (UK and the main EU languages): health, central-government, council, education or other. Leave empty for every buyer. The buyerType column carries the class on every row; use 'Buyer name contains' for a specific organisation."
          },
          "smeOnly": {
            "title": "SME-suitable only",
            "type": "boolean",
            "description": "Keep only notices the buyer flagged as suitable for small and medium-sized enterprises. Contracts Finder publishes the flag; Find a Tender and TED do not, so on those sources this filter returns nothing.",
            "default": false
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of notices to deliver in total (default 500). You are charged only for notices delivered. The sources list newest first, so without a date window this is 'the newest N that match'.",
            "default": 500
          },
          "incremental": {
            "title": "Only notices not delivered before",
            "type": "boolean",
            "description": "Remember which notices were already delivered (per 'State key') and return only new ones, plus notices whose delivered fields changed (marked _changed). With a daily schedule and no date window this is a feed of new notices matching your filters.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the memory used by 'Only notices not delivered before'. Left as 'default', every saved Task gets its own memory automatically. Type a name to share one memory between schedules on purpose.",
            "default": "default"
          },
          "preview": {
            "title": "Preview (3 notices, free)",
            "type": "boolean",
            "description": "Return 3 notices without any charge, to check the output format.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}