{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders Feed: EU, UK, US, Canada, New Only",
    "description": "New public tenders from EU TED, UK Find a Tender, the SAM.gov public extract and CanadaBuys in one record shape. Filter by CPV, NAICS, UNSPSC, keywords, country and value. Each run delivers only notices it did not deliver before, with a free summary row per source.",
    "version": "0.1",
    "x-build-id": "8jgjXoFfPNVGfxRwe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lone_rachis~public-tenders-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lone_rachis-public-tenders-feed",
        "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/lone_rachis~public-tenders-feed/runs": {
      "post": {
        "operationId": "runs-sync-lone_rachis-public-tenders-feed",
        "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/lone_rachis~public-tenders-feed/run-sync": {
      "post": {
        "operationId": "run-sync-lone_rachis-public-tenders-feed",
        "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": {
          "sources": {
            "title": "Sources",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "The official sources to read. ted: EU and EEA tenders from TED (Tenders Electronic Daily). uk_fts: UK Find a Tender. sam: US federal opportunities from the SAM.gov public extract (about 200 MB, streamed, skipped when unchanged). canadabuys: Canadian federal tenders. uk_cf: the UK's legacy Contracts Finder (lower-value UK notices), off by default.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk_fts",
                "sam",
                "canadabuys",
                "uk_cf"
              ],
              "enumTitles": [
                "TED (EU)",
                "Find a Tender (UK)",
                "SAM.gov (US)",
                "CanadaBuys (Canada)",
                "Contracts Finder (UK, legacy)"
              ]
            },
            "default": [
              "ted",
              "uk_fts",
              "sam",
              "canadabuys"
            ]
          },
          "noticeTypes": {
            "title": "Notice types",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "open: calls for tenders you can still bid on (the default). planning: prior information, market research, sources sought, requests for information. award: contract awards and award notices. update: changes, corrections, amendments and cancellations.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "planning",
                "award",
                "update"
              ],
              "enumTitles": [
                "Open tenders",
                "Planning and market research",
                "Awards",
                "Updates and amendments"
              ]
            },
            "default": [
              "open"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 50,
            "type": "array",
            "description": "Up to 50 words or phrases. A notice matches when one appears as whole words in its title (and description, see Search keywords in), any case, accents ignored. End a word with * to match its start: cyber* finds cybersecurity. Leave empty to filter by codes only.",
            "items": {
              "type": "string"
            }
          },
          "cpv": {
            "title": "CPV codes (TED, Find a Tender, Contracts Finder)",
            "maxItems": 200,
            "type": "array",
            "description": "Up to 200 Common Procurement Vocabulary codes. A short code covers everything under it: 72 is all IT services, 7221 is software programming. Trailing zeros are ignored, so 72000000 works like 72.",
            "items": {
              "type": "string"
            }
          },
          "naics": {
            "title": "NAICS codes (SAM.gov)",
            "maxItems": 200,
            "type": "array",
            "description": "Up to 200 NAICS codes of 2 to 6 digits. 5415 covers 541511, 541512 and the rest of computer systems design.",
            "items": {
              "type": "string"
            }
          },
          "unspsc": {
            "title": "UNSPSC codes (CanadaBuys)",
            "maxItems": 200,
            "type": "array",
            "description": "Up to 200 UNSPSC codes. 43 covers all IT equipment and software, 4323 covers software. Trailing 00 pairs are ignored.",
            "items": {
              "type": "string"
            }
          },
          "match": {
            "title": "Codes and keywords",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any: a notice matches with one of your codes or one of your keywords (the default). all: it needs one of the codes of its source and one of the keywords. A source with neither a code of its scheme nor a keyword is skipped when you gave codes for other schemes.",
            "default": "any"
          },
          "keywordsIn": {
            "title": "Search keywords in",
            "enum": [
              "titleAndDescription",
              "title"
            ],
            "type": "string",
            "description": "titleAndDescription (the default) or title only. Descriptions are searched but never copied into the rows.",
            "default": "titleAndDescription"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "type": "array",
            "description": "Up to 50 words or phrases that drop a notice when they appear in the same text the keywords are searched in. Same rules as Keywords.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "maxItems": 60,
            "type": "array",
            "description": "Up to 60 country codes of the buyer, such as DE, FR, IE (TED's three-letter codes such as DEU work too). Mostly for TED. A single-country source whose country is not in the list is skipped without a download: GB for uk_fts and uk_cf, US for sam, CA for canadabuys. Leave empty for all countries.",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Drops notices whose stated value is below this amount, in the notice's own currency (no conversion). Notices without a stated value are kept, because most open tenders publish none."
          },
          "since": {
            "title": "Notices since",
            "pattern": "^(lastRun|\\d{4}-\\d{2}-\\d{2})$",
            "type": "string",
            "description": "lastRun (the default): each run reads from where the last complete run of this memory stopped, and the first run reads First run days back. Or a date such as 2026-10-01 to read from that day (UTC). Never more than 30 days back. Notices delivered before are never delivered again either way.",
            "default": "lastRun"
          },
          "firstRunDays": {
            "title": "First run days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many days back the first run of a memory reads, 1 to 30.",
            "default": 7
          },
          "maxNotices": {
            "title": "Most notices per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most notices one run delivers and charges, all sources together, newest first and taking turns between sources. Notices left over are delivered by the next run.",
            "default": 500
          },
          "stateStoreName": {
            "title": "Memory name",
            "pattern": "^[a-zA-Z0-9-]{0,60}$",
            "type": "string",
            "description": "Optional. The named key-value store that remembers what was delivered. Leave empty: a saved task gets its own memory, and other runs share one memory per set of filters. Give a name (letters, digits and dashes) to share one memory between tasks or to start a fresh one."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}