# DOT: rail crossings, rail accidents and border crossings

US Department of Transportation open data: the national grade crossing inventory \(warning devices, trains per day\), railroad accidents and incidents, and inbound border crossing counts by port and mode.

- No API key needed to call
- Source: [US Department of Transportation \(FRA and BTS\)](https://data.transportation.gov/)
- Licence and terms: [US federal government work \(17 U.S.C. 105\)](https://data.transportation.gov/stories/s/Open-Data-FAQ/pbyc-jhcg)
- Coverage: United States
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- What warning devices does rail crossing 812202R have? (operation `dot_rail_crossing`)
- Which open railroad crossings are in Boulder, Colorado? (operation `dot_rail_crossings_search`)
- What railroad accidents were reported in Texas since 2023? (operation `dot_rail_accidents`)
- How many trucks and people crossed into the US at El Paso since January 2025? (operation `dot_border_crossings`)

## Operations

### Highway-rail grade crossing by ID

Answers: what warning devices \(gates, lights, bells\), train traffic and speed does this grade crossing have, who owns the railroad and where is it?

- `crossing_id`: required, string, Seven character crossing ID printed on the blue sign, for example 812202R.

Example: What warning devices does rail crossing 812202R have?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"dot","operation":"dot_rail_crossing","params":{"crossing_id":"812202R"}}}
```

Over HTTP:

```
curl '/v1/connectors/dot/dot_rail_crossing?crossing_id=812202R'
```

### Grade crossings in a city or county

Answers: which railroad grade crossings are in this city or county, how many trains use them and how are they protected?

- `state`: required, string, Full state name, for example COLORADO.
- `city`: optional, string, City name.
- `county`: optional, string, County name without the word County.
- `limit`: optional, integer, default 8

Example: Which open railroad crossings are in Boulder, Colorado?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"dot","operation":"dot_rail_crossings_search","params":{"state":"COLORADO","city":"BOULDER","limit":3}}}
```

Over HTTP:

```
curl '/v1/connectors/dot/dot_rail_crossings_search?state=COLORADO&city=BOULDER&limit=3'
```

### Railroad accidents in a state

Answers: which railroad accidents \(derailments, collisions\) were reported to FRA in this state, with railroad, cause, damage and casualties, newest first?

- `state`: required, string, Two-letter state.
- `county`: optional, string, County name without the word County.
- `since_year`: optional, integer, Only accidents in or after this year.
- `limit`: optional, integer, default 6

Example: What railroad accidents were reported in Texas since 2023?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"dot","operation":"dot_rail_accidents","params":{"state":"TX","since_year":2023,"limit":4}}}
```

Over HTTP:

```
curl '/v1/connectors/dot/dot_rail_accidents?state=TX&since_year=2023&limit=4'
```

### Inbound border crossings at a port

Answers: how many vehicles, trucks, containers, buses, trains and pedestrians entered the US at this land border port since a given date, by mode?

- `port_name`: required, string, Port name such as El Paso, Laredo, Detroit, Buffalo Niagara Falls.
- `since`: optional, string, default 2025-01-01, First day of the first month to count, YYYY-MM-01.

Example: How many trucks and people crossed into the US at El Paso since January 2025?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"dot","operation":"dot_border_crossings","params":{"port_name":"El Paso","since":"2025-01-01"}}}
```

Over HTTP:

```
curl '/v1/connectors/dot/dot_border_crossings?port_name=El+Paso&since=2025-01-01'
```

## Source notice

Source: US Department of Transportation, Federal Railroad Administration and Bureau of Transportation Statistics. 17 U.S.C. 105\(a\): "Copyright protection under this title is not available for any work of the United States Government". Terms were not quoted here: see the terms page.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
