{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Federal Contracts + Contracting Officer Contacts",
    "description": "Pull US federal contract opportunities from SAM.gov: solicitations, sources sought and awards, most carrying the contracting officer's name and email. Filter by NAICS, set-aside, PSC, notice type and place of performance. No SAM.gov API key or account required.",
    "version": "0.1",
    "x-build-id": "bfKvI4a0uC8WRBY6F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shipsatnight~sam-gov-contract-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shipsatnight-sam-gov-contract-scraper",
        "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/shipsatnight~sam-gov-contract-scraper/runs": {
      "post": {
        "operationId": "runs-sync-shipsatnight-sam-gov-contract-scraper",
        "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/shipsatnight~sam-gov-contract-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-shipsatnight-sam-gov-contract-scraper",
        "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": "string",
            "description": "Full-text search across the notice, including the solicitation description. Leave blank to match everything inside your other filters."
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by NAICS industry code. All codes you enter are applied, not just the first. Common IT codes: 541512, 541519, 541690.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "uniqueItems": true,
            "type": "array",
            "description": "Which kinds of notice to return. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "o",
                "p",
                "k",
                "r",
                "a",
                "s",
                "u",
                "g",
                "i"
              ],
              "enumTitles": [
                "Solicitation",
                "Presolicitation",
                "Combined Synopsis/Solicitation",
                "Sources Sought",
                "Award Notice",
                "Special Notice",
                "Justification and Approval (J&A)",
                "Sale of Surplus Property",
                "Intent to Bundle Requirements (DoD-Funded)"
              ]
            }
          },
          "setAsideCodes": {
            "title": "Set-aside types",
            "uniqueItems": true,
            "type": "array",
            "description": "Only return opportunities reserved for these categories. Leave empty for all.",
            "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 Set-Aside",
                "Partial Small Business Set-Aside",
                "8(a) Set-Aside",
                "8(a) Sole Source",
                "HUBZone Set-Aside",
                "HUBZone Sole Source",
                "Service-Disabled Veteran-Owned Small Business Set-Aside",
                "Service-Disabled Veteran-Owned Small Business Sole Source",
                "Women-Owned Small Business Program Set-Aside",
                "Women-Owned Small Business Program Sole Source",
                "Economically Disadvantaged WOSB Set-Aside",
                "Economically Disadvantaged WOSB Sole Source",
                "Local Area Set-Aside",
                "Indian Economic Enterprise Set-Aside",
                "Indian Small Business Economic Enterprise Set-Aside",
                "Buy Indian Set-Aside",
                "Veteran-Owned Small Business Set-Aside",
                "Veteran-Owned Small Business Sole Source"
              ]
            }
          },
          "pscCodes": {
            "title": "PSC codes",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by Product Service Code, for example D302 or Z2ED.",
            "items": {
              "type": "string"
            }
          },
          "state": {
            "title": "Place of performance state",
            "type": "string",
            "description": "Two-letter state code for where the work is performed, for example IA or VA."
          },
          "agencyContains": {
            "title": "Agency name contains",
            "type": "string",
            "description": "Keep only notices whose agency path contains this text, for example 'NAVY' or 'VETERANS AFFAIRS'. Applied after fetching, because SAM.gov only filters agencies by internal numeric ID."
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only return notices posted in the last N days. Maximum 365.",
            "default": 30
          },
          "activeOnly": {
            "title": "Active only",
            "type": "boolean",
            "description": "Exclude notices that are past their response deadline or archived.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after delivering this many opportunities. Each delivered opportunity is one billable result, so this is your spend control.",
            "default": 100
          },
          "deltaMode": {
            "title": "Delta mode (only new and changed)",
            "type": "boolean",
            "description": "Skip notices that are unchanged since your last run. Skipped notices cost nothing, which makes a daily or hourly monitor cheap. Each record is tagged new, updated or unchanged in the deltaStatus field.",
            "default": false
          },
          "apiKey": {
            "title": "SAM.gov API key (no longer needed)",
            "type": "string",
            "description": "Kept for backwards compatibility only. This Actor reads SAM.gov's public endpoints and does not need a key. Anything entered here is ignored."
          },
          "procurementType": {
            "title": "Procurement type (legacy)",
            "type": "string",
            "description": "Superseded by 'Notice types'. A single-letter code here is mapped onto that field when it is empty."
          },
          "includeExpired": {
            "title": "Include expired (legacy)",
            "type": "boolean",
            "description": "Superseded by 'Active only'. Setting this true is the same as turning 'Active only' off.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}