{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities Scraper — Federal Tenders",
    "description": "SAM.gov scraper for US government contracts and federal tenders: solicitations, RFPs, sources sought and awards from SAM.gov's public data file. Filter by keyword, NAICS, PSC, set-aside, agency, state and deadline; flag new since your last run. No login, no API key.",
    "version": "0.1",
    "x-build-id": "EjVSrPR143rZQFikJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/northbell~sam-gov-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-northbell-sam-gov-contract-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/northbell~sam-gov-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-northbell-sam-gov-contract-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/northbell~sam-gov-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-northbell-sam-gov-contract-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 (optional)",
            "type": "array",
            "description": "Words to find in the notice title, solicitation number or description. One per line; a notice that matches any line is returned. Words on one line must all appear. Case does not matter. Leave empty to skip.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (optional)",
            "type": "array",
            "description": "Only notices under these industry codes, one per line, 2 to 6 digits. A shorter code includes everything under it: 5415 covers 541511, 541512, 541513 and 541519 (computer services). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "Product Service Codes (optional)",
            "type": "array",
            "description": "Only notices under these Product Service Codes (PSC, the 'classification code'), one per line, matched by prefix: DA covers DA01 and DA10 (IT and telecom services), 70 covers IT equipment, R4 professional services. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-aside codes (optional)",
            "type": "array",
            "description": "Only notices reserved for these kinds of businesses, one code per line: SBA total small business, SBP partial small business, 8A and 8AN 8(a), HZC and HZS HUBZone, SDVOSBC and SDVOSBS service-disabled veteran-owned, WOSB and WOSBSS women-owned, EDWOSB and EDWOSBSS economically disadvantaged women-owned, VSA and VSS veteran-owned, IEE and ISBEE Indian economic enterprise, BICIV Buy Indian, NONE notices marked as not set aside. Leave empty for all, including notices with no set-aside.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types (optional)",
            "type": "array",
            "description": "Only these kinds of notices, one per line: solicitation, combined (combined synopsis/solicitation), presolicitation, sources-sought, special-notice, award, justification, intent-to-bundle, surplus-sale. An amendment counts as the type it amends. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies (optional)",
            "type": "array",
            "description": "Only notices whose department, sub-tier agency, office or office code contains this text, one per line, case does not matter: \"veterans affairs\", \"army\", \"NASA\", \"FA8571\". Leave empty for all agencies.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place of performance states (optional)",
            "type": "array",
            "description": "Only notices whose place of performance is in these US states, one two-letter code per line (VA, TX, DC…). Notices that give no place of performance are left out when you set this. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only notices posted in the last N days, counted back from the newest day in SAM.gov's data file (the file is rebuilt once a day with the notices up to the day before). Each week back is about 20 MB of the file and a few seconds. Run it daily with 2 or 3 and \"Only new\" below for a cheap feed of fresh notices.",
            "default": 7
          },
          "respondsWithinDays": {
            "title": "Response due within (days, optional)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only notices whose response deadline falls between now and N days from now. Notices with no deadline (most award notices) are left out when you set this. Leave empty to skip."
          },
          "activeOnly": {
            "title": "Active notices only",
            "type": "boolean",
            "description": "On: skip notices SAM.gov marks as inactive (archived or cancelled). Off: return them too.",
            "default": true
          },
          "includeDescription": {
            "title": "Include the description",
            "type": "boolean",
            "description": "On: each row carries the notice's full description text (email addresses and phone numbers removed). Off: smaller rows without it. The price is the same.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many notices to return, newest day first. You pay per notice returned. With \"Only new\" the Actor reads past the notices you have already seen until it has found this many new ones.",
            "default": 100
          },
          "output": {
            "title": "What to return",
            "enum": [
              "all",
              "new"
            ],
            "type": "string",
            "description": "With \"Only new\", notices you already got in an earlier run of the same search are skipped and not charged. The first run returns everything, because there is nothing to compare with yet.",
            "default": "all"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}