Crashes_2018
Crashes raw data file of 2018; Updated: 9/3/2026 7:38:26 PM
Data dictionary
Field definitions supplied by the publishing agency in CKAN.
| Column | Type | Label | Description |
|---|---|---|---|
| Collision Id | numeric | Collision Id | — |
| Report Number | text | Report Number | — |
| Report Version | numeric | Report Version | — |
| Is Preliminary | text | Is Preliminary | — |
| NCIC Code | text | NCIC Code | — |
| Crash Date Time | timestamp | Crash Date Time | — |
| Crash Time Description | text | Crash Time Description | — |
| Beat | text | Beat | — |
| City Id | numeric | City Id | — |
| City Code | text | City Code | — |
| City Name | text | City Name | — |
| County Code | numeric | County Code | — |
| City Is Active | text | City Is Active | — |
| City Is Incorporated | text | City Is Incorporated | — |
| Collision Type Code | text | Collision Type Code | — |
| Collision Type Description | text | Collision Type Description | — |
| Collision Type Other Desc | text | Collision Type Other Desc | — |
| Day Of Week | text | Day Of Week | — |
| DispatchNotified | text | DispatchNotified | — |
| HasPhotographs | text | HasPhotographs | — |
| HitRun | text | HitRun | — |
| IsAttachmentsMailed | text | IsAttachmentsMailed | — |
| IsDeleted | text | IsDeleted | — |
| IsHighwayRelated | text | IsHighwayRelated | — |
| IsTowAway | text | IsTowAway | — |
| JudicialDistrict | text | JudicialDistrict | — |
| MotorVehicleInvolvedWithCode | text | MotorVehicleInvolvedWithCode | — |
| MotorVehicleInvolvedWithDesc | text | MotorVehicleInvolvedWithDesc | — |
| MotorVehicleInvolvedWithOtherDesc | text | MotorVehicleInvolvedWithOtherDesc | — |
| NumberInjured | numeric | NumberInjured | — |
| NumberKilled | numeric | NumberKilled | — |
| Weather 1 | text | Weather 1 | — |
| Weather 2 | text | Weather 2 | — |
| Road Condition 1 | text | Road Condition 1 | — |
| Road Condition 2 | text | Road Condition 2 | — |
| Special Condition | text | Special Condition | — |
| LightingCode | text | LightingCode | — |
| LightingDescription | text | LightingDescription | — |
| Latitude | numeric | Latitude | — |
| Longitude | numeric | Longitude | — |
| MilepostDirection | text | MilepostDirection | — |
| MilepostDistance | numeric | MilepostDistance | — |
| MilepostMarker | text | MilepostMarker | — |
| MilepostUnitOfMeasure | text | MilepostUnitOfMeasure | — |
| PedestrianActionCode | text | PedestrianActionCode | — |
| PedestrianActionDesc | text | PedestrianActionDesc | — |
| PreparedDate | timestamp | PreparedDate | — |
| Primary Collision Factor Code | text | Primary Collision Factor Code | — |
| Primary Collision Factor Violation | text | Primary Collision Factor Violation | — |
| PrimaryCollisionFactorIsCited | text | PrimaryCollisionFactorIsCited | — |
| PrimaryCollisionPartyNumber | numeric | PrimaryCollisionPartyNumber | — |
| PrimaryRoad | text | PrimaryRoad | — |
| ReportingDistrict | text | ReportingDistrict | — |
| ReportingDistrictCode | text | ReportingDistrictCode | — |
| ReviewedDate | timestamp | ReviewedDate | — |
| RoadwaySurfaceCode | text | RoadwaySurfaceCode | — |
| SecondaryDirection | text | SecondaryDirection | — |
| SecondaryDistance | numeric | SecondaryDistance | — |
| SecondaryRoad | text | SecondaryRoad | — |
| SecondaryUnitOfMeasure | text | SecondaryUnitOfMeasure | — |
| SketchDesc | text | SketchDesc | — |
| TrafficControlDeviceCode | text | TrafficControlDeviceCode | — |
| CreatedDate | timestamp | CreatedDate | — |
| ModifiedDate | timestamp | ModifiedDate | — |
| IsCountyRoad | text | IsCountyRoad | — |
| IsFreeway | text | IsFreeway | — |
| CHP555Version | numeric | CHP555Version | — |
| IsAdditonalObjectStruck | text | IsAdditonalObjectStruck | — |
| NotificationDate | timestamp | NotificationDate | — |
| NotificationTimeDescription | numeric | NotificationTimeDescription | — |
| HasDigitalMediaFiles | text | HasDigitalMediaFiles | — |
| EvidenceNumber | text | EvidenceNumber | — |
| IsLocationReferToNarrative | text | IsLocationReferToNarrative | — |
| IsAOIOneSameAsLocation | text | IsAOIOneSameAsLocation | — |
Resource details
| Format | CSV |
|---|---|
| Size | 197 MB |
| Rows | 489,743 |
| Last updated | Sep 29, 2026 |
| Part of | California Crash Reporting System (CCRS) |
Other resources in this dataset
- Raw Data Template
- Crashes_2025
- Parties_2025
- InjuredWitnessPassengers_2025
- Crashes_2024
- Parties_2024
- InjuredWitnessPassengers_2024
- Crashes_2023
- Parties_2023
- InjuredWitnessPassengers_2023
- Crashes_2022
- Parties_2022
- InjuredWitnessPassengers_2022
- Crashes_2021
- Parties_2021
- InjuredWitnessPassengers_2021
- Crashes_2020
- Parties_2020
- InjuredWitnessPassengers_2020
- Crashes_2019
- Parties_2019
- InjuredWitnessPassengers_2019
- Parties_2018
- InjuredWitnessPassengers_2018
- Crashes_2017
- Parties_2017
- InjuredWitnessPassengers_2017
- Crashes_2016
- Parties_2016
- InjuredWitnessPassengers_2016
- Parties_2026
- InjuredWitnessPassengers_2026
- Crashes_2026
CKAN Data API
Access resource data through the CKAN DataStore API. The examples below use this resource's ID.
Endpoints
The Data API provides these actions. Creating or updating records requires appropriate permissions; the query actions read public DataStore records.
| Create | https://ckan.cdt.dev.datopian.com/api/3/action/datastore_create |
|---|---|
| Update / insert | https://ckan.cdt.dev.datopian.com/api/3/action/datastore_upsert |
| Query | https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search |
| Query via SQL | https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search_sql |
Query examples
"https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search?resource_id=a4b57216-5110-43d3-884c-d95366b19158&limit=5""https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search?resource_id=a4b57216-5110-43d3-884c-d95366b19158&q=jones""https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search_sql?sql=SELECT%20%2A%20FROM%20%22a4b57216-5110-43d3-884c-d95366b19158%22%20LIMIT%205"SQL queries depend on whether SQL search is enabled by the portal.
OData query
Use the resource's OData URL and its field names for paging, selecting columns, or filtering rows.
ODATA_RESOURCE_URL?$top=5
ODATA_RESOURCE_URL?$skip=5&$top=5
ODATA_RESOURCE_URL?$select=FIELD_NAME&$filter=FIELD_NAME eq 'VALUE'Replace ODATA_RESOURCE_URL, FIELD_NAME, and VALUE with the details for the selected resource. See the OData query options guide (opens in a new tab) for more examples.
Use the API in code
JavaScript (JSONP)
var data = { resource_id: 'a4b57216-5110-43d3-884c-d95366b19158', limit: 5, q: 'jones' };
$.ajax({
url: 'https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search',
data: data,
dataType: 'jsonp',
success: function (response) {
console.log(response.result.total, response.result.records);
}
});Python
import json
from urllib.request import urlopen
url = 'https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search?resource_id=a4b57216-5110-43d3-884c-d95366b19158&limit=5'
with urlopen(url) as response:
result = json.load(response)['result']
print(result['total'], result['records'])For parameters and response fields, see the CKAN DataStore documentation (opens in a new tab).