{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders Scraper - EU TED & SAM.gov Government Contracts",
    "description": "Public tenders scraper for government contracts and procurement: TED tenders (Tenders Electronic Daily, all EU countries) and SAM.gov notices in one unified format - buyer, CPV/NAICS codes, value, deadline, winning supplier, document links. Official APIs only. $3.50 per 1,000 notices.",
    "version": "0.1",
    "x-build-id": "hFJ9eFIjUvAyapfy3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/offgrid-labs~public-tenders-eu-us/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-offgrid-labs-public-tenders-eu-us",
        "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/offgrid-labs~public-tenders-eu-us/runs": {
      "post": {
        "operationId": "runs-sync-offgrid-labs-public-tenders-eu-us",
        "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/offgrid-labs~public-tenders-eu-us/run-sync": {
      "post": {
        "operationId": "run-sync-offgrid-labs-public-tenders-eu-us",
        "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",
            "type": "array",
            "description": "Which procurement databases to search. ted = EU TED (Tenders Electronic Daily): EU/EEA public tenders and awards, no key needed. sam = US SAM.gov federal contract opportunities: needs your own free SAM.gov public API key (field below). Default [\"ted\"]. Example: [\"ted\", \"sam\"]",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "sam"
              ],
              "enumTitles": [
                "TED - EU public procurement (no key needed)",
                "SAM.gov - US federal opportunities (your free API key)"
              ]
            },
            "default": [
              "ted"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional. Keep notices matching ANY of these keywords. TED searches the full notice text; SAM.gov searches titles. Leave empty for all notices in the date range. Examples: cloud services, road maintenance, cybersecurity",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Published within last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices published in the last N days. Default 7. 0 = no date limit for TED, last 30 days for SAM.gov. Ignored when 'Published on or after' is set. Example: 1 for a daily alert",
            "default": 7
          },
          "postedAfter": {
            "title": "Published on or after (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional fixed start date in YYYY-MM-DD format; overrides 'Published within last N days'. SAM.gov allows at most a 1-year window. Example: 2026-10-01"
          },
          "noticeCategory": {
            "title": "Notice type",
            "enum": [
              "all",
              "competition",
              "award",
              "planning"
            ],
            "type": "string",
            "description": "Filter by procurement stage: all (default), competition = open tenders / contract notices you can bid on, award = contract award notices with winner and value, planning = prior information notices.",
            "default": "all"
          },
          "countries": {
            "title": "Buyer countries (TED, ISO codes)",
            "type": "array",
            "description": "Optional, TED only. ISO country codes (2- or 3-letter) of the buying organisation. Leave empty for all countries. Examples: DE, FR, ES, PL, NL",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (TED)",
            "type": "array",
            "description": "Optional, TED only. Common Procurement Vocabulary codes; a prefix matches the whole branch. Examples: 72 (IT services), 45 (construction work), 48000000 (software packages)",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Preferred language for TED texts",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "pt",
              "cs",
              "sv",
              "da",
              "fi",
              "ro",
              "hu",
              "el",
              "bg",
              "sk",
              "sl",
              "hr",
              "lt",
              "lv",
              "et"
            ],
            "type": "string",
            "description": "Language for TED notice titles (available in all EU languages). Buyer names and descriptions are usually only in the original language. Default en.",
            "default": "en"
          },
          "samApiKey": {
            "title": "SAM.gov API key",
            "type": "string",
            "description": "Required only for the sam source. Your own free SAM.gov public API key (sign in at sam.gov > Account Details > Public API Key). Stored encrypted; never written to the dataset."
          },
          "naicsCodes": {
            "title": "NAICS codes (SAM.gov)",
            "type": "array",
            "description": "Optional, SAM.gov only. NAICS industry codes or prefixes. Examples: 541512 (computer systems design), 5415, 236220",
            "items": {
              "type": "string"
            }
          },
          "usStates": {
            "title": "Place of performance states (SAM.gov)",
            "type": "array",
            "description": "Optional, SAM.gov only. Two-letter US state codes for the place of performance. Examples: VA, MD, DC, TX",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value (notice currency)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only notices with an estimated or awarded value of at least this amount, in the notice's own currency (EUR for most TED notices). Notices without a value are excluded when set. Default 0 = no value filter. Example: 100000",
            "default": 0
          },
          "maxItemsPerSource": {
            "title": "Max notices per source",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum notices saved per source; one notice = one dataset row = one charged result. Default 100. 0 = no limit (TED stops at 15,000 per query). Example: 500",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}