{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities – US Federal Contracts",
    "description": "Unofficial tool by LAX Labs. Not affiliated with or endorsed by GSA or SAM.gov. SAM.gov contract opportunities and U.S. federal contracts from the official Opportunities API (your free API key). Filter by keyword, NAICS, PSC, set-aside, state. 0-100 score; optional AI (your LLM key). No contacts.",
    "version": "0.1",
    "x-build-id": "fMKei1EkstErNCkZw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laxlabs~sam-gov-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laxlabs-sam-gov-tender-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/laxlabs~sam-gov-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-laxlabs-sam-gov-tender-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/laxlabs~sam-gov-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-laxlabs-sam-gov-tender-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",
        "properties": {
          "samCredentials": {
            "title": "SAM.gov API key (your own, required)",
            "type": "object",
            "description": "Encrypted secret. Your OWN SAM.gov public API key as {\"apiKey\": \"<your key>\"}. Get it free: sign in at sam.gov → Account Details → Public API Key. The key is personal – do not share it, and renew it every 90 days. It is used only for requests to the official SAM.gov API during this run and is never logged, stored or written to the output. Without it the run stops with an explanation; no results are charged (only the Actor start event that Apify charges for every run)."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases matched against the opportunity title and agency (and the full description if you turn on 'Download full descriptions'). An opportunity matches if it contains ANY of them. Example: \"cybersecurity\", \"cloud\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS industry codes, 2-6 digits; shorter codes match every code that starts with them (5415 = computer systems design). One full 6-digit code is sent to SAM.gov as a server-side filter; several codes are filtered after download.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes (Product Service Codes)",
            "type": "array",
            "description": "Product Service Codes (classification codes), 1-4 letters/digits; prefix match (D = IT and telecom services, DA01 = specific code). One full 4-character code is sent to SAM.gov; otherwise filtered after download.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "SAM.gov procurement types. Default: opportunities you can still respond to (solicitation, combined synopsis/solicitation, pre-solicitation, sources sought). Award notices are opt-in; awardee names are shown only for organisations and never for awards before 4 April 2022.",
            "items": {
              "type": "string",
              "enum": [
                "o",
                "k",
                "p",
                "r",
                "s",
                "i",
                "u",
                "a",
                "g"
              ],
              "enumTitles": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Pre-solicitation",
                "Sources Sought",
                "Special Notice",
                "Intent to Bundle Requirements (DoD-Funded)",
                "Justification (J&A)",
                "Award Notice",
                "Sale of Surplus Property"
              ]
            },
            "default": [
              "o",
              "k",
              "p",
              "r"
            ]
          },
          "states": {
            "title": "Place of performance – U.S. states",
            "type": "array",
            "description": "Two-letter U.S. state or territory codes (VA, DC, CA, PR...). One state is filtered by SAM.gov; several are filtered after download. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "setAside": {
            "title": "Set-aside",
            "enum": [
              "",
              "SBA",
              "SBP",
              "8A",
              "8AN",
              "HZC",
              "HZS",
              "SDVOSBC",
              "SDVOSBS",
              "WOSB",
              "WOSBSS",
              "EDWOSB",
              "EDWOSBSS",
              "LAS",
              "IEE",
              "ISBEE",
              "BICiv",
              "VSA",
              "VSS"
            ],
            "type": "string",
            "description": "Only opportunities with this set-aside type (filtered by SAM.gov). Leave empty for all.",
            "default": ""
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest posted date: YYYY-MM-DD, or a relative value such as \"3 days\", \"2 weeks\", \"1 month\", \"yesterday\". SAM.gov allows at most 1 year between from and to. For a daily schedule use \"1 day\" together with \"Only new opportunities\".",
            "default": "7 days"
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Latest posted date: YYYY-MM-DD, \"today\" or a relative value like \"1 day\".",
            "default": "today"
          },
          "onlyOpen": {
            "title": "Only opportunities still open",
            "type": "boolean",
            "description": "Skip opportunities whose response deadline has passed or that SAM.gov marks inactive. Notices without a deadline (e.g. sources sought, awards) are kept.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new opportunities (for schedules)",
            "type": "boolean",
            "description": "Remember which notices this exact search already delivered (notice IDs only, in a named key-value store in your account) and return only new ones next time.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on opportunities delivered (and charged) in this run. The run also stops when your spending limit is reached.",
            "default": 100
          },
          "maxApiRequests": {
            "title": "Maximum SAM.gov API requests per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on requests sent to SAM.gov with your key in this run (search pages of up to 1,000 opportunities each, plus one request per downloaded description). SAM.gov limits requests per day by account role, so the default is low (3). The run stops cleanly when the cap is reached; a quota error (HTTP 429) is reported, never retried.",
            "default": 3
          },
          "fetchDescriptions": {
            "title": "Download full descriptions (extra requests)",
            "type": "boolean",
            "description": "Off by default. The search API returns only a link to each description; downloading it costs ONE EXTRA SAM.gov request per opportunity (counted in 'Maximum SAM.gov API requests'). Only done for opportunities that already passed all filters. Turn on if your key's daily limit allows it and you want keyword matching / AI on the full text.",
            "default": false
          },
          "includePre2022Records": {
            "title": "Include records dated before 4 April 2022 (D&B)",
            "type": "boolean",
            "description": "Off by default. Records whose posted or award date is before 2022-04-04 may contain Dun & Bradstreet Open Data (awardee name/address) and are skipped. If you turn this on: at most 100 such records per run, awardee NAME only (legal entities only), never an address, and every such record carries a written D&B attribution in dnb_attribution. No bulk / archive export.",
            "default": false
          },
          "minRelevanceScore": {
            "title": "Minimum relevance score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only deliver opportunities whose rule-based relevance score (0-100) is at least this value. Opportunities below it are not charged.",
            "default": 0
          },
          "buyerProfile": {
            "title": "Your company profile (for scoring)",
            "type": "string",
            "description": "Describe what your company sells and which contracts you want to win. Used by the free rule-based relevance score and, if enabled, by the AI analysis. Do not include personal data."
          },
          "enableAi": {
            "title": "AI summary and AI relevance (bring your own key)",
            "type": "boolean",
            "description": "Add an AI summary, AI relevance score with reason and key requirements to opportunities that already passed your filters and minimum score, using YOUR OWN LLM provider key (BYOK). Your provider bills you for tokens. An opportunity delivered with a successful AI analysis is charged as 'Opportunity analyzed by AI' INSTEAD of 'Opportunity found' (never both).",
            "default": false
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "openrouter",
              "openai",
              "gemini",
              "groq",
              "custom"
            ],
            "type": "string",
            "description": "Any OpenAI-compatible provider. OpenRouter gives access to many low-cost models (and rate-limited free variants ending in :free) with one key; Google Gemini offers a free tier.",
            "default": "openrouter"
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Model ID at your provider. Leave empty for the low-cost default: google/gemini-2.5-flash-lite (OpenRouter), gpt-5-nano (OpenAI), gemini-2.5-flash-lite (Gemini), openai/gpt-oss-20b (Groq).",
            "default": ""
          },
          "aiBaseUrl": {
            "title": "Custom API base URL",
            "type": "string",
            "description": "Only for provider \"custom\": https base URL of an OpenAI-compatible API (the Actor calls {base}/chat/completions).",
            "default": ""
          },
          "aiCredentials": {
            "title": "Your AI provider key (secret)",
            "type": "object",
            "description": "Encrypted secret. Enter a JSON object with your own key, for example {\"apiKey\": \"<your provider key>\"}. It is used only for calls to your AI provider during this run and is never logged, stored or written to the output."
          },
          "aiLanguage": {
            "title": "AI summary language",
            "enum": [
              "en",
              "he",
              "de",
              "fr",
              "es",
              "it",
              "pl",
              "nl",
              "pt"
            ],
            "type": "string",
            "description": "Language of the AI summary, reason and requirements. SAM.gov notices (English) are summarized in this language.",
            "default": "en"
          },
          "maxAiAnalyses": {
            "title": "Maximum AI analyses",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on AI analyses in this run. Each opportunity delivered WITH an AI analysis is charged as 'Opportunity analyzed by AI' instead of 'Opportunity found' and uses your own provider tokens. Remaining opportunities are delivered without an AI summary.",
            "default": 50
          },
          "minRelevanceScoreForAi": {
            "title": "Minimum relevance score for AI",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "AI runs only on opportunities that already passed all your filters AND have at least this deterministic relevance score (0-100). Use it to spend AI only on strong matches; lower-scored opportunities are still delivered, without AI.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}