Provenance
Freshness & coverage
Methods (6)
searchAccidents
readSearch Form 54 rail equipment accidents by state, accident type, railroad, and date
Input schema
{ "type": "object", "properties": { "state": { "type": "string", "examples": [ "TX" ] }, "accidentType": { "type": "string", "examples": [ "Derailment" ] }, "railroad": { "type": "string" }, "dateFrom": { "type": "string", "examples": [ "2024-01-01" ] }, "limit": { "type": "number", "examples": [ 50 ] } }, "additionalProperties": false }Filter state, type, railroad, or date; limit max 1000; newest first.
getAccidentById
readSingle Form 54 rail equipment accident record by its accident number
Input schema
{ "type": "object", "properties": { "accidentNumber": { "type": "string", "examples": [ "0326HO023" ] } }, "additionalProperties": false }accidentNumber required; returns found and the Form 54 record.
getAccidentStats
readGrouped counts of Form 54 accidents (e.g. by accident type, state, railroad, or year)
Input schema
{ "type": "object", "properties": { "groupBy": { "type": "string", "examples": [ "accidenttype" ] }, "state": { "type": "string", "examples": [ "TX" ] } }, "additionalProperties": false }groupBy any column; optional state; returns groups sorted by count.
countAccidents
readCount-only of Form 54 accidents matching optional state and accident-type filters
Input schema
{ "type": "object", "properties": { "state": { "type": "string", "examples": [ "TX" ] }, "accidentType": { "type": "string", "examples": [ "Derailment" ] } }, "additionalProperties": false }Optional state and accidentType filters; returns count.
searchGradeCrossingIncidents
readSearch Form 57 highway-rail grade-crossing incidents by state
Input schema
{ "type": "object", "properties": { "state": { "type": "string", "examples": [ "TX" ] }, "limit": { "type": "number", "examples": [ 50 ] } }, "additionalProperties": false }state accepts code or full name; limit max 1000; newest first.
getServiceInfo
readStatic API overview — the two datasets, SoQL filters, string-typed fields, and Socrata token note
Input schema
{ "type": "object", "properties": {}, "additionalProperties": false }
