{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Scraper",
    "description": "[💰 $2.99 / 1K notices] Scrape SAM.gov contract opportunities: all ~44,000 active notices checked in under a minute. Filter by keyword, NAICS, PSC, set-aside, agency, state and deadline. Get descriptions, contacts, attachments and awards. No API key. Export JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "yss5KfzAU1DDuSo3N"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sleepmodesystems~sam-gov-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sleepmodesystems-sam-gov-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/sleepmodesystems~sam-gov-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sleepmodesystems-sam-gov-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/sleepmodesystems~sam-gov-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sleepmodesystems-sam-gov-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": "array",
            "description": "Words or phrases searched in the title, the full description, the solicitation number and the agency. A notice matches if it has any of them, as whole words: \"cybersecurity\", \"janitorial services\", or a solicitation number such as N0017327Q1301424824.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Any: a notice with one of the keywords matches. All: it must have every keyword.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Leave out notices that mention any of these words or phrases: \"construction\", \"brand name\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywordsUrl": {
            "title": "Keyword list link",
            "type": "string",
            "description": "Optional. A link to a CSV, a text file (one keyword per line) or a Google Sheet shared as \"Anyone with the link can view\": every cell becomes a keyword, added to the ones above. Up to 1,000."
          },
          "naics": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS codes or the start of one (5415 covers 541511 to 541519), a sector range (31-33), or words from the official titles (\"computer systems design\", \"janitorial\"). Older NAICS 2017 codes still on notices work too.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "psc": {
            "title": "PSC codes (product and service codes)",
            "type": "array",
            "description": "PSC codes or the start of one (D3 for IT services, 7A20), or words from the official names (\"janitorial\", \"aircraft components\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-aside",
            "type": "array",
            "description": "Only notices set aside for these business types. \"No set-aside\" means full and open competition.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "ISBEE",
                "IEE",
                "BICiv",
                "LAS",
                "ESB",
                "NONE"
              ],
              "enumTitles": [
                "Total Small Business",
                "Partial Small Business",
                "8(a)",
                "8(a) Sole Source",
                "HUBZone",
                "HUBZone Sole Source",
                "Service-Disabled Veteran-Owned (SDVOSB)",
                "SDVOSB Sole Source",
                "Women-Owned (WOSB)",
                "WOSB Sole Source",
                "Economically Disadvantaged Women-Owned (EDWOSB)",
                "EDWOSB Sole Source",
                "Veteran-Owned (VA only)",
                "Veteran-Owned Sole Source (VA only)",
                "Indian Small Business Economic Enterprise",
                "Indian Economic Enterprise",
                "Buy Indian (IHS)",
                "Local Area",
                "Emerging Small Business",
                "No set-aside (full and open)"
              ]
            },
            "default": []
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Which notices. Empty means the open opportunities: solicitations, combined synopsis/solicitations, presolicitations, sources sought and special notices. Add Award notice for who won and for how much.",
            "items": {
              "type": "string",
              "enum": [
                "solicitation",
                "combinedSynopsis",
                "presolicitation",
                "sourcesSought",
                "specialNotice",
                "award",
                "justification",
                "saleOfSurplus",
                "intentToBundle"
              ],
              "enumTitles": [
                "Solicitation",
                "Combined synopsis/solicitation",
                "Presolicitation",
                "Sources sought",
                "Special notice",
                "Award notice",
                "Justification (J&A)",
                "Sale of surplus property",
                "Intent to bundle requirements"
              ]
            },
            "default": []
          },
          "agencies": {
            "title": "Agency",
            "type": "array",
            "description": "Department, agency or office, as words or an office code: \"Dept of the Navy\", \"Veterans Affairs\", \"Army Corps of Engineers\", DoD, N00189.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "placeOfPerformance": {
            "title": "Place of performance",
            "type": "array",
            "description": "US states or cities: Texas, VA, \"San Diego, CA\". Many notices give no place: for those, the contracting office's place counts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postedAfter": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Only notices posted on or after this day: 2026-11-01, or a relative value such as 7 days (the last 7 days)."
          },
          "postedBefore": {
            "title": "Posted on or before",
            "type": "string",
            "description": "Only notices posted on or before this day. With \"Posted on or after\", a date range."
          },
          "deadlineAfter": {
            "title": "Response deadline on or after",
            "type": "string",
            "description": "Only notices due on or after this day. Relative values look ahead: 7 days means a week from today."
          },
          "deadlineBefore": {
            "title": "Response deadline on or before",
            "type": "string",
            "description": "Only notices due on or before this day: 14 days for those closing in the next two weeks."
          },
          "openOnly": {
            "title": "Still open for responses",
            "type": "boolean",
            "description": "Only notices whose response deadline has not passed, and not canceled. SAM.gov keeps many notices active after their deadline: on 2026-11-07, 21,000 of 32,000. Award notices are not affected.",
            "default": true
          },
          "minAwardAmount": {
            "title": "Award amount, at least (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "For award notices: only awards of at least this many US dollars."
          },
          "maxAwardAmount": {
            "title": "Award amount, at most (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "For award notices: only awards of at most this many US dollars."
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 0,
            "type": "integer",
            "description": "The newest notices first. Prefilled with 100 for a quick first test: clear it (or set 0) to get every matching notice.",
            "default": 0
          },
          "withAttachments": {
            "title": "Attachment links",
            "type": "boolean",
            "description": "Each notice's attachments (statement of work, bid schedule, amendments) with a public download link, and its external links.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new and changed notices",
            "type": "boolean",
            "description": "Each run returns only notices no earlier run with the same filters delivered: new notices, and new versions of notices (amendments, marked changeType: amended).",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Give the list of delivered notices a name to keep it when you change the filters, or to keep two monitors of the same filters apart."
          },
          "notices": {
            "title": "Notice links",
            "type": "array",
            "description": "Instead of filters: SAM.gov notice links or ids, such as https://sam.gov/opp/69dc1973eab9446398b008db158cc001/view. When a notice has a newer version, the newest is delivered. Filters are not used with links.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minItems": {
            "title": "Minimum notices",
            "minimum": 0,
            "type": "integer",
            "description": "Fail the run if fewer notices were found. 0 by default: a search may rightly find nothing, and the run summary then says which filter removed the notices.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}