# SAM.gov IT Services Contract Opportunities (Last 7 Days)

**Use case:** 

Get US federal IT services contract opportunities (NAICS 541512, computer systems design) posted on SAM.gov in the last 7 days: solicitations, presolicitations and sources sought with agency, set-aside, deadline and links. Requires your own free SAM.gov Public API Key: replace the placeholder in the samGovApiKey field before running.

## Input

```json
{
  "samGovApiKey": "<YOUR_SECRET>",
  "noticeTypes": [
    "o",
    "k",
    "p",
    "r"
  ],
  "naicsCodes": [
    "541512"
  ],
  "postedWithinDays": 7,
  "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 IT Services Contract Opportunities (Last 7 Days)". [Sign up or log in](https://console.apify.com/create-task-from-example/HWkXQjY2JLb61U7pq) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "SAM.gov IT Services Contract Opportunities (Last 7 Days)" 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 IT Services Contract Opportunities (Last 7 Days)" 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 IT Services Contract Opportunities (Last 7 Days)" 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.

### How much does a run cost?

$0.0025 per notice written ($2.50 per 1,000). This task is capped at 25 notices and 1 SAM.gov API call, so it also protects your daily key quota.

## 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`).
