# US Bridge Inventory — Official FHWA Open Data (`apiflows/us-bridge-inventory`) Actor

Standardized US bridge records from the FHWA National Bridge Inventory (2026 SNBI edition; Public Domain, U.S. Government Works). One item per bridge: location, agency codes, year built, geometry, condition ratings, traffic, load ratings. Filter by state, year built, condition.

- **URL**: https://apify.com/apiflows/us-bridge-inventory.md
- **Developed by:** [APIFLOWS DEV](https://apify.com/apiflows) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 bridge records

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

## US Bridge Inventory — Official FHWA Open Data

Extract standardized bridge inventory records for the **United States** from the Federal Highway Administration's official **National Bridge Inventory (NBI)**, in one clean, fixed JSON schema.

The NBI is the national register of public highway bridges: every bridge and culvert reported to the FHWA by states, federal agencies, and tribal governments under the National Bridge Inspection Standards — 624,939 highway bridges in the 2026 edition. This Actor reads the FHWA's official per-state files in the current **SNBI** (Specifications for the National Bridge Inventory) format and delivers **one item per bridge** that pipelines, analytics tools, and AI agents can consume without building their own integration.

### What you get

- **Official public records only** — data comes straight from the FHWA's published 2026 NBI state files; no synthetic or fabricated rows.
- **One item per bridge** — a curated, typed subset of the SNBI record: bridge number and name, state/county/place codes, coordinates, location description, owner and maintenance agency codes, year built, geometry (lengths, widths, deck area), component condition ratings (deck / superstructure / substructure / culvert), the FHWA Good/Fair/Poor condition classification, load-rating factors, the route carried and feature crossed, average daily traffic, posting status, and the last inspection date.
- **Useful filters** — state / territory list, minimum year built, and bridge condition category (Good / Fair / Poor).
- **No personal data** — the inventory describes public structures. Owner and maintenance fields are **agency codes** (state DOTs, counties, federal agencies), and no individual contact information exists in or is output from these records.
- **Pay per result** — you are charged per bridge record delivered ($0.005/record), plus a minimal Actor start fee. Set a maximum total charge on the run to cap spend; the Actor stops gracefully when the cap is reached.

### Data source

| Jurisdiction | Publisher | Program | Portal |
| :--- | :--- | :--- | :--- |
| **United States (nationwide)** | Federal Highway Administration (FHWA), U.S. DOT | National Bridge Inventory (NBI), 2026 SNBI edition | `fhwa.dot.gov/bridge/nbi/` per-state JSON files |

### Input parameters

| Parameter | Type | Description |
| :--- | :--- | :--- |
| `states` | Array of strings | Two-letter state / territory codes to include (e.g. `["DE", "TX"]`). Empty = all states and territories listed on the FHWA 2026 download page. |
| `minYearBuilt` | Integer | Only bridges built in or after this year; `0` (default) = no year filter. |
| `conditionCategory` | String | `all` (default), `good`, `fair`, or `poor`, using the FHWA condition classification in the source data. |
| `maxItems` | Integer | Maximum bridge records to extract (default `100`). |

### Output example (normalized JSON)

```json
{
  "bridge_number": "000000001494016",
  "bridge_name": "",
  "state_code": 10,
  "state": "DE",
  "state_name": "Delaware",
  "county_code": "3",
  "place_code": "10003",
  "highway_agency_district": "01",
  "latitude": 39.540833,
  "longitude": -75.738333,
  "location": "9 MI W OF REEDY POINT",
  "owner_code": "FL06",
  "maintenance_code": "FL06",
  "toll_code": "N",
  "year_built": 1959,
  "nbis_bridge_length_ft": 2058.1,
  "total_bridge_length_ft": 2058.1,
  "max_span_length_ft": 600.1,
  "deck_width_out_to_out_ft": 64.0,
  "deck_width_curb_to_curb_ft": 58.4,
  "approach_roadway_width_ft": 64.0,
  "deck_area_sqft": 131718.4,
  "deck_condition_rating": "6",
  "superstructure_condition_rating": "5",
  "substructure_condition_rating": "6",
  "culvert_condition_rating": "N",
  "bridge_condition": "Fair",
  "inventory_rating_factor": 0.65,
  "operating_rating_factor": 0.85,
  "route_carried": "DEL 896, US71,301S",
  "feature_crossed": "C&D CANAL",
  "route_number": "896",
  "functional_class_code": "3",
  "average_daily_traffic": 23111,
  "adt_year": 2023,
  "posting_status_code": "PO",
  "last_inspection_date": "2024-06-01",
  "data_year": 2026,
  "source_endpoint": "https://www.fhwa.dot.gov/BRIDGE/nbi/2026/JSON/DE26.json",
  "scraped_at": "2026-11-20T00:00:00+00:00"
}
```

### Attribution

Data: **Federal Highway Administration (FHWA), U.S. Department of Transportation** — National Bridge Inventory, 2026 edition. The NBI is a work of the United States Government and is in the **public domain** (17 U.S.C. § 105); the U.S. DOT's Data Management Plan for this dataset states that the data files "are in the public domain, and can be shared without restriction" and "may be re-used without restriction."

### Data notes

- **Raw data only.** This Actor republishes the official inventory records in a normalized schema. It does not verify, certify, or rate any bridge, and it provides no safety, engineering, or compliance assessment.
- **Do not use NBI data for route clearance purposes.** The FHWA states this explicitly: bridges are generally inspected every 24 months, so clearance and condition data may not be current. Always confirm clearances, postings, and conditions with the bridge owner and posted signs.
- Records are retrieved live from the official FHWA files at run time; each item carries its `source_endpoint` and retrieval timestamp (`scraped_at`) for provenance.
- Condition ratings and traffic counts are as reported to the FHWA by states, federal agencies, and tribal governments; the U.S. DOT provides the data "as is" and makes no warranty as to accuracy, timeliness, or completeness. Verify critical records against the source portal.
- Inventory coverage, fields, and update cadence are controlled by the FHWA and may change without notice. The 2026 edition is the first published in the SNBI format; earlier editions (1992–2025) used the legacy Recording and Coding Guide ASCII format and are not covered by this Actor.

# Actor input Schema

## `conditionCategory` (type: `string`):

Filter by the FHWA bridge condition classification (Good / Fair / Poor, 23 CFR 490) calculated in the source data.

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

Maximum number of bridge records to extract.

## `minYearBuilt` (type: `integer`):

Only bridges built in or after this year. 0 means no year filter.

## `states` (type: `array`):

Two-letter US state / territory codes to include (e.g. \["DE", "TX"]), as listed on the FHWA 2026 NBI download page. Empty means all listed states and territories.

## Actor input object example

```json
{
  "conditionCategory": "all",
  "maxItems": 100,
  "minYearBuilt": 0,
  "states": []
}
```

# Actor output Schema

## `bridges` (type: `string`):

Normalized bridge inventory records in the default dataset.

# 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 = {
    "conditionCategory": "all",
    "maxItems": 100,
    "minYearBuilt": 0,
    "states": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("apiflows/us-bridge-inventory").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 = {
    "conditionCategory": "all",
    "maxItems": 100,
    "minYearBuilt": 0,
    "states": [],
}

# Run the Actor and wait for it to finish
run = client.actor("apiflows/us-bridge-inventory").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 '{
  "conditionCategory": "all",
  "maxItems": 100,
  "minYearBuilt": 0,
  "states": []
}' |
apify call apiflows/us-bridge-inventory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apiflows/us-bridge-inventory"
        }
    }
}
```

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/xUIhAfyd73Z9WEimu/builds/aD0coQgyNT4HuPWDL/openapi.json
