# Find Federal Contracts and RFP Notices on SAM.gov

**Use case:** 

Search public SAM.gov contract notices across industries using keywords, NAICS and notice types. Collect solicitation details, response deadlines, set-asides, published government contacts and attachment links. The saved example requests three cybersecurity notices; change the keywords or NAICS for your market.

## Input

```json
{
  "keywords": "cybersecurity",
  "noticeTypes": [
    "o",
    "p",
    "k",
    "r"
  ],
  "onlySmallBusinessSetAside": false,
  "fetchFullDetailsAndContacts": true,
  "maxItems": 3,
  "timeoutSecs": 15,
  "maxConcurrency": 25
}
```

## Output

```json
{
  "title": {
    "label": "Opportunity title",
    "format": "string"
  },
  "status": {
    "label": "Extraction status",
    "format": "string"
  },
  "solicitationNumber": {
    "label": "Solicitation number",
    "format": "string"
  },
  "noticeType": {
    "label": "Notice type",
    "format": "string"
  },
  "departmentName": {
    "label": "Department",
    "format": "string"
  },
  "agencyName": {
    "label": "Agency",
    "format": "string"
  },
  "naicsCode": {
    "label": "Primary NAICS code",
    "format": "string"
  },
  "setAsideDescription": {
    "label": "Set-aside",
    "format": "string"
  },
  "responseDeadline": {
    "label": "Response deadline",
    "format": "string"
  },
  "daysUntilDeadline": {
    "label": "Days remaining",
    "format": "integer"
  },
  "primaryPocName": {
    "label": "Primary contact",
    "format": "string"
  },
  "primaryPocEmail": {
    "label": "Primary email",
    "format": "string"
  },
  "primaryPocPhone": {
    "label": "Primary phone",
    "format": "string"
  },
  "secondaryPocEmail": {
    "label": "Secondary email",
    "format": "string"
  },
  "placeOfPerformanceCity": {
    "label": "Performance city",
    "format": "string"
  },
  "placeOfPerformanceState": {
    "label": "Performance state",
    "format": "string"
  },
  "attachmentUrls": {
    "label": "Attachment URLs",
    "format": "array"
  },
  "postedDate": {
    "label": "Posted date",
    "format": "string"
  },
  "samUrl": {
    "label": "View on SAM.gov",
    "format": "string"
  },
  "opportunityId": {
    "label": "Opportunity ID",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Extracted at",
    "format": "string"
  },
  "errorMessage": {
    "label": "Error details",
    "format": "string"
  }
}
```

## How it works

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

The Sam Gov Federal Contracts Rfp Opportunities Scraper Actor is ready to run with the inputs already set for "Find Federal Contracts and RFP Notices on SAM.gov". [Sign up or log in](https://console.apify.com/create-task-from-example/9k6NZuNo7SdcBMV2p) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find Federal Contracts and RFP Notices on SAM.gov" task

The Sam Gov Federal Contracts Rfp Opportunities Scraper Actor will start running based on the input automatically. You can also change all the input fields, like search keywords, notice types, and more, to match your specific use case.

### 3. Receive the "Find Federal Contracts and RFP Notices on SAM.gov" 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 opportunity title, extraction status, solicitation number, 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 "Find Federal Contracts and RFP Notices on SAM.gov" task via API](https://apify.com/arezdev/sam-gov-federal-contracts-rfp-opportunities-scraper.md).

## FAQ

### Can I search other industries and notice types?

Yes. Change the cybersecurity keyword or set a NAICS code. The sample includes Solicitations (o), Presolicitations (p), Combined Synopsis/Solicitations (k) and Sources Sought (r). Other supported notice types are selectable.

### Can I focus on small-business opportunities?

Enable the small-business set-aside filter. The Actor checks supported published classifications, including small business, 8(a), HUBZone, SDVOSB, WOSB and other supported programs.

### Does an active notice always have a future deadline?

No. The task follows SAM.gov's active flag, and an active notice can have a past response deadline. Use the deadline and days-until-deadline fields to qualify notices for your workflow.

### Are attachments downloaded and contacts always available?

The task lists current public attachment URLs without downloading their contents. Restricted or unavailable resources are omitted. Contacts are returned only when published, and some public links may later require a session or become unavailable.

### Do I need a SAM.gov API key?

This Actor uses public SAM.gov website endpoints and does not require an input API key. Keep detail enrichment enabled to request published contacts, classifications, performance locations and attachment links.

## About this Actor

This example demonstrates how to use [Sam Gov Federal Contracts Rfp Opportunities Scraper](https://apify.com/arezdev/sam-gov-federal-contracts-rfp-opportunities-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/arezdev/sam-gov-federal-contracts-rfp-opportunities-scraper.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/arezdev/sam-gov-federal-contracts-rfp-opportunities-scraper.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`).
