{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tender & RFP Radar",
    "description": "US, EU and UK public tenders in one schema — AI fit score, requirements summary, and new/changed tracking. Official APIs only.",
    "version": "0.1",
    "x-build-id": "flNnmXzraZNrVDNDy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rational_opaque~public-tender-rfp-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rational_opaque-public-tender-rfp-radar",
        "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/rational_opaque~public-tender-rfp-radar/runs": {
      "post": {
        "operationId": "runs-sync-rational_opaque-public-tender-rfp-radar",
        "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/rational_opaque~public-tender-rfp-radar/run-sync": {
      "post": {
        "operationId": "run-sync-rational_opaque-public-tender-rfp-radar",
        "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",
        "required": [
          "sources"
        ],
        "properties": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Official sources to query. SAM.gov is skipped with a warning when samApiKey is empty.",
            "items": {
              "type": "string",
              "enum": [
                "sam_gov",
                "ted",
                "uk_find_a_tender"
              ],
              "enumTitles": [
                "US SAM.gov",
                "EU TED",
                "UK Find a Tender"
              ]
            },
            "default": [
              "ted",
              "uk_find_a_tender"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Match if any keyword appears. A multi-word keyword also matches when each word is present. TED is filtered in the expert query. SAM.gov and Find a Tender are filtered on title and description.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (TED/UK)",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. A code ending in zeros also matches that division.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (SAM.gov)",
            "type": "array",
            "description": "NAICS codes, up to 6 digits. Applied only to SAM.gov.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (ISO-3166 alpha-2)",
            "type": "array",
            "description": "Optional buyer-country filter, for example DE, FR, GB, US.",
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Published in last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Publication or last-updated window. SAM.gov allows at most one year.",
            "default": 7
          },
          "deadlineAfter": {
            "title": "Deadline after (YYYY-MM-DD)",
            "type": "string",
            "description": "Drop notices whose deadline is before this date. Notices with no deadline are kept."
          },
          "minValue": {
            "title": "Min estimated value",
            "type": "integer",
            "description": "Drop notices with a known value below this amount. Unknown values are kept."
          },
          "maxResults": {
            "title": "Max tenders",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum records saved per run, after filtering.",
            "default": 25
          },
          "onlyNewOrChanged": {
            "title": "Only new/changed since last run",
            "type": "boolean",
            "description": "Uses the named key-value store tender-radar-state for this profile and source set.",
            "default": false
          },
          "onlyOpen": {
            "title": "Only open notices",
            "type": "boolean",
            "description": "Drop closed, awarded, and cancelled notices, and any notice whose deadline is already past. Notices with no deadline are kept when their status is open.",
            "default": true
          },
          "profileId": {
            "title": "Tracking profile ID",
            "type": "string",
            "description": "Separates change-tracking state when you watch more than one search.",
            "default": "default"
          },
          "enableAi": {
            "title": "AI summary + match",
            "type": "boolean",
            "description": "Off unless you supply llmApiKey. Short notices under 200 characters are skipped and not charged.",
            "default": false
          },
          "companyProfile": {
            "title": "Company profile (for match)",
            "type": "string",
            "description": "What you sell, where you can deliver, and hard limits such as clearances you do not hold."
          },
          "minMatchScore": {
            "title": "Min match score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "When AI is on, drop scored notices below this score.",
            "default": 0
          },
          "aiMaxPerRun": {
            "title": "Max AI-processed tenders",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on notices sent to the model in one run.",
            "default": 10
          },
          "llmApiKey": {
            "title": "LLM API key",
            "type": "string",
            "description": "Your key for an OpenAI-compatible API. Never logged."
          },
          "llmBaseUrl": {
            "title": "LLM base URL",
            "type": "string",
            "description": "OpenAI-compatible base URL.",
            "default": "https://api.openai.com/v1"
          },
          "llmModel": {
            "title": "LLM model",
            "type": "string",
            "description": "Model name sent to the OpenAI-compatible API.",
            "default": "gpt-4o-mini"
          },
          "samApiKey": {
            "title": "SAM.gov API key",
            "type": "string",
            "description": "Public API key from SAM.gov Account Details. Required only when SAM.gov is selected. Never logged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}