{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities Scraper: US Federal Tenders",
    "description": "Scrape SAM.gov contract opportunities: US federal government tenders, RFPs, RFQs, solicitations, sources sought and award notices. Filter by NAICS, PSC, set-aside (8(a), SDVOSB, WOSB, HUBZone), agency, state or response deadline. Official public SAM.gov data, no API key. JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "xhAGKK6Pya1WnhtUq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexus-scrapers~sam-gov-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexus-scrapers-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/nexus-scrapers~sam-gov-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-nexus-scrapers-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/nexus-scrapers~sam-gov-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-nexus-scrapers-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": {
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Word or phrase that must appear in the title, description or solicitation number (case-insensitive). Separate alternatives with a comma: 'solar, photovoltaic' matches either. Leave empty to search everything."
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "North American Industry Classification System codes with prefix matching: '54' = all professional and technical services, '541512' = computer systems design.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes (classification)",
            "type": "array",
            "description": "Product and Service Codes with prefix matching: 'D3' = IT and telecom services, '7030' = software, 'Y1' = construction of buildings.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Which kinds of notices to return. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "contract-notice",
                "prior-information",
                "contract-award",
                "contract-modification",
                "voluntary-ex-ante",
                "other"
              ],
              "enumTitles": [
                "Solicitations: Solicitation, Combined Synopsis/Solicitation (open calls you can bid on)",
                "Early notices: Presolicitation, Sources Sought (market research, RFIs)",
                "Awards: Award Notice (awardee and amount)",
                "Modification / Amendment / Cancel notices",
                "Justifications: sole-source Justification and J&A notices",
                "Other: Special Notice, Sale of Surplus Property, Consolidate/Bundle"
              ]
            },
            "default": [
              "contract-notice"
            ]
          },
          "samNoticeTypes": {
            "title": "SAM.gov notice types (exact)",
            "type": "array",
            "description": "Optional exact SAM.gov notice types, for example only 'Sources Sought'. Combined with the notice types above (AND), so set 'Notice types' to empty to use this alone.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Award Notice",
                "Modification/Amendment/Cancel",
                "Justification",
                "Justification and Approval (J&A)",
                "Special Notice",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle"
              ]
            }
          },
          "setAsides": {
            "title": "Set-aside types",
            "type": "array",
            "description": "Only notices reserved for these small-business programs (a notice matches if any of its set-aside codes is selected). Use NONE for notices with no set-aside.",
            "items": {
              "type": "string",
              "enum": [
                "NONE",
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "ISBEE",
                "IEE",
                "BICiv",
                "LAS",
                "ESB"
              ],
              "enumTitles": [
                "NONE - No set-aside used",
                "SBA - Small Business Set-Aside - Total",
                "SBP - Small Business Set-Aside - Partial",
                "8A - 8(a) Set-Aside",
                "8AN - 8(a) Sole Source",
                "HZC - HUBZone Set-Aside",
                "HZS - HUBZone Sole Source",
                "SDVOSBC - Service-Disabled Veteran-Owned Small Business Set-Aside",
                "SDVOSBS - Service-Disabled Veteran-Owned Small Business Sole Source",
                "WOSB - Women-Owned Small Business Set-Aside",
                "WOSBSS - Women-Owned Small Business Sole Source",
                "EDWOSB - Economically Disadvantaged Women-Owned Small Business Set-Aside",
                "EDWOSBSS - Economically Disadvantaged Women-Owned Small Business Sole Source",
                "VSA - Veteran-Owned Small Business Set-Aside (VA)",
                "ISBEE - Indian Small Business Economic Enterprise",
                "IEE - Indian Economic Enterprise",
                "BICiv - Buy Indian Set-Aside (HHS Indian Health Service)",
                "LAS - Local Area Set-Aside",
                "ESB - Emerging Small Business Set-Aside"
              ]
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Words that must appear in the department, sub-tier agency or office name, case-insensitive: 'army', 'veterans', 'general services'. A notice matches if any entry matches.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "Two-letter US state codes of the place of performance, e.g. VA, TX, DC. Notices without a stated state are excluded when this filter is set.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Posted in the last N days",
            "minimum": 0,
            "maximum": 6000,
            "type": "integer",
            "description": "Only notices posted in the last N days. Ignored if 'Posted from' or 'Posted to' is set. Use 0 for no date limit (the whole extract is then scanned, about 215 MB).",
            "default": 7
          },
          "dateFrom": {
            "title": "Posted from",
            "type": "string",
            "description": "Earliest posting date, format YYYY-MM-DD. Overrides 'last N days'."
          },
          "dateTo": {
            "title": "Posted to",
            "type": "string",
            "description": "Latest posting date (inclusive), format YYYY-MM-DD."
          },
          "openForResponseOnly": {
            "title": "Only notices still open for response",
            "type": "boolean",
            "description": "Exclude notices whose response deadline has already passed. Notices without a deadline are kept.",
            "default": false
          },
          "deadlineFrom": {
            "title": "Response deadline from",
            "type": "string",
            "description": "Earliest response deadline, YYYY-MM-DD. Notices without a deadline are excluded when set."
          },
          "deadlineTo": {
            "title": "Response deadline to",
            "type": "string",
            "description": "Latest response deadline (inclusive), YYYY-MM-DD."
          },
          "minAwardValue": {
            "title": "Minimum award amount (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only award notices with an awarded amount at or above this value. Setting an award filter excludes all non-award notices."
          },
          "maxAwardValue": {
            "title": "Maximum award amount (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only award notices with an awarded amount at or below this value."
          },
          "includeContacts": {
            "title": "Include contracting-officer contacts",
            "type": "boolean",
            "description": "Add the primary and secondary point of contact (title, name, e-mail, phone) exactly as published in the official notice. Off by default; these are named public officials, use them for business correspondence about the notice only.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of notices to return, newest first. You are charged per result, so keep this low while testing.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}