Wastewater Violations Linked to Enforcement Actions, 2005-2016
This dataset from the California Integrated Water Quality System (CIWQS) provides a list of enforcement action identification numbers and the identification numbers of the violation record that led to the enforcement action. A single violation record can be linked to multiple enforcement actions. An enforcement action can be linked to multiple violations. Additional information about violations and enforcement actions can be found within related datasets from CIWQS.
Data dictionary
Field definitions supplied by the publishing agency in CKAN.
| Column | Type | Label | Description |
|---|---|---|---|
| VIOLATION_ID | numeric | VIOLATION_ID | — |
| ENFORCEMENT_ACTION_ID | numeric | ENFORCEMENT_ACTION_ID | — |
| DATE_ADDED_TO_ENFORCEMENT | date | DATE_ADDED_TO_ENFORCEMENT | — |
Resource details
| Format | CSV |
|---|---|
| Size | 5.8 MB |
| Rows | 241,393 |
| Last updated | Sep 30, 2026 |
| Part of | Surface Water - Water Quality Regulatory Information |
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=5021fd6f-4944-4dc6-9c31-15c042c321bc&limit=5""https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search?resource_id=5021fd6f-4944-4dc6-9c31-15c042c321bc&q=jones""https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search_sql?sql=SELECT%20%2A%20FROM%20%225021fd6f-4944-4dc6-9c31-15c042c321bc%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: '5021fd6f-4944-4dc6-9c31-15c042c321bc', 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=5021fd6f-4944-4dc6-9c31-15c042c321bc&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).