# SAM.gov Small Business Set-Aside Construction Contracts

**Use case:** 

Find US federal construction opportunities (NAICS 236220, commercial building construction) reserved as total small business set-asides on SAM.gov, posted in the last 14 days. Requires your own free SAM.gov Public API Key: replace the placeholder in the samGovApiKey field.

## Input

```json
{
  "samGovApiKey": "<YOUR_SECRET>",
  "noticeTypes": [
    "o",
    "k",
    "p",
    "r"
  ],
  "naicsCodes": [
    "236220"
  ],
  "setAsideTypes": [
    "SBA"
  ],
  "postedWithinDays": 14,
  "activeOnly": true,
  "includeResourceLinks": true,
  "maxItems": 25,
  "maxApiCalls": 1
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "noticeType": {
    "label": "Notice type",
    "format": "string"
  },
  "postedDate": {
    "label": "Posted date",
    "format": "string"
  },
  "responseDeadline": {
    "label": "Response deadline",
    "format": "string"
  },
  "naicsCode": {
    "label": "NAICS code",
    "format": "string"
  },
  "pscCode": {
    "label": "PSC / classification code",
    "format": "string"
  },
  "setAsideCode": {
    "label": "Set-aside code",
    "format": "string"
  },
  "department": {
    "label": "Department",
    "format": "string"
  },
  "subTier": {
    "label": "Sub-tier agency",
    "format": "string"
  },
  "solicitationNumber": {
    "label": "Solicitation number",
    "format": "string"
  },
  "uiLink": {
    "label": "SAM.gov page",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The SAM.gov Contract Opportunities & RFPs (Official API) Actor is ready to run with the inputs already set for "SAM.gov Small Business Set-Aside Construction Contracts". [Sign up or log in](https://console.apify.com/create-task-from-example/w4gdiybyhDEbGdEmO) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "SAM.gov Small Business Set-Aside Construction Contracts" task

The SAM.gov Contract Opportunities & RFPs (Official API) Actor will start running based on the input automatically. You can also change all the input fields, like notice types, NAICS codes, and more, to match your specific use case.

### 3. Receive the "SAM.gov Small Business Set-Aside Construction Contracts" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as title, notice type, posted date, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "SAM.gov Small Business Set-Aside Construction Contracts" task via API](https://apify.com/immemorial_damask/sam-gov-contract-opportunities.md).

## FAQ

### Do I need my own SAM.gov API key?

Yes. The task has a placeholder, not a key. Replace it in samGovApiKey with your free Public API Key from sam.gov > Account Details. api.data.gov keys do not work. Keys are stored encrypted.

### Which other set-asides can I use?

8(a) (8A), HUBZone (HZC), SDVOSB (SDVOSBC), WOSB and more. One set-aside is filtered by SAM.gov; several are matched on our side.

## About this Actor

This example demonstrates how to use [SAM.gov Contract Opportunities & RFPs (Official API)](https://apify.com/immemorial_damask/sam-gov-contract-opportunities.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/immemorial_damask/sam-gov-contract-opportunities.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/immemorial_damask/sam-gov-contract-opportunities.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
