{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contracts Tracker — Federal RFPs, Bids & Award Winners",
    "description": "Federal contract opportunities from SAM.gov (RFPs, RFQs, sources sought) with NAICS, set-aside, deadlines and contracting officer contacts, plus award winners and expiring contracts (recompetes) with incumbents from USAspending. Monitor mode, no API key.",
    "version": "0.1",
    "x-build-id": "DtxPoeZlO5EiU3Cbf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/griffie~sam-gov-contracts-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-griffie-sam-gov-contracts-tracker",
        "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/griffie~sam-gov-contracts-tracker/runs": {
      "post": {
        "operationId": "runs-sync-griffie-sam-gov-contracts-tracker",
        "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/griffie~sam-gov-contracts-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-griffie-sam-gov-contracts-tracker",
        "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": {
          "mode": {
            "title": "What to track",
            "enum": [
              "opportunities",
              "awards",
              "recompetes"
            ],
            "type": "string",
            "description": "<b>Opportunities</b> pulls live notices from SAM.gov. <b>Award winners</b> lists newly awarded contracts with the winning company, amount and agency, which are useful for subcontracting and teaming leads. <b>Recompetes</b> lists contracts whose current end date falls in a window you choose, so you can plan bids before the follow-on solicitation appears.",
            "default": "opportunities"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional. One search per line, combined with OR, e.g. \"cybersecurity\" or \"janitorial services\". In Opportunities mode SAM.gov searches the full notice text; switch \"Keyword scope\" to titles only for tighter matches. In Award and Recompete modes the keywords search award descriptions.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "ALL",
              "ANY",
              "EXACT"
            ],
            "type": "string",
            "description": "How the words inside one keyword line are matched (Opportunities mode).",
            "default": "ALL"
          },
          "keywordScope": {
            "title": "Keyword scope",
            "enum": [
              "anywhere",
              "title"
            ],
            "type": "string",
            "description": "Opportunities mode. \"Title only\" drops notices that mention your keyword only deep in the description or clauses.",
            "default": "anywhere"
          },
          "naics": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Industry codes. Prefixes work in Opportunities mode: \"236\" matches all building construction, \"5415\" all computer systems design. Examples: 541512 IT systems design, 561720 janitorial, 236220 commercial construction, 541330 engineering.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "psc": {
            "title": "PSC codes (product/service)",
            "type": "array",
            "description": "Product Service Codes, e.g. DA01 (IT application development), R425 (engineering support), S201 (custodial), Z2DA (repair of hospitals). One-letter categories such as \"R\" also work for opportunities.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "setAsides": {
            "title": "Set-asides",
            "type": "array",
            "description": "Keep only notices or contracts reserved for these small-business programs.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "LAS",
                "IEE",
                "ISBEE",
                "BICiv",
                "VSA",
                "VSS"
              ],
              "enumTitles": [
                "Total Small Business (SBA)",
                "Partial Small Business (SBP)",
                "8(a) Set-Aside (8A)",
                "8(a) Sole Source (8AN)",
                "HUBZone Set-Aside (HZC)",
                "HUBZone Sole Source (HZS)",
                "Service-Disabled Veteran-Owned SB Set-Aside (SDVOSBC)",
                "SDVOSB Sole Source (SDVOSBS)",
                "Women-Owned SB Set-Aside (WOSB)",
                "WOSB Sole Source (WOSBSS)",
                "Economically Disadvantaged WOSB Set-Aside (EDWOSB)",
                "EDWOSB Sole Source (EDWOSBSS)",
                "Local Area Set-Aside (LAS)",
                "Indian Economic Enterprise (IEE)",
                "Indian Small Business Economic Enterprise (ISBEE)",
                "Buy Indian (BICiv)",
                "Veteran-Owned SB Set-Aside, VA (VSA)",
                "Veteran-Owned SB Sole Source, VA (VSS)"
              ]
            },
            "default": []
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Department or agency names or abbreviations, e.g. \"VA\", \"Army\", \"Navy\", \"Air Force\", \"DHS\", \"GSA\", \"NASA\", \"FEMA\", \"Department of Energy\". Each is matched against the official federal hierarchy; the match is shown in RUN_SUMMARY. In Opportunities mode you can also paste a SAM.gov organization ID.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "placeOfPerformanceStates": {
            "title": "Place of performance states",
            "type": "array",
            "description": "Two-letter state codes, e.g. TX, VA, CA. Note that many SAM.gov notices leave place of performance empty, so this filter is strict.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "postedWithinDays": {
            "title": "Posted or updated in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Opportunities posted or amended in this many days. Use 0 for any date (all active notices).",
            "default": 7
          },
          "postedFrom": {
            "title": "Posted from (date)",
            "type": "string",
            "description": "Optional absolute start date (YYYY-MM-DD). Overrides \"last N days\"."
          },
          "postedTo": {
            "title": "Posted to (date)",
            "type": "string",
            "description": "Optional absolute end date (YYYY-MM-DD)."
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Leave empty for all types. Pick Solicitation and Combined Synopsis/Solicitation for biddable RFPs and RFQs, or Sources Sought and Presolicitation for early pipeline.",
            "items": {
              "type": "string",
              "enum": [
                "o",
                "k",
                "p",
                "r",
                "s",
                "a",
                "u",
                "i",
                "g"
              ],
              "enumTitles": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought / RFI",
                "Special Notice",
                "Award Notice",
                "Justification (J&A)",
                "Intent to Bundle Requirements",
                "Sale of Surplus Property"
              ]
            },
            "default": []
          },
          "responseDueWithinDays": {
            "title": "Responses due within N days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Optional. Keep notices whose response deadline is between now and N days from now."
          },
          "responseDueFrom": {
            "title": "Response due from (date)",
            "type": "string",
            "description": "Optional (YYYY-MM-DD)."
          },
          "responseDueTo": {
            "title": "Response due to (date)",
            "type": "string",
            "description": "Optional (YYYY-MM-DD)."
          },
          "excludePastDue": {
            "title": "Skip notices whose deadline has passed",
            "type": "boolean",
            "description": "Drops notices with a response deadline in the past. Notices without a deadline (special notices, awards) are also dropped when this is on.",
            "default": false
          },
          "excludeAmendments": {
            "title": "Skip amendments",
            "type": "boolean",
            "description": "Only original notices, no amended versions.",
            "default": false
          },
          "activeOnly": {
            "title": "Active notices only",
            "type": "boolean",
            "description": "Turn off to include archived and inactive notices (use a date range, the archive is very large).",
            "default": true
          },
          "includeDetails": {
            "title": "Include details (NAICS, set-aside, contacts, place of performance)",
            "type": "boolean",
            "description": "Opens each notice for its NAICS and PSC codes, set-aside, place of performance, contracting officer contacts (name, email, phone), award details and full description. Turn off for a faster, cheaper list from the search index.",
            "default": true
          },
          "includeDescription": {
            "title": "Include full description text",
            "type": "boolean",
            "description": "Plain-text description of each notice (requires details).",
            "default": true
          },
          "includeAttachments": {
            "title": "Include attachment links",
            "type": "boolean",
            "description": "Lists each notice's files and links with direct download URLs (one extra request per notice).",
            "default": false
          },
          "awardedWithinDays": {
            "title": "Awarded in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Award winners mode. Date window for the award action.",
            "default": 7
          },
          "awardDateFrom": {
            "title": "Award date from",
            "type": "string",
            "description": "Optional (YYYY-MM-DD). Overrides \"last N days\"."
          },
          "awardDateTo": {
            "title": "Award date to",
            "type": "string",
            "description": "Optional (YYYY-MM-DD)."
          },
          "newAwardsOnly": {
            "title": "New awards only",
            "type": "boolean",
            "description": "Only awards whose first action falls in the window. Turn off to also include modifications to older awards.",
            "default": true
          },
          "minAwardAmount": {
            "title": "Minimum award amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, e.g. 1000000 for awards of $1M or more."
          },
          "maxAwardAmount": {
            "title": "Maximum award amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional."
          },
          "recipientNames": {
            "title": "Recipient / incumbent names",
            "type": "array",
            "description": "Optional. Company names to match, e.g. \"Booz Allen\". Works in Award and Recompete modes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "recipientStates": {
            "title": "Recipient states",
            "type": "array",
            "description": "Optional. Two-letter codes for where the winning company is located.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "awardSort": {
            "title": "Award order",
            "enum": [
              "largest",
              "newest"
            ],
            "type": "string",
            "description": "Which awards come first when results are capped.",
            "default": "largest"
          },
          "endsInMonthsFrom": {
            "title": "Ends no sooner than (months from today)",
            "minimum": 0,
            "maximum": 120,
            "type": "integer",
            "description": "Recompete window start. Contracts ending sooner are usually too late to position for.",
            "default": 3
          },
          "endsInMonthsTo": {
            "title": "Ends no later than (months from today)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Recompete window end.",
            "default": 18
          },
          "endDateFrom": {
            "title": "End date from",
            "type": "string",
            "description": "Optional absolute window start (YYYY-MM-DD)."
          },
          "endDateTo": {
            "title": "End date to",
            "type": "string",
            "description": "Optional absolute window end (YYYY-MM-DD)."
          },
          "minContractValue": {
            "title": "Minimum contract value (USD obligated)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, e.g. 250000."
          },
          "recompeteSort": {
            "title": "Recompete order",
            "enum": [
              "soonest",
              "largest"
            ],
            "type": "string",
            "description": "Which contracts come first when results are capped.",
            "default": "soonest"
          },
          "lookbackYears": {
            "title": "Award activity look-back (years)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Contracts with any action in this many years are considered. Raise it to catch long contracts with no recent modifications.",
            "default": 6
          },
          "includeAwardDetails": {
            "title": "Include award details (set-aside, office, parent IDV, potential end date)",
            "type": "boolean",
            "description": "Opens each award record for set-aside, extent competed, number of offers, contracting office, parent IDV and potential end date with all options.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new or changed since the last run",
            "type": "boolean",
            "description": "Monitor mode for schedules. Remembers what earlier runs returned (per filter set, or per state key) and outputs only new items, plus updated ones such as amendments, deadline changes or contract extensions. The first run returns everything and saves the baseline.",
            "default": false
          },
          "includeUpdated": {
            "title": "Include updated items in monitor mode",
            "type": "boolean",
            "description": "Also output items seen before that changed (new amendment, new deadline, new end date or amount), flagged with isUpdate and changedFields.",
            "default": true
          },
          "stateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Optional name for the monitor memory, e.g. \"va-it-daily\". Leave empty to derive it from the filters. Use the same key across schedules or tasks that should share memory."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of rows per run. SAM.gov pages through at most 10,000 notices per search.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel detail requests.",
            "default": 8
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Verbose logging.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}