Discover/The Blue Book API
live

The Blue Book APIthebluebook.com

Search commercial construction contractors by keyword, CSI trade code, and region. Returns company profiles with phone, address, website, and trade specialties.

Endpoint health
verified 7d ago
list_regions
list_categories
get_company_detail
search_companies
4/4 passing latest checkself-healing
Endpoints
4
Updated
21d ago

What is the The Blue Book API?

The Blue Book Building & Construction Network API provides 4 endpoints for searching and retrieving contractor profiles from one of the largest commercial construction directories in the US. The search_companies endpoint accepts free-text keywords, optional CSI trade codes, and geographic region IDs to return paginated company summaries. Each summary includes a company_id you can pass to get_company_detail to retrieve the full profile — name, address, phone, website, description, and trade specialties.

Try it
Search keyword (e.g. 'HVAC', 'plumbing', 'electrical contractor').
CSI trade code for filtering results (e.g. '1680' for Electrical Contractors). Obtain codes from list_categories endpoint.
Region ID to filter by geographic area (e.g. '1' for New York - NYC region). Obtain IDs from list_regions endpoint.
api.parse.bot/scraper/ece15523-b39d-42ad-96c3-9240ef62b597/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/ece15523-b39d-42ad-96c3-9240ef62b597/search_companies?query=HVAC&csi_code=1680&region_id=43' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace thebluebook-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.the_blue_book_api import BlueBook, Company, CompanySummary, Region, Category

bluebook = BlueBook()

# List all geographic regions
for region in bluebook.regions.list(limit=5):
    print(region.city, region.region, region.recordcnt)

# List trade categories
for category in bluebook.categories.list(limit=5):
    print(category.name, category.code)

# Search for HVAC companies in a region
for summary in bluebook.companysummaries.search(query="HVAC", region_id="1", limit=3):
    print(summary.name, summary.company_id, summary.location)
    # Drill into full company detail
    company = summary.details()
    print(company.name, company.address, company.phone, company.website)
    for specialty in company.specialties:
        print(specialty)
All endpoints · 4 totalmissing one? ·

Full-text search over commercial construction companies. Returns paginated summaries matching the keyword, optionally filtered by geographic region and CSI trade code. Each result carries a company_id for drill-down via get_company_detail.

Input
ParamTypeDescription
queryrequiredstringSearch keyword (e.g. 'HVAC', 'plumbing', 'electrical contractor').
csi_codestringCSI trade code for filtering results (e.g. '1680' for Electrical Contractors). Obtain codes from list_categories endpoint.
region_idstringRegion ID to filter by geographic area (e.g. '1' for New York - NYC region). Obtain IDs from list_regions endpoint.
Response
{
  "type": "object",
  "fields": {
    "results": "array of company summary objects with company_id, name, and location",
    "total_count": "integer total number of matching companies"
  },
  "sample": {
    "data": {
      "results": [
        {
          "name": "Joe Lombardo Plumbing & Heating of Rockland, Inc.",
          "location": "",
          "company_id": "398517"
        },
        {
          "name": "Mechanical Solutions, Inc.",
          "location": "",
          "company_id": "808224"
        }
      ],
      "total_count": 986
    },
    "status": "success"
  }
}

About the The Blue Book API

Searching for Contractors

The search_companies endpoint accepts a required query string (e.g. 'plumbing', 'HVAC', 'general contractor') and returns an array of company summary objects, each containing company_id, name, and location, plus a total_count for pagination. You can narrow results with csi_code (a CSI trade division code such as '1680' for Electrical Contractors) and region_id (a numeric ID corresponding to a specific metro area). Both filter parameters are optional and composable — you can supply one, both, or neither.

Company Profiles

Passing a company_id from search results into get_company_detail returns the full company record: name, phone, address (city/state/zip), website URL, a free-text description narrative, and a specialties array listing the trade categories the company covers. This is the primary data payload for building contractor databases, vendor qualification workflows, or subcontractor shortlists.

Reference Endpoints

Two utility endpoints support the search filters. list_regions returns all Blue Book geographic regions as objects with id, city, state, zip, region, and recordcnt. You can pass a name substring to query to filter, or use '****' to return the full list. list_categories requires no inputs and returns all available CSI trade categories as objects with name and code — the code values feed directly into the csi_code filter on search_companies. Between the two, you can enumerate the full filter space before running any searches.

Reliability & maintenanceVerified

The The Blue Book API is a managed, monitored endpoint for thebluebook.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when thebluebook.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official thebluebook.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
7d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a searchable subcontractor database filtered by CSI trade code and metro region.
  • Enrich CRM records with verified phone numbers and website URLs from get_company_detail.
  • Generate shortlists of electrical or mechanical contractors in a specific city using region_id and csi_code together.
  • Audit contractor coverage in a given region by comparing total_count results across multiple trades.
  • Populate a vendor qualification form by pulling specialties and description fields for each candidate company.
  • Map commercial construction activity by region using list_regions metadata including recordcnt per area.
  • Sync Blue Book contractor profiles into a procurement or estimating platform on a scheduled basis.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does The Blue Book have an official developer API?+
The Blue Book Building & Construction Network does not publish a public developer API or API documentation at thebluebook.com. This Parse API is the way to access the directory data programmatically.
What does `get_company_detail` return and what does it not include?+
It returns name, phone, address, website, description, company_id, and a specialties array. It does not currently return email addresses, employee counts, license numbers, or project history. You can fork this API on Parse and revise it to add an endpoint targeting any additional profile data the source exposes.
Can I retrieve reviews or ratings for a contractor?+
Not currently. The API covers company identity fields, contact information, and trade specialties. Review or rating data is not included in the current endpoints. You can fork the API on Parse and revise it to add that coverage.
How do CSI trade codes work in the search filter?+
The csi_code parameter on search_companies accepts a code string from the list_categories endpoint, which returns all available categories as objects with name and code fields. Run list_categories first to get valid codes, then pass a code such as '1680' to restrict results to a single trade division.
Is search_companies paginated, and how do I navigate pages?+
The endpoint returns a total_count integer alongside the results array so you can determine how many matching companies exist. Check the endpoint's pagination parameters for the specific page or offset inputs — total_count tells you how many records are available across all pages.
Page content last updated . Spec covers 4 endpoints from thebluebook.com.
Related APIs in B2b DirectorySee all →
procore.com API
Search and discover construction projects, bids, and company profiles on the Procore Construction Network. Retrieve project details including bid status, project scope, trades required, funding type, and solicitor contact information, as well as full company profiles for subcontractors and general contractors.
bbb.org API
bbb.org API
yellowpages.com API
Search and retrieve business listings, contact info, hours, categories, and customer reviews from YellowPages.com. Browse by category or location across the US.
protenders.com API
Search and discover construction industry companies across Protenders.com by location, category, and keywords, then retrieve detailed information about specific companies. Filter through thousands of contractors, suppliers, and service providers to find exactly who you need in the construction sector.
ibba.org API
Search and find professional business brokers from the IBBA directory by location or name, accessing their contact information, business details, and specialties across over 3,000 verified profiles. Discover brokers in your area or filter by geographic regions and service specialties to connect with the right professional for your business needs.
angieslist.com API
Search for home service professionals on Angi and access their detailed profiles including reviews, contact information, and photos to find the right contractor for your project. Quickly compare multiple service providers by viewing their ratings, customer feedback, and verified business details all in one place.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.
hipages.com.au API
Search for local service businesses on hipages.com.au, view detailed business profiles and customer reviews, and explore available service categories all in one place. Find the right tradesperson or service provider by browsing ratings, contact information, and customer feedback.