{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders & Procurement Scraper — TED, SAM.gov, UK",
    "description": "Government tenders and public procurement in one table: EU TED (27 countries + EEA), UK Find a Tender & Contracts Finder, US SAM.gov federal contracts and Grants.gov. Keywords, CPV/NAICS, country, value, deadline, buyer contacts, award winners. Only-new mode for daily tender alerts.",
    "version": "1.0",
    "x-build-id": "rcNYnsGpyMf313MpZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidydata~public-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidydata-public-tenders-scraper",
        "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/tidydata~public-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tidydata-public-tenders-scraper",
        "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/tidydata~public-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tidydata-public-tenders-scraper",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Find notices that mention ANY of these words or phrases, e.g. 'software', 'cleaning services', 'solar', 'translation'. EU TED also searches the original-language text and the English heading. Empty = every notice (use filters below to narrow).",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Where to search. EU TED = all 27 EU countries + EEA (above-threshold tenders). UK Find a Tender = UK above-threshold and Procurement Act notices. UK Contracts Finder = English below-threshold contracts. SAM.gov = US federal contract opportunities. Grants.gov = US federal grants.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk-find-a-tender",
                "uk-contracts-finder",
                "sam-gov",
                "grants-gov"
              ],
              "enumTitles": [
                "EU TED (Tenders Electronic Daily)",
                "UK Find a Tender",
                "UK Contracts Finder",
                "US SAM.gov (federal contracts)",
                "US Grants.gov (federal grants)"
              ]
            },
            "default": [
              "ted",
              "uk-find-a-tender",
              "uk-contracts-finder",
              "sam-gov"
            ]
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Open tenders you can bid on, planned / upcoming procurements (prior information, pre-solicitations, sources sought, forecasted grants), or contract awards with the winner and the awarded value.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "planned",
                "award"
              ],
              "enumTitles": [
                "Open tenders & opportunities",
                "Planned / upcoming",
                "Contract awards (winners)"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "postedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "1 = today only. Use 1-2 with a daily schedule and 'Only new notices' for alerts. Max 365.",
            "default": 7
          },
          "maxResultsPerSource": {
            "title": "Max notices per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Newest first. Each source stops at this number, so the total is at most this × number of sources.",
            "default": 100
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "2-letter codes (DE, FR, ES, IT, NL, PL, IE, GB, US…) or English names. Keeps notices from buyers in these countries. Sources that cannot match are skipped (e.g. only DE → just EU TED).",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (EU & UK)",
            "type": "array",
            "description": "Common Procurement Vocabulary codes, children included: 72000000 = IT services, 48000000 = software packages, 79000000 = business services, 45000000 = construction, 90910000 = cleaning, 33000000 = medical equipment, 80000000 = education & training.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (SAM.gov)",
            "type": "array",
            "description": "US industry codes for SAM.gov, e.g. 541511 (custom software), 541512 (computer systems design), 541611 (management consulting), 236220 (commercial construction), 561720 (janitorial).",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude words in the title",
            "type": "array",
            "description": "Drop notices whose title contains any of these, e.g. 'construction', 'catering'.",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value",
            "type": "integer",
            "description": "Estimated (or awarded) contract value, in the notice's own currency (EUR, GBP, USD, SEK…). Empty = no minimum."
          },
          "maxValue": {
            "title": "Maximum value",
            "type": "integer",
            "description": "Upper limit for the estimated (or awarded) value, in the notice's currency. Empty = no maximum."
          },
          "keepNoticesWithoutValue": {
            "title": "Keep notices without a published value",
            "type": "boolean",
            "description": "Many notices do not publish a value (all SAM.gov opportunities, for example). When a minimum or maximum value is set, keep those notices anyway?",
            "default": true
          },
          "onlyOpen": {
            "title": "Only open (deadline not passed)",
            "type": "boolean",
            "description": "Skip tenders and grants whose submission deadline is already over. Awards are never affected.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new notices since the last run",
            "type": "boolean",
            "description": "Remember what you already got (per source and per search) and output only notices you have not seen. Add a daily schedule for tender alerts by email, Slack or Google Sheets.",
            "default": false
          },
          "memoryName": {
            "title": "Memory name (for 'only new')",
            "type": "string",
            "description": "Runs that share this name share their memory. Use a different name per client or project.",
            "default": "default"
          },
          "includeDescription": {
            "title": "Include the description",
            "type": "boolean",
            "description": "The notice's scope as clean text. Turn off for lighter rows.",
            "default": true
          },
          "descriptionMaxLength": {
            "title": "Max description length (characters)",
            "minimum": 0,
            "type": "integer",
            "description": "Cut long descriptions to this many characters. 0 = full text.",
            "default": 0
          },
          "fetchDetails": {
            "title": "Fetch contact details (SAM.gov & Grants.gov)",
            "type": "boolean",
            "description": "Open each SAM.gov and Grants.gov notice to add the contracting officer (name, email, phone), NAICS, set-aside, place of performance, full description, award amount and grant ceiling. A bit slower; same price.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}