{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities Scraper — US Federal Tenders",
    "description": "US federal contract opportunities from SAM.gov's official public data extract (no API key): solicitations, sources sought, presolicitations and award notices with NAICS, PSC, set-aside, agency, deadline, place of performance and award amount. Filter by keyword, NAICS, set-aside, agency, state, date.",
    "version": "1.0",
    "x-build-id": "Y42jt9roMbrJXnltZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/capable_coach~sam-gov-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-capable_coach-sam-gov-contract-opportunities",
        "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/capable_coach~sam-gov-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-capable_coach-sam-gov-contract-opportunities",
        "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/capable_coach~sam-gov-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-capable_coach-sam-gov-contract-opportunities",
        "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 (any of)",
            "type": "array",
            "description": "Keep notices whose title (and description, see below) contains at least one of these words or phrases, e.g. <code>cybersecurity</code>, <code>janitorial</code>, <code>software</code>. Case insensitive.",
            "items": {
              "type": "string"
            }
          },
          "keywordsInDescription": {
            "title": "Also search keywords in the description",
            "type": "boolean",
            "description": "If off, keywords are matched against the title only.",
            "default": true
          },
          "naicsCodes": {
            "title": "NAICS codes (prefixes)",
            "type": "array",
            "description": "Keep notices whose NAICS code starts with one of these, e.g. <code>541512</code> (computer systems design) or <code>5415</code> / <code>236</code> for a whole family.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC / classification codes (prefixes)",
            "type": "array",
            "description": "Product Service Code prefixes, e.g. <code>D3</code> (IT services), <code>R</code> (professional services), <code>Y1</code> (construction).",
            "items": {
              "type": "string"
            }
          },
          "setAsideCodes": {
            "title": "Set-aside types",
            "type": "array",
            "description": "Keep only these set-asides. Empty = all (including notices without a set-aside).",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "LAS",
                "IEE",
                "ISBEE",
                "BICiv",
                "VSA",
                "VSS",
                "NONE"
              ],
              "enumTitles": [
                "Total Small Business Set-Aside (FAR 19.5)",
                "Partial Small Business Set-Aside (FAR 19.5)",
                "8(a) Set-Aside (FAR 19.8)",
                "8(a) Sole Source (FAR 19.8)",
                "HUBZone Set-Aside (FAR 19.13)",
                "HUBZone Sole Source (FAR 19.13)",
                "Service-Disabled Veteran-Owned Small Business Set-Aside (FAR 19.14)",
                "SDVOSB Sole Source (FAR 19.14)",
                "Women-Owned Small Business Set-Aside (FAR 19.15)",
                "WOSB Sole Source (FAR 19.15)",
                "Economically Disadvantaged WOSB Set-Aside (FAR 19.15)",
                "EDWOSB Sole Source (FAR 19.15)",
                "Local Area Set-Aside (FAR 26.2)",
                "Indian Economic Enterprise (Dept. of the Interior)",
                "Indian Small Business Economic Enterprise (Dept. of the Interior)",
                "Buy Indian Set-Aside (HHS, Indian Health Service)",
                "Veteran-Owned Small Business Set-Aside (VA)",
                "Veteran-Owned Small Business Sole Source (VA)",
                "No set-aside used"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Empty = all types. Pick Solicitation + Combined Synopsis/Solicitation for biddable opportunities, Award Notice for who won.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Sale of Surplus Property",
                "Intent to Bundle Requirements (DoD-Funded)",
                "Consolidate/(Substantially) Bundle"
              ]
            }
          },
          "agencies": {
            "title": "Agency / office contains (any of)",
            "type": "array",
            "description": "Matched against the department, sub-tier and office names, e.g. <code>defense</code>, <code>veterans affairs</code>, <code>army</code>, <code>NASA</code>.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States (2-letter codes)",
            "type": "array",
            "description": "Keep notices whose place of performance or contracting-office state is one of these, e.g. <code>VA</code>, <code>TX</code>.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices posted in the last N days. The extract is sorted newest first, so small values make runs fast. 0 = the whole extract (slower, ~200 MB).",
            "default": 7
          },
          "activeOnly": {
            "title": "Active notices only",
            "type": "boolean",
            "description": "Skip notices SAM.gov flags as inactive.",
            "default": true
          },
          "openForResponseOnly": {
            "title": "Response deadline not passed",
            "type": "boolean",
            "description": "Keep only notices with a response deadline in the future (drops notices without a deadline, such as most award notices).",
            "default": false
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Include the notice description text published in the extract.",
            "default": true
          },
          "includeContacts": {
            "title": "Include points of contact",
            "type": "boolean",
            "description": "Add the contracting officers' names, e-mails and phones published on the notice. Off by default; only enable it if you have a legitimate use (e.g. responding to the solicitation).",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only new notices since last run",
            "type": "boolean",
            "description": "Remember notice IDs already delivered (named key-value store) and return only new ones. Ideal for daily bid alerts.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the memory used by \"Only new notices\". Use one key per saved task. Leave empty to use the shared default memory. Stored encrypted."
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many matching notices.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}