# DIBBS RFQ Scraper (`codingfrontend/dibbs-rfq-scraper`) Actor

Extracts publicly visible DLA DIBBS RFQ/search records, solicitation metadata, document links, and best-effort PDF text from official pages.

- **URL**: https://apify.com/codingfrontend/dibbs-rfq-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

### DIBBS RFQ Scraper

This Actor reads public DLA Internet Bid Board System (DIBBS) RFQ search and detail pages, normalizes solicitation identity, NSN/FSC, dates, status, and official document links, and can perform bounded best-effort text extraction from public PDF bytes.

Official source: [DIBBS](https://www.dibbs.bsm.dla.mil/RFQ/)

### Input

```json
{
  "searchUrl": "https://www.dibbs.bsm.dla.mil/RFQ/",
  "maxItems": 20,
  "includeClosed": false,
  "includeDetails": true,
  "extractPdfText": false,
  "timeoutSecs": 30,
  "maxRetries": 1,
  "maxResponseBytes": 8000000
}
```

Search URLs and generated filter URLs are bounded to the official DIBBS host. An explicitly invalid `searchUrl` is diagnosed without falling back to an unrelated request. `maxItems` limits normal RFQ rows; diagnostics do not consume that limit. The Actor does not submit bids, log in, access technical-data portals, accept government consent banners, solve CAPTCHA/Cloudflare challenges, or substitute SAM.gov or other procurement data.

`proxyConfiguration` optionally routes public HTML and PDF requests through Apify Proxy. `OUTPUT_SUMMARY` reports `proxyConfigured`, `proxyUsed`, `proxyRequests`, `proxyStatus`, and transport counts truthfully; proxy access boundaries remain explicit diagnostics.

### Dataset output

Normal rows use `found: true`, `category: "rfq"`, solicitation/NSN/FSC fields, source-backed dates and status, canonical/detail URL, document links, optional literal PDF text, and `scrapedAt`. Detail and PDF enrichment is bounded; protected or non-PDF responses are reported as separate diagnostics while the base RFQ row is retained. Normal rows intentionally omit runtime discriminators, record IDs, status/data-availability flags, extraction and transport labels, request metadata, counters, and debug or validation wrappers.

Diagnostics use `recordType: "diagnostic"` with `found: false`, `diagnosticType`, stable `recordId`, source/domain, `errorCode`, bounded error text, transport, and timestamp. The `url` field remains as a diagnostic compatibility alias. Run metrics are written to both `OUTPUT` and `OUTPUT_SUMMARY`, including search/detail/PDF request and failure counts.

Example RFQ row:

```json
{
  "category": "rfq",
  "solicitationNumber": "SPE7M1-26-T-1234",
  "nsn": "1234-5678901",
  "statusLabel": "open",
  "detailUrl": "https://www.dibbs.bsm.dla.mil/RFQ/RFQRec.aspx?RFQ=SPE7M1-26-T-1234",
  "sourceUrl": "https://www.dibbs.bsm.dla.mil/RFQ/",
  "scrapedAt": "2026-01-01T00:00:00.000Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Local development

```bash
npm install
apify validate-schema
apify run --purge --input-file qa-local/input.json
npm test
npm run check
npm run validate -- path\to\dataset
```

For deterministic local QA, pass `fixtureHtml` with a matching `fixtureUrl`; fixture transport is retained in run metrics and is not copied into normal RFQ rows. If the official DIBBS host presents its notice/consent boundary or is otherwise unavailable, the Actor emits a diagnostic and does not fabricate RFQs.

# Actor input Schema

## `searchUrl` (type: `string`):

Optional official DIBBS RFQ search URL copied from the public portal. When supplied, it is used as-is after host validation.

## `nsn` (type: `string`):

Optional National Stock Number or part number filter.

## `fsc` (type: `string`):

Optional FSC filter, normally two to four digits.

## `cage` (type: `string`):

Optional approved-source CAGE code filter.

## `solicitationNumber` (type: `string`):

Optional exact or partial RFQ solicitation number.

## `keyword` (type: `string`):

Optional keyword matched against visible solicitation text after retrieval.

## `postedAfter` (type: `string`):

Optional ISO date filter applied to normalized posted dates.

## `postedBefore` (type: `string`):

Optional ISO date filter applied to normalized posted dates.

## `includeClosed` (type: `boolean`):

Keep records that appear closed or past due when enabled.

## `maxItems` (type: `integer`):

Maximum normalized RFQ records emitted.

## `includeDetails` (type: `boolean`):

Fetch public detail pages linked from the search results when available.

## `extractPdfText` (type: `boolean`):

Fetch linked public PDFs and extract readable literal text when possible; binary or protected documents are reported, not guessed.

## `maxPdfBytes` (type: `integer`):

Maximum binary PDF size retained for best-effort text extraction.

## `timeoutSecs` (type: `integer`):

Timeout for each official DIBBS page/document request.

## `maxRetries` (type: `integer`):

Bounded retries for transient official responses.

## `userAgent` (type: `string`):

Optional transparent HTTP user-agent string.

## `maxResponseBytes` (type: `integer`):

Maximum official HTML response size.

## `fixtureHtml` (type: `string`):

Optional deterministic fixture used only for local validation.

## `fixtureUrl` (type: `string`):

Official DIBBS URL matched to fixtureHtml.

## `fixturePath` (type: `string`):

Compatibility path to a local deterministic fixture.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy configuration for public DIBBS requests. The run summary reports whether a proxy was configured and actually used.

## Actor input object example

```json
{
  "includeClosed": false,
  "maxItems": 20,
  "includeDetails": true,
  "extractPdfText": false,
  "maxPdfBytes": 5000000,
  "timeoutSecs": 30,
  "maxRetries": 1,
  "maxResponseBytes": 8000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

## `runSummaryAlias` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/dibbs-rfq-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/dibbs-rfq-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call codingfrontend/dibbs-rfq-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codingfrontend/dibbs-rfq-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7TgONoCzuY7mESjJm/builds/xdhigZc8I2dUAxiWg/openapi.json
