Data dictionary
Field definitions supplied by the publishing agency in CKAN.
| Column | Type | Label | Description |
|---|---|---|---|
| station_id | numeric | Station ID | Sequential number assigned to each record in the QST_STATION table. Database unique identifier (key). |
| station_name | text | Short Station Name | Abbreviated Long Station Name or a unique code assigned to the sampling location. Limit 20 characters. |
| full_station_name | text | Long Station Name | The (full) station name describing the sampling location based on DWR station naming conventions. |
| station_number | text | Station Code | Unique DWR station code based on DWR station numbering conventions. |
| station_type | text | Station Type | General description of sampling site location, i.e., surface water, groundwater, or other. |
| latitude | numeric | Latitude | Latitude (NAD83) |
| longitude | numeric | Longitude | Longitude (NAD83) |
| county_name | text | County | County name |
| sample_count | text | Sample count | Count of sample collection events having taken place at a particular sampling location. |
| sample_date_min | timestamp | First sample date | Date of the first sample collection event on record for a given DWR sampling location. |
| sample_date_max | timestamp | Last sample date | Date of the last sample collection event on record for a given DWR sampling location. |
Resource details
| Format | CSV |
|---|---|
| Last updated | Oct 7, 2026 |
| Part of | Water Quality Data |
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=07ba626a-0bc8-4ce9-b6ac-3f29ce3c8e6f&limit=5""https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search?resource_id=07ba626a-0bc8-4ce9-b6ac-3f29ce3c8e6f&q=jones""https://ckan.cdt.dev.datopian.com/api/3/action/datastore_search_sql?sql=SELECT%20%2A%20FROM%20%2207ba626a-0bc8-4ce9-b6ac-3f29ce3c8e6f%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: '07ba626a-0bc8-4ce9-b6ac-3f29ce3c8e6f', 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=07ba626a-0bc8-4ce9-b6ac-3f29ce3c8e6f&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).