{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities, Incumbents & Grants",
    "description": "New US federal contract notices from SAM.gov filtered by keyword, NAICS, PSC, agency, set-aside and type, with optional USAspending incumbent lookup and Grants.gov opportunities. No API key needed.",
    "version": "0.1",
    "x-build-id": "kFrlIb1FYPVtggElj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/signalscouter~us-federal-contracts-signals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-signalscouter-us-federal-contracts-signals",
        "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/signalscouter~us-federal-contracts-signals/runs": {
      "post": {
        "operationId": "runs-sync-signalscouter-us-federal-contracts-signals",
        "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/signalscouter~us-federal-contracts-signals/run-sync": {
      "post": {
        "operationId": "run-sync-signalscouter-us-federal-contracts-signals",
        "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",
            "type": "array",
            "description": "Match any of these words or phrases in the notice title, solicitation number or description (whole words, case-insensitive). Leave empty to match everything that passes the other filters. Also used as Grants.gov search terms.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS codes or prefixes, 2-6 digits (e.g. 5415 matches 541511, 541512...).",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes",
            "type": "array",
            "description": "Product Service Codes or prefixes, 1-4 characters (e.g. D3 or R425). Incumbent lookup uses the full 4-character PSC.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Department, sub-tier or office names (partial match, e.g. 'Veterans Affairs', 'Army Corps') or CGAC / FPDS / AAC codes. Also filters grants by agency name or Grants.gov agency code (e.g. NSF, HHS-NIH11); SAM.gov CGAC/FPDS/AAC codes don't match grants.",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-asides",
            "type": "array",
            "description": "Only notices with one of these set-aside types.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "LAS",
                "IEE",
                "ISBEE",
                "BICiv",
                "NONE"
              ],
              "enumTitles": [
                "Total Small Business Set-Aside (FAR 19.5) (SBA)",
                "Partial Small Business Set-Aside (FAR 19.5) (SBP)",
                "8(a) Set-Aside (FAR 19.8) (8A)",
                "8(a) Sole Source (FAR 19.8) (8AN)",
                "HUBZone Set-Aside (FAR 19.13) (HZC)",
                "HUBZone Sole Source (FAR 19.13) (HZS)",
                "Service-Disabled Veteran-Owned Small Business Set-Aside (FAR 19.14) (SDVOSBC)",
                "SDVOSB Sole Source (FAR 19.14) (SDVOSBS)",
                "Women-Owned Small Business Program Set-Aside (FAR 19.15) (WOSB)",
                "WOSB Program Sole Source (FAR 19.15) (WOSBSS)",
                "Economically Disadvantaged WOSB Program Set-Aside (FAR 19.15) (EDWOSB)",
                "EDWOSB Program Sole Source (FAR 19.15) (EDWOSBSS)",
                "Veteran-Owned Small Business Set-Aside (VA only) (VSA)",
                "Veteran-Owned Small Business Sole Source (VA only) (VSS)",
                "Local Area Set-Aside (FAR 26.2) (LAS)",
                "Indian Economic Enterprise Set-Aside (Interior) (IEE)",
                "Indian Small Business Economic Enterprise Set-Aside (Interior) (ISBEE)",
                "Buy Indian Set-Aside (HHS/Indian Health Service) (BICiv)",
                "No set-aside used (NONE)"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Only these SAM.gov notice types. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "Combined Synopsis/Solicitation",
                "Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Justification and Approval (J&A)",
                "Modification/Amendment/Cancel",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle",
                "Intent to Bundle Requirements (DoD-Funded)"
              ]
            }
          },
          "states": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "Two-letter US state codes (e.g. VA, TX). Matches the place of performance, or the contracting office's state when no place is given.",
            "items": {
              "type": "string"
            }
          },
          "postedSince": {
            "title": "Posted since",
            "type": "string",
            "description": "Only notices posted on or after this date (e.g. 2026-10-01) or within a relative period (e.g. '7 days', '2 weeks').",
            "default": "7 days"
          },
          "hideExpired": {
            "title": "Hide notices past their response deadline",
            "type": "boolean",
            "description": "Skip notices whose response deadline has already passed. Award notices have no deadline and are kept.",
            "default": true
          },
          "maxResults": {
            "title": "Max opportunities",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Newest matching notices to return. 0 = no limit (can be tens of thousands with broad filters). With 'Only new since last run', matching notices beyond this limit aren't marked as seen, so later runs deliver them.",
            "default": 200
          },
          "includeIncumbents": {
            "title": "Add incumbent / competitor lookup (USAspending)",
            "type": "boolean",
            "description": "For each notice, look up the top recipients and largest recent prime contracts awarded by the same agency for the same NAICS/PSC on USAspending.gov. These are likely incumbents and competitors, not a confirmed predecessor contract. Charged as an extra event only when results are found.",
            "default": false
          },
          "incumbentLookbackYears": {
            "title": "Incumbent lookback (years)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many years of past awards to search (at most 4: older USAspending recipient names are D&B-restricted).",
            "default": 3
          },
          "includeGrants": {
            "title": "Also include Grants.gov opportunities",
            "type": "boolean",
            "description": "Add posted and forecasted federal grant opportunities from Grants.gov, matched by your keywords, agencies and posted-since date.",
            "default": false
          },
          "maxGrants": {
            "title": "Max grants",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Newest grant opportunities to return. 0 = up to 5000. With 'Only new since last run', grants beyond this limit stay eligible for later runs.",
            "default": 100
          },
          "includeOpportunities": {
            "title": "Include SAM.gov contract notices",
            "type": "boolean",
            "description": "Turn off to get grants only.",
            "default": true
          },
          "includeContacts": {
            "title": "Include contracting officer / grant contacts",
            "type": "boolean",
            "description": "Add the published point-of-contact names, emails and phones. Off by default; if you turn it on, follow privacy and anti-spam laws when you use them.",
            "default": false
          },
          "descriptionMaxChars": {
            "title": "Description length",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Truncate notice and grant descriptions to this many characters (0 = no description).",
            "default": 1500
          },
          "onlyNew": {
            "title": "Only new since last run (monitoring)",
            "type": "boolean",
            "description": "Skip notices and grants this monitor already returned in an earlier run. Use with a schedule to get only fresh items. Progress is saved during the run, and items delivered by a run that timed out or crashed are recognised by the next run, so they aren't delivered or charged twice.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name for the onlyNew memory, so several schedules with different filters don't share it.",
            "default": "default"
          },
          "useCache": {
            "title": "Keep a copy of today's SAM.gov file between runs",
            "type": "boolean",
            "description": "Off (recommended): every run streams the daily SAM.gov file directly, which we measured as faster and cheaper on Apify. On: a compressed copy (~45 MB) is kept in your own named key-value store and reused until SAM.gov publishes a new file, so SAM.gov is downloaded at most once a day. Adds a small storage-transfer cost per run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}