{
  "openapi": "3.0.1",
  "info": {
    "title": "Small Business Set-Aside Contracts: SAM.gov 8(a), HUBZone, WOSB",
    "description": "Federal contracts set aside for small business (8(a), HUBZone, SDVOSB, WOSB, EDWOSB, total SB) from SAM.gov, with response deadlines, NAICS, agency and place of performance. No API key needed. Optional set-aside award winners from USAspending.gov.",
    "version": "0.1",
    "x-build-id": "6iVyJocShRAFaS4L3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/implementable_antler~small-business-setaside-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-implementable_antler-small-business-setaside-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/implementable_antler~small-business-setaside-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-implementable_antler-small-business-setaside-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/implementable_antler~small-business-setaside-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-implementable_antler-small-business-setaside-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": {
          "feeds": {
            "title": "Feeds",
            "type": "array",
            "description": "Open opportunities come from SAM.gov. Awards are contracts already awarded under a set-aside (who won, how much, period-of-performance end date); they are not open solicitations.",
            "items": {
              "type": "string",
              "enum": [
                "opportunities",
                "awards"
              ],
              "enumTitles": [
                "Open opportunities (SAM.gov notices with response deadline)",
                "Set-aside contract awards (USAspending.gov, award winners)"
              ]
            },
            "default": [
              "opportunities"
            ]
          },
          "setAsideTypes": {
            "title": "Set-aside types",
            "type": "array",
            "description": "SAM.gov set-aside codes to include. Empty = all small-business set-aside codes. Notices with no set-aside are never returned.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "ISBEE",
                "IEE",
                "BICiv",
                "LAS"
              ],
              "enumTitles": [
                "SBA: Total Small Business",
                "SBP: Partial Small Business",
                "8A: 8(a) Set-Aside",
                "8AN: 8(a) Sole Source",
                "HZC: HUBZone Set-Aside",
                "HZS: HUBZone Sole Source",
                "SDVOSBC: Service-Disabled Veteran-Owned Set-Aside",
                "SDVOSBS: SDVOSB Sole Source",
                "WOSB: Women-Owned Small Business",
                "WOSBSS: WOSB Sole Source",
                "EDWOSB: Economically Disadvantaged WOSB",
                "EDWOSBSS: EDWOSB Sole Source",
                "VSA: Veteran-Owned (VA)",
                "VSS: Veteran-Owned Sole Source (VA)",
                "ISBEE: Indian Small Business Economic Enterprise",
                "IEE: Indian Economic Enterprise",
                "BICiv: Buy Indian (IHS)",
                "LAS: Local Area Set-Aside"
              ]
            },
            "default": [
              "SBA",
              "SBP",
              "8A",
              "8AN",
              "HZC",
              "HZS",
              "SDVOSBC",
              "SDVOSBS",
              "WOSB",
              "WOSBSS",
              "EDWOSB",
              "EDWOSBSS",
              "VSA",
              "VSS",
              "ISBEE",
              "IEE",
              "BICiv",
              "LAS"
            ]
          },
          "naics": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Optional. 2-6 digit NAICS codes; shorter codes match as prefixes (e.g. 2362 = all commercial building construction, 54 = all professional services).",
            "items": {
              "type": "string"
            }
          },
          "agency": {
            "title": "Agency (optional)",
            "type": "string",
            "description": "Department or sub-agency name, e.g. Department of Defense, Veterans Affairs, Army, Navy, GSA. All words must appear in the department or sub-tier name."
          },
          "dodOnly": {
            "title": "Department of Defense only",
            "type": "boolean",
            "description": "Shortcut for Agency = Department of Defense (ignored if Agency is set).",
            "default": false
          },
          "states": {
            "title": "Place of performance states (optional)",
            "type": "array",
            "description": "Two-letter state codes, e.g. VA, MD, TX.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword (optional)",
            "type": "string",
            "description": "Case-insensitive match on title or description, e.g. janitorial, cybersecurity, roofing."
          },
          "since": {
            "title": "Posted since",
            "type": "string",
            "description": "YYYY-MM-DD. Opportunities posted (or awards made) on or after this date. Default: 30 days ago."
          },
          "openOnly": {
            "title": "Open only (deadline not passed)",
            "type": "boolean",
            "description": "Drop opportunities whose response deadline is before today. Notices without a deadline (e.g. some sources-sought and special notices) are kept.",
            "default": true
          },
          "noticeTypes": {
            "title": "Notice types (opportunities)",
            "type": "array",
            "description": "SAM.gov notice types to include. Default: solicitations, presolicitations, sources sought, special notices and amendments (no award notices).",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Modification/Amendment/Cancel",
                "Award Notice",
                "Justification",
                "Justification and Approval (J&A)",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle"
              ]
            },
            "default": [
              "Solicitation",
              "Combined Synopsis/Solicitation",
              "Presolicitation",
              "Sources Sought",
              "Special Notice",
              "Modification/Amendment/Cancel"
            ]
          },
          "latestPerSolicitation": {
            "title": "One row per solicitation",
            "type": "boolean",
            "description": "SAM.gov posts each amendment as a new notice. Keep only the newest notice per agency + solicitation number.",
            "default": true
          },
          "newAwardsOnly": {
            "title": "New awards only (awards feed)",
            "type": "boolean",
            "description": "Only awards whose base award date is in the window (skips modifications to older contracts).",
            "default": true
          },
          "maxItems": {
            "title": "Max items per feed",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum records per feed, newest first.",
            "default": 200
          },
          "samApiKey": {
            "title": "SAM.gov API key (optional)",
            "type": "string",
            "description": "Optional. Your own SAM.gov public API key queries the live Get Opportunities API instead of the nightly public extract. Personal keys may be limited to ~10 requests/day; the Actor uses at most 10 and falls back to the extract on any error. Never logged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}