# PlanHub Project Scraper (`moving_beacon-owner1/planhub-project-scraper`) Actor

Scrapes PlanHub construction bidding projects with project names, locations, bid dates, stages, construction types, trades, descriptions, and project links. Supports state, construction type, and trade filters, with optional detail enrichment and authenticated access to account-level project data.

- **URL**: https://apify.com/moving_beacon-owner1/planhub-project-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 73.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

## PlanHub Project Scraper

Collects construction bidding projects from PlanHub's public project directory and returns one flat record per project — project name, city and state, bid due date, stage, construction type, trades and a description. Filter by state, construction type and trade. Public listings are anonymized by PlanHub; if you have a PlanHub account, an optional auth token switches the actor to your account's project board, which includes full project names and general-contractor info.

### Input

| Field | Default | Description |
| --- | --- | --- |
| `state` | *(empty)* | US state, full name (e.g. `Florida`, `Texas`). Empty = all states. |
| `construction_type` | `all` | `Commercial`, `Civil`, `Government / Public`, `Industrial`, `Residential`, or `all`. |
| `trade` | *(empty)* | Trade filter, e.g. `HVAC`, `Plumbing`, `Concrete Construction`. Empty = all trades. |
| `limit` | `20` | Maximum projects to return (1–500), sorted by nearest bid due date. |
| `include_details` | `true` | Also visit each project's page to add stage, bid due date and the full trades/subtrades lists. |
| `planhub_auth_token` | *(empty)* | Optional, secret. Auth token from a logged-in PlanHub account for the full project board. Leave empty to run keyless. |
| `proxyConfiguration` | Optional | Enable a US-based proxy for the most reliable results. |

### Output

Each result is one construction project:

```json
{
    "project_id": 582268,
    "title": "Clubhouse Construction Bid",
    "building_use": "Clubhouse",
    "city": "Miami",
    "state": "Florida",
    "bid_date": "Aug 23, 2026",
    "bid_due_date": "August 23, 2026",
    "stage": "GC and Sub Bidding",
    "construction_type": "Commercial",
    "trades": ["Concrete Construction", "Electrical and Low Voltage", "HVAC", "Plumbing", "Roofing, Thermal and Moisture Protection"],
    "subtrades": ["Architect", "Cabinets / Millwork", "Drywall Installation"],
    "description": "We are soliciting subcontractor pricing for the renovation and enlargement of an existing clubhouse...",
    "plans_available": true,
    "location": "Miami, Florida",
    "project_url": "https://planhub.com/construction-bids/582268-commercial-clubhouse-miami-florida/",
    "planhub_app_url": "https://app.planhub.com/#/pages/projectDetails/582268",
    "source": "planhub_public"
}
```

Records from an account auth token instead carry `title`, `gc_name`, `status`, `zip` and `raw` with the account API's original payload.

### Notes

- Runs with empty input (returns the 20 projects nationwide with the nearest bid due dates).
- Enable a US-based proxy for the most reliable results, and use one when running with an account auth token.
- Bidding-contractor and plan-download data is only available to PlanHub account holders; intended for research use — please respect PlanHub's terms of service.

# Actor input Schema

## `state` (type: `string`):

US state to filter, as a full name (e.g. 'Florida', 'Texas') or two-letter code. Applied to the public project sitemap by URL before detail pages are read. Leave empty for all states.

## `construction_type` (type: `string`):

Type of construction project to filter. Applied to the public project sitemap and confirmed against each detail page.

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

Optional trade filter, e.g. 'HVAC', 'Plumbing', 'Concrete Construction', 'Electrical and Low Voltage', 'Roofing, Thermal and Moisture Protection'. Matching is client-side against the trades on each project detail page. Leave empty for all trades.

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

Maximum number of projects to return. Projects come from PlanHub's public sitemap, most recently updated first. Each project needs one Jina Reader request (a few seconds), so large limits take a while.

## `include_details` (type: `boolean`):

Retained for input compatibility. The public sitemap route always reads each project's public page, because that is where location, bid due date, stage, construction type and trades live.

## `planhub_auth_token` (type: `string`):

Optional. An auth token from a logged-in PlanHub account. When provided, the actor queries the account project board instead of the public directory, returning full project names and GC info. Leave empty to run keyless.

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

Proxy settings for the run. Enable a US-based proxy for the most reliable results, especially for sites that limit non-US or datacenter traffic. Optional — leave off to run directly.

## Actor input object example

```json
{
  "state": "",
  "construction_type": "all",
  "trade": "",
  "limit": 20,
  "include_details": true,
  "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 = {
    "state": "",
    "construction_type": "all",
    "trade": "",
    "limit": 20,
    "include_details": true,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/planhub-project-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 = {
    "state": "",
    "construction_type": "all",
    "trade": "",
    "limit": 20,
    "include_details": True,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/planhub-project-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 '{
  "state": "",
  "construction_type": "all",
  "trade": "",
  "limit": 20,
  "include_details": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call moving_beacon-owner1/planhub-project-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/planhub-project-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/ikRwlNZiX5UTcHasx/builds/i4JfPjDU7FanQ74Iv/openapi.json
