{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Scraper – Federal Contract Opportunities (No API Key)",
    "description": "Scrape US federal contract opportunities (RFPs, RFQs, sources sought, awards) from SAM.gov's official public daily extract. No API key, no quota, no start fee. Filter by NAICS, PSC, set-aside, agency, state and deadline; only-new bid alerts. USD 2 per 1,000. By IntegriApps.",
    "version": "0.1",
    "x-build-id": "fa2WymN8csr1IRi3d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/integriapps~sam-gov-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-integriapps-sam-gov-opportunities",
        "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/integriapps~sam-gov-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-integriapps-sam-gov-opportunities",
        "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/integriapps~sam-gov-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-integriapps-sam-gov-opportunities",
        "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 to look for in the title, solicitation number and description (matched at the start of a word, case-insensitive: 'cyber' finds 'cybersecurity'). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Whether a notice must contain any or all of the keywords.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip notices that contain any of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "searchInDescription": {
            "title": "Search keywords in description",
            "type": "boolean",
            "description": "Off = keywords are matched only in the title and solicitation number.",
            "default": true
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS codes or prefixes (e.g. 541512, or 5415 for all computer systems design). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC / classification codes",
            "type": "array",
            "description": "Product Service Codes or prefixes (e.g. DA01, R4, Z2).",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle"
              ]
            }
          },
          "setAsideCodes": {
            "title": "Set-aside",
            "type": "array",
            "description": "Small-business set-aside codes. NONE = notices without a set-aside. 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",
                "NONE"
              ],
              "enumTitles": [
                "SBA - Total Small Business Set-Aside (FAR 19.5)",
                "SBP - Partial Small Business Set-Aside (FAR 19.5)",
                "8A - 8(a) Set-Aside (FAR 19.8)",
                "8AN - 8(a) Sole Source (FAR 19.8)",
                "HZC - HUBZone Set-Aside (FAR 19.13)",
                "HZS - HUBZone Sole Source (FAR 19.13)",
                "SDVOSBC - Service-Disabled Veteran-Owned Small Business Set-Aside (FAR 19.14)",
                "SDVOSBS - SDVOSB Sole Source (FAR 19.14)",
                "WOSB - Women-Owned Small Business Set-Aside (FAR 19.15)",
                "WOSBSS - WOSB Sole Source (FAR 19.15)",
                "EDWOSB - Economically Disadvantaged WOSB Set-Aside (FAR 19.15)",
                "EDWOSBSS - EDWOSB Sole Source (FAR 19.15)",
                "LAS - Local Area Set-Aside (FAR 26.2)",
                "IEE - Indian Economic Enterprise Set-Aside (DOI)",
                "ISBEE - Indian Small Business Economic Enterprise Set-Aside (DOI)",
                "BICiv - Buy Indian Set-Aside (HHS/IHS)",
                "VSA - Veteran-Owned Small Business Set-Aside (VA)",
                "VSS - Veteran-Owned Small Business Sole Source (VA)",
                "NONE - No set-aside"
              ]
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Text matched against department, sub-tier agency and office names (e.g. 'army', 'veterans affairs', 'NASA').",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place of performance (state)",
            "type": "array",
            "description": "Two-letter US state codes for the place of performance (e.g. TX, VA). Notices without a place of performance are excluded when this is set.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted in the last N days",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Window by posting date. The public extract is refreshed once a day, so notices posted today usually appear tomorrow.",
            "default": 7
          },
          "postedFrom": {
            "title": "Posted from (YYYY-MM-DD)",
            "type": "string",
            "description": "Overrides 'last N days' when set."
          },
          "postedTo": {
            "title": "Posted to (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional end date (inclusive)."
          },
          "activeOnly": {
            "title": "Active notices only",
            "type": "boolean",
            "description": "Off = also include notices marked inactive in the extract.",
            "default": true
          },
          "openForResponseOnly": {
            "title": "Only open for response",
            "type": "boolean",
            "description": "Only notices whose response deadline has not passed (notices without a deadline are excluded).",
            "default": false
          },
          "deadlineWithinDays": {
            "title": "Deadline within N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only notices whose response deadline is between now and N days from now."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum notices returned (and charged) in this run.",
            "default": 100
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Include the plain-text description published in the extract.",
            "default": true
          },
          "maxDescriptionChars": {
            "title": "Max description characters",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Longer descriptions are cut and flagged with descriptionTruncated. 0 = no limit.",
            "default": 5000
          },
          "includeContacts": {
            "title": "Include points of contact",
            "type": "boolean",
            "description": "Primary and secondary government points of contact as published on the notice.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new notices (for schedules)",
            "type": "boolean",
            "description": "Remember the notices already returned for the same filters and skip them on the next runs. Uses a named key-value store in your account.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store used by only-new mode. Use a different name per schedule if you want separate memories.",
            "default": "sam-gov-opportunities-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}