{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Scraper — Federal Contract Opportunities",
    "description": "Search public SAM.gov federal contract opportunities through SAM.gov's public API. Returns solicitations, sources sought, awards, contacts, deadlines, set-asides and direct SAM.gov links.",
    "version": "1.1",
    "x-build-id": "ndjlMCLiqpNATla9R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~sam-gov-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~sam-gov-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~sam-gov-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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": {
          "query": {
            "title": "Keywords",
            "type": "string",
            "description": "Use this to search words in the opportunity title and text, for example cybersecurity or cloud migration. Leave empty to return everything that matches the other filters. This is not a search inside attached files."
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Use this to limit results to notice-type codes: o Solicitation, k Combined Synopsis/Solicitation, p Presolicitation, r Sources Sought, s Special Notice, a Award Notice, u Justification, g Sale of Surplus Property, i Intent to Bundle. Empty means all types. This is not a contract award category.",
            "items": {
              "type": "string",
              "enum": [
                "o",
                "k",
                "p",
                "r",
                "s",
                "a",
                "u",
                "g",
                "i"
              ],
              "enumTitles": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Sale of Surplus Property",
                "Intent to Bundle"
              ]
            },
            "default": []
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Use this to filter by one or more 2-to-6-digit NAICS industry codes, for example 541512. A shorter code matches the whole group. This is not a PSC code or an industry name.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes",
            "type": "array",
            "description": "Use this to filter by Product Service Codes, for example R499 or D302. This is not a NAICS code.",
            "items": {
              "type": "string"
            }
          },
          "setAsideCodes": {
            "title": "Set-aside codes",
            "type": "array",
            "description": "Use this to filter by set-aside short codes such as SBA, 8A, HZC, SDVOSBC or WOSB. This is not a text description such as small business.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "Use this to filter by the work location with two-letter state or territory codes, for example VA. This is not the buying agency location.",
            "items": {
              "type": "string"
            }
          },
          "agency": {
            "title": "Agency or organization",
            "type": "string",
            "description": "Use this to filter by a department or agency name, for example Department of the Navy. Names are matched against the full agency path. This is not a contracting officer name."
          },
          "status": {
            "title": "Open or closed",
            "enum": [
              "all",
              "open",
              "closed"
            ],
            "type": "string",
            "description": "Use this to choose open notices, closed notices or both. Closed notices include awards and expired solicitations, which is how you research past awards. It defaults to all.",
            "default": "all"
          },
          "postedFrom": {
            "title": "Posted from",
            "type": "string",
            "description": "Use this to set the first posted date as YYYY-MM-DD or MM/DD/YYYY, for example 2026-07-01. With no dates, no deadline and no notice IDs it defaults to the last 30 days. Any range length works; large ranges are split automatically. This is not a response deadline."
          },
          "postedTo": {
            "title": "Posted to",
            "type": "string",
            "description": "Use this to set the last posted date as YYYY-MM-DD or MM/DD/YYYY. It defaults to today. This is not an archive date."
          },
          "responseDueFrom": {
            "title": "Response deadline from",
            "type": "string",
            "description": "Use this to include only notices whose response deadline is on or after this date (YYYY-MM-DD). This is not a posted-date filter."
          },
          "responseDueTo": {
            "title": "Response deadline to",
            "type": "string",
            "description": "Use this to include only notices whose response deadline is on or before this date (YYYY-MM-DD). This is not an award date."
          },
          "modifiedFrom": {
            "title": "Modified since",
            "type": "string",
            "description": "Use this to return only notices changed on or after this date (YYYY-MM-DD), including amendments. This is not the posted date."
          },
          "noticeIds": {
            "title": "Notice IDs",
            "type": "array",
            "description": "Use this to look up specific notices by their 32-character SAM.gov ID. When set, the search filters above are ignored. Up to 500. This is not a solicitation number.",
            "items": {
              "type": "string"
            }
          },
          "noticeUrls": {
            "title": "Notice links",
            "type": "array",
            "description": "Use this to look up notices from SAM.gov links like https://sam.gov/opp/<id>/view. Up to 500 together with notice IDs. This is not a search page link.",
            "items": {
              "type": "string"
            }
          },
          "solicitationNumbers": {
            "title": "Solicitation numbers",
            "type": "array",
            "description": "Use this to look up notices by solicitation number, for example N0038327QPA59. Every published version of that solicitation is returned. This is not a notice ID.",
            "items": {
              "type": "string"
            }
          },
          "monitorMode": {
            "title": "Only new or changed",
            "type": "boolean",
            "description": "Use this on a schedule to return only notices that are new or changed since the last run with the same filters. Unchanged notices are skipped and not charged. This is not a one-time search.",
            "default": false
          },
          "excludeDepartments": {
            "title": "Exclude departments or agencies",
            "type": "array",
            "description": "Use this to drop notices from departments or agencies whose name contains any of these words, for example defense. Optional; empty keeps everything. Excluded notices are not charged.",
            "items": {
              "type": "string"
            }
          },
          "excludePscGroups": {
            "title": "Exclude PSC groups",
            "type": "array",
            "description": "Use this to drop notices whose PSC code starts with these digits, for example 10 (weapons) or 14 (guided missiles). Optional; empty keeps everything. Excluded notices are not charged.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include contacts, full text and attachments",
            "type": "boolean",
            "description": "Use this to read each notice page for contacts, full description, NAICS, set-aside and attachment list. Turn it off for faster, lighter rows with search-level fields only. The price per notice is the same.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum opportunities",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Use this to cap opportunity records written to the dataset and charged. Enter a whole number from 1 to 100000, for example 100. It defaults to 100. Free plan runs return at most 25. This is not a page count.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}