{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities: Federal Bids & Set-Asides",
    "description": "New U.S. federal bids from SAM.gov's official daily extract. Filter by NAICS, set-aside (SBA, 8(a), HUBZone, SDVOSB, WOSB), agency, state and keyword. Daily new-bid alerts. No API key.",
    "version": "0.1",
    "x-build-id": "g1yG0E5BqWl6FQc8M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/halos_ai_main~sam-gov-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-halos_ai_main-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/halos_ai_main~sam-gov-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-halos_ai_main-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/halos_ai_main~sam-gov-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-halos_ai_main-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",
            "type": "array",
            "description": "Matches if ANY keyword appears in the notice title or description (case-insensitive). Example: cybersecurity, janitorial, HVAC. Leave empty to match everything.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (prefix match)",
            "type": "array",
            "description": "Full or partial NAICS codes. 5415 matches 541511, 541512, 541519 and so on. Leave empty for all industries.",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-asides",
            "type": "array",
            "description": "Only notices reserved for these socio-economic programs. Leave empty to include unrestricted (full and open) notices too.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "IEE",
                "ISBEE",
                "LAS"
              ],
              "enumTitles": [
                "SBA: Total Small Business Set-Aside (FAR 19.5)",
                "SBP: Partial Small Business Set-Aside",
                "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 (SDVOSB) Set-Aside",
                "SDVOSBS: SDVOSB Sole Source",
                "WOSB: Women-Owned Small Business (WOSB) Set-Aside",
                "WOSBSS: WOSB Sole Source",
                "EDWOSB: Economically Disadvantaged WOSB (EDWOSB) Set-Aside",
                "EDWOSBSS: EDWOSB Sole Source",
                "VSA: Veteran-Owned Small Business Set-Aside (VA)",
                "VSS: Veteran-Owned Small Business Sole Source (VA)",
                "IEE: Indian Economic Enterprise Set-Aside",
                "ISBEE: Indian Small Business Economic Enterprise Set-Aside",
                "LAS: Local Area Set-Aside"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Only these notice types (substring match). Leave empty for all biddable types. If you pick Award Notice or Justification, award notices are included even when 'Exclude awards' is on.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Sale of Surplus Property",
                "Intent to Bundle Requirements (DoD-Funded)"
              ]
            }
          },
          "excludeAwards": {
            "title": "Exclude award notices (biddable only)",
            "type": "boolean",
            "description": "On by default. Drops Award Notices and Justifications (J&A), which describe contracts that are already awarded and can't be bid on. Turn it off to track who won what and for how much.",
            "default": true
          },
          "agencies": {
            "title": "Agency / department contains",
            "type": "array",
            "description": "Substring match on department, sub-tier or office name, e.g. VETERANS AFFAIRS, NAVY, NASA. Leave empty for all agencies.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "Two-letter place-of-performance state codes. Notices without a place of performance are excluded when this is set.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "PR",
                "GU",
                "VI",
                "AS",
                "MP"
              ],
              "enumTitles": [
                "AL: Alabama",
                "AK: Alaska",
                "AZ: Arizona",
                "AR: Arkansas",
                "CA: California",
                "CO: Colorado",
                "CT: Connecticut",
                "DE: Delaware",
                "DC: District of Columbia",
                "FL: Florida",
                "GA: Georgia",
                "HI: Hawaii",
                "ID: Idaho",
                "IL: Illinois",
                "IN: Indiana",
                "IA: Iowa",
                "KS: Kansas",
                "KY: Kentucky",
                "LA: Louisiana",
                "ME: Maine",
                "MD: Maryland",
                "MA: Massachusetts",
                "MI: Michigan",
                "MN: Minnesota",
                "MS: Mississippi",
                "MO: Missouri",
                "MT: Montana",
                "NE: Nebraska",
                "NV: Nevada",
                "NH: New Hampshire",
                "NJ: New Jersey",
                "NM: New Mexico",
                "NY: New York",
                "NC: North Carolina",
                "ND: North Dakota",
                "OH: Ohio",
                "OK: Oklahoma",
                "OR: Oregon",
                "PA: Pennsylvania",
                "RI: Rhode Island",
                "SC: South Carolina",
                "SD: South Dakota",
                "TN: Tennessee",
                "TX: Texas",
                "UT: Utah",
                "VT: Vermont",
                "VA: Virginia",
                "WA: Washington",
                "WV: West Virginia",
                "WI: Wisconsin",
                "WY: Wyoming",
                "PR: Puerto Rico",
                "GU: Guam",
                "VI: U.S. Virgin Islands",
                "AS: American Samoa",
                "MP: Northern Mariana Islands"
              ]
            }
          },
          "postedWithinDays": {
            "title": "Posted within last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices posted in the last N days. Use 0 to turn the posted-date filter off (searches every active notice).",
            "default": 7
          },
          "openOnly": {
            "title": "Only opportunities still open",
            "type": "boolean",
            "description": "Drops notices whose response deadline has already passed. Notices with no deadline are kept.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (monitoring mode)",
            "type": "boolean",
            "description": "Remembers the notice IDs already returned for this exact filter set and outputs only new ones. Turn it on for a daily schedule so you get each bid once.",
            "default": false
          },
          "includeDescription": {
            "title": "Include description text",
            "type": "boolean",
            "description": "Adds the notice description (scope of work summary) to each result. Turn it off for smaller, faster exports.",
            "default": true
          },
          "descriptionMaxChars": {
            "title": "Max description characters",
            "minimum": 0,
            "type": "integer",
            "description": "Trims each description to this many characters. 0 = no limit (some descriptions are very long).",
            "default": 2000
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stops after this many matching notices. You're billed per result, so this also caps the cost of a run.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}