{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities — Federal RFPs, Bids & Awards",
    "description": "Find US federal contract opportunities from SAM.gov's official daily data: RFPs, solicitations, sources sought and awards. Filter by keyword, NAICS, PSC, small-business set-aside, agency, state and deadline. Clean JSON with contacts and full text. Monitor mode. No login, no API key.",
    "version": "1.0",
    "x-build-id": "qlCZJoXK9j0yuu4P4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/il-open-data~sam-gov-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-il-open-data-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/il-open-data~sam-gov-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-il-open-data-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/il-open-data~sam-gov-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-il-open-data-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": "Match ANY of these words or phrases in the title, solicitation number or full description (case-insensitive, whole words: 'cloud' matches 'cloud-based' but not 'cloudy'). Leave empty to get everything that passes the other filters.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices that contain any of these words (e.g. 'brand name', 'sole source').",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (prefixes)",
            "type": "array",
            "description": "Industry codes. A prefix matches all codes under it: 5415 = computer systems design, 541511 = custom programming, 236 = building construction, 5616 = security services, 4234 = medical equipment wholesale.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC / classification codes (prefixes)",
            "type": "array",
            "description": "Product Service Codes, e.g. D3 or DA = IT services, R4 = professional support, S2 = housekeeping, Y1 = construction of structures, 65 = medical equipment.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Leave empty for all types. 'Solicitation' and 'Combined Synopsis/Solicitation' are the ones you can bid on now; 'Sources Sought' and 'Presolicitation' are early signals; 'Award Notice' shows who won and for how much.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Intent to Bundle Requirements (DoD-Funded)",
                "Sale of Surplus Property"
              ]
            }
          },
          "setAside": {
            "title": "Set-aside",
            "type": "array",
            "description": "Only notices reserved for these business types. Pick 'Any small-business set-aside' to see everything a small business can compete for.",
            "items": {
              "type": "string",
              "enum": [
                "ANY_SMALL_BUSINESS",
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "ISBEE",
                "IEE",
                "BICiv",
                "LAS",
                "NONE"
              ],
              "enumTitles": [
                "Any small-business set-aside (all codes below)",
                "Total Small Business Set-Aside",
                "Partial Small Business Set-Aside",
                "8(a) Set-Aside",
                "8(a) Sole Source",
                "HUBZone Set-Aside",
                "HUBZone Sole Source",
                "Service-Disabled Veteran-Owned (SDVOSB) Set-Aside",
                "SDVOSB Sole Source",
                "Women-Owned Small Business (WOSB) Set-Aside",
                "WOSB Sole Source",
                "Economically Disadvantaged WOSB Set-Aside",
                "EDWOSB Sole Source",
                "Veteran-Owned Set-Aside (VA)",
                "Veteran-Owned Sole Source (VA)",
                "Indian Small Business Economic Enterprise",
                "Indian Economic Enterprise",
                "Buy Indian (IHS)",
                "Local Area Set-Aside",
                "No set-aside (full and open)"
              ]
            }
          },
          "agencies": {
            "title": "Agencies (contains)",
            "type": "array",
            "description": "Match any part of the department, sub-agency or office name, e.g. 'VETERANS AFFAIRS', 'NAVY', 'NASA', 'HOMELAND SECURITY'.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place of performance — US states",
            "type": "array",
            "description": "Two-letter state codes, e.g. VA, MD, DC, TX, CA. Matches the place of performance (or the contracting office's state when the notice has none).",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Look at notices posted in the last N days. SAM.gov publishes ~1,300 notices per day; 7–30 days is typical. Larger values read more of the file and take longer.",
            "default": 7
          },
          "onlyOpen": {
            "title": "Only open (deadline in the future)",
            "type": "boolean",
            "description": "Keep only notices whose response deadline hasn't passed. Automatically ignored when you select only Award / Justification notice types (they have no deadline).",
            "default": true
          },
          "minDaysLeft": {
            "title": "Minimum days left to respond",
            "minimum": 0,
            "type": "integer",
            "description": "Skip notices that close sooner than this, so you only see ones you have time to bid on (e.g. 7).",
            "default": 0
          },
          "minAwardAmount": {
            "title": "Minimum award amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "For Award Notices: only awards at or above this dollar amount. 0 = no filter.",
            "default": 0
          },
          "includeDescription": {
            "title": "Include full description",
            "type": "boolean",
            "description": "The full notice text, whitespace-cleaned — ready for search, alerts or an LLM.",
            "default": true
          },
          "descriptionMaxChars": {
            "title": "Description max characters",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate long descriptions. 0 = no limit.",
            "default": 4000
          },
          "includeContacts": {
            "title": "Include contracting officer contacts",
            "type": "boolean",
            "description": "The government point of contact published on the notice (official work name, email, phone).",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (monitor mode)",
            "type": "boolean",
            "description": "Remember which notices this exact filter set already returned and skip them next time. Schedule the actor daily and get only fresh opportunities.",
            "default": false
          },
          "mergeAmendments": {
            "title": "Merge amendments",
            "type": "boolean",
            "description": "SAM.gov posts every amendment as a separate notice. With this on you get one row per solicitation — the latest version — with a count in versions_in_window.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many matching notices (newest first). You pay per result, and the actor never returns more than your 'max cost per run' allows.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}