# The Blue Book (`moving_beacon-owner1/the-blue-book`) Actor

An Apify actor for extracting commercial construction bidding projects, solicitations, valuations, trade scopes, and timeline dates from The Blue Book Building & Construction Network / Construction.com.

- **URL**: https://apify.com/moving_beacon-owner1/the-blue-book.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## The Blue Book / Construction.com Project Scraper

An Apify actor for extracting commercial construction bidding projects, solicitations, valuations, trade scopes, and timeline dates from [The Blue Book Building & Construction Network / Construction.com](https://www.construction.com).

### Overview

The Blue Book Building & Construction Network is the largest and most active network in the commercial construction industry. This actor queries the public project search endpoint to retrieve up-to-date RFP announcements, planning documents, bidding stages, and contractor requirements across North America.

### Key Features

- **Multi-Filter Support**: Filter by keyword query, trade scope, project type, action stage, state, county, and published dates.
- **Rich Project Metadata**: Extracts project identifier (Dodge Report number `dr`), project name, estimated valuation, bid dates, and full address.
- **Scope & Trades Breakdown**: Captures required subcontractor trades (e.g., HVAC, Electrical, Roofing) and project owner classification (e.g., Private, Municipal).
- **Pagination & Limits**: Automated pagination handling with deduplication and configurable result caps.
- **Proxy Support**: Full integration with Apify proxy configuration (Datacenter or Residential).

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | string | `""` | Free-text search query across project names and descriptions (e.g., `"hospital"`, `"elementary school"`). |
| `trade` | string | `""` | Filter by specific trade discipline (e.g., `"Electrical"`, `"HVAC"`, `"Plumbing"`). |
| `city` | string | `""` | Filter projects by city name. |
| `state` | array | `null` | Array of US state/territory codes (e.g., `["CA", "TX", "NY"]`). |
| `county` | array | `null` | Array of county names. |
| `country` | array | `["USA"]` | Country filter list (e.g., `["USA"]`). |
| `projectType` | array | `null` | Filter by project category (e.g., `["Commercial", "Educational", "Medical"]`). |
| `actionStage` | array | `null` | Filter by bidding phase (e.g., `["Bidding", "Planning", "Pre-Design"]`). |
| `published` | array | `null` | Date filter for publication window. |
| `pages` | integer | `2` | Number of 20-hit pages to request (1 to 100). |
| `limit` | integer | `40` | Maximum number of projects to return. |
| `delay` | number | `0.7` | Delay between consecutive page requests in seconds. |
| `timeout` | number | `30` | HTTP request timeout in seconds. |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Apify proxy configuration. |

### Example Input

```json
{
    "query": "elementary school",
    "state": ["CA", "NV"],
    "actionStage": ["Bidding"],
    "pages": 3,
    "limit": 50,
    "delay": 0.8,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
}
```

### Output Dataset Fields

Each item delivered to the default dataset contains the following attributes:

| Field | Type | Description |
|---|---|---|
| `source` | string | Data source identifier (always `"construction.com"`). |
| `dr` | string | Dodge Report or Blue Book unique project reference identifier. |
| `projectName` | string | Full title or name of the construction project. |
| `actionStage` | string | Current lifecycle phase (e.g., `"Bidding"`, `"Planning"`, `"Subcontract Award"`). |
| `projectType` | string | Classification category (e.g., `"Educational"`, `"Commercial Buildings"`). |
| `valuation` | string | Estimated project valuation or budget bracket. |
| `city` | string | Project location city. |
| `county` | string | Project location county. |
| `state` | string | State or province abbreviation. |
| `country` | string | Country code or name. |
| `publishDate` | string | Date the project listing was published. |
| `bidDate` | string | Bid submission deadline or RFP closing date. |
| `addressLine1` | string | Primary street address or site location. |
| `addressLine2` | string | Secondary address or suite / suite designation. |
| `statusText` | string | Human-readable bidding status or updates. |
| `ownerType` | string | Classification of the project owner (e.g., `"Public"`, `"Private"`). |
| `trades` | string | Comma-separated list of required construction trades. |
| `scraped_at` | string | ISO 8601 UTC timestamp of extraction. |

### Example Output

```json
{
    "source": "construction.com",
    "dr": "202400123456",
    "projectName": "Oak Ridge Elementary School Modernization Phase 2",
    "actionStage": "Bidding",
    "projectType": "Educational - Elementary / Secondary",
    "valuation": "$15,000,000 - $25,000,000",
    "city": "Sacramento",
    "county": "Sacramento",
    "state": "CA",
    "country": "USA",
    "publishDate": "2024-10-15",
    "bidDate": "2024-11-20T14:00:00Z",
    "addressLine1": "4500 Oak Ridge Way",
    "addressLine2": "",
    "statusText": "General Contractor Bids Due",
    "ownerType": "Public",
    "trades": "Electrical, HVAC, Plumbing, Concrete, Drywall",
    "scraped_at": "2024-11-08T12:00:00.000000+00:00"
}
```

### How to Run

#### Via Apify Console

1. Navigate to the Actor page in your Apify Console.
2. Select your desired search filters (`query`, `state`, `trade`, etc.).
3. Choose proxy options (Apify residential/datacenter recommended).
4. Click **Start** to run the scraper and view data in the **Dataset** tab.

#### Via Apify CLI

```bash
apify run -p input.json
```

***

### Policy & Compliance

- **Terms of Service & robots.txt**: This actor accesses the public project search endpoint intended for general discovery of commercial construction solicitations. It adheres to standard search query boundaries and does not access authenticated member-only private plan rooms or non-public subcontractor bids. Users should review Construction.com and Dodge Construction Network Terms of Use before deploying large-scale data collection.
- **Rate Limiting & Polite Scraping**: Keep `delay` at or above `0.7` seconds per request to avoid overloading search services. High-frequency automated polling should be avoided in favor of scheduled delta syncs.
- **Personal Data & Privacy (GDPR, CCPA)**: The project data extracted comprises commercial procurement bids, public works notices, architectural classifications, and corporate business identities. No sensitive private personal data (PII) is intentionally extracted. Users are responsible for ensuring that downstream storage and usage of any contractor names comply with applicable data protection laws.
- **Permissible Use & Fair Use Disclaimer**: This actor is designed for competitive intelligence, market research, subcontractor opportunity discovery, and public procurement transparency. It is not affiliated with, sponsored by, or endorsed by Dodge Construction Network, The Blue Book Building & Construction Network, or Construction.com. All trademarks and brand names are property of their respective owners.

# Actor input Schema

## `query` (type: `string`):

Free-text keywords to search project names, scopes, and descriptions (e.g., 'hospital', 'school', 'HVAC').

## `trade` (type: `string`):

Filter by specific trade discipline (e.g., 'Electrical', 'Plumbing', 'HVAC', 'Painting').

## `city` (type: `string`):

Filter projects by city name.

## `state` (type: `array`):

List of US state / territory abbreviations to filter by (e.g., \['CA', 'TX', 'NY']).

## `county` (type: `array`):

List of counties to filter by.

## `country` (type: `array`):

Country filters (e.g., \['USA']).

## `projectType` (type: `array`):

Filter by project categories (e.g., \['Commercial', 'Educational', 'Medical']).

## `actionStage` (type: `array`):

Filter by project bidding stages (e.g., \['Bidding', 'Pre-Design', 'Planning']).

## `published` (type: `array`):

Date range filter for published projects.

## `pages` (type: `integer`):

Number of result pages to request (each page yields up to 20 hits).

## `limit` (type: `integer`):

Maximum number of project records to return.

## `delay` (type: `number`):

Time in seconds to wait between page requests to avoid rate limits.

## `timeout` (type: `number`):

Request timeout in seconds.

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

Proxy settings. Recommended to use Apify Residential or Datacenter proxy.

## Actor input object example

```json
{
  "query": "",
  "country": [
    "USA"
  ],
  "pages": 2,
  "limit": 40,
  "delay": 0.7,
  "timeout": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "query": "",
    "country": [
        "USA"
    ],
    "pages": 2,
    "limit": 40,
    "delay": 0.7,
    "timeout": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/the-blue-book").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 = {
    "query": "",
    "country": ["USA"],
    "pages": 2,
    "limit": 40,
    "delay": 0.7,
    "timeout": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/the-blue-book").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 '{
  "query": "",
  "country": [
    "USA"
  ],
  "pages": 2,
  "limit": 40,
  "delay": 0.7,
  "timeout": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call moving_beacon-owner1/the-blue-book --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/the-blue-book"
        }
    }
}
```

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/KXxz2GMHhXCb27GTk/builds/EGtT7p14DvCtNCRLW/openapi.json
