California Open Data
App · 4 actions
Find California state datasets, read their download links and retrieve rows from public data tables.
Actions
| Action | What it does |
|---|---|
| Get a California dataset | Read dataset metadata, licensing and resource links using its ID or portal slug. |
| Get a California dataset resource | Look up the format, download link and DataStore availability of a dataset resource. |
| List rows from a California data table | Read rows from a resource that has DataStore enabled. |
| Search California datasets | Find public datasets on the California Open Data Portal, with recently updated entries first. |
Get a California dataset
Read dataset metadata, licensing and resource links using its ID or portal slug.
Inputs
- Dataset ID
dataset_idtextRequired - Dataset ID or URL slug.
Outputs
dataobject- The response from California Open Data.
Example output
{
"data": {
"result": {
"id": "example",
"license_title": "example",
"metadata_modified": "example",
"name": "example",
"notes": "example",
"resources": [
{
"datastore_active": true,
"format": "example",
"id": "example",
"name": "example",
"url": "example"
}
],
"title": "example"
},
"success": true
}
}Get a California dataset resource
Look up the format, download link and DataStore availability of a dataset resource.
Inputs
- Resource ID
resource_idtextRequired - Resource ID from a dataset's resources.
Outputs
dataobject- The response from California Open Data.
Example output
{
"data": {
"result": {
"datastore_active": true,
"format": "example",
"id": "example",
"name": "example",
"url": "example"
},
"success": true
}
}List rows from a California data table
Read rows from a resource that has DataStore enabled. The available columns depend on the resource.
Inputs
- Resource ID
resource_idtextRequired - Resource ID from a dataset's resources.
- Limit
limitnumber - Maximum rows to return (1 to 100).From 1 to 100.
- Offset
offsetnumber - Number of rows to skip.At least 0.
Outputs
dataobject- The response from California Open Data.
Example output
{
"data": {
"result": {
"fields": [
{
"id": "example",
"type": "example"
}
],
"records": [
{}
],
"total": 1
},
"success": true
}
}Search California datasets
Find public datasets on the California Open Data Portal, with recently updated entries first.
Inputs
- Search query
querytext - Words to look for in dataset titles, descriptions and tags.
- Limit
limitnumber - Maximum datasets to return (1 to 100).From 1 to 100.
- Offset
offsetnumber - Number of matching datasets to skip.At least 0.
Outputs
dataobject- The response from California Open Data.
Example output
{
"data": {
"result": {
"count": 1,
"results": [
{
"id": "example",
"metadata_modified": "example",
"name": "example",
"notes": "example",
"resources": [
{
"datastore_active": true,
"format": "example",
"id": "example",
"name": "example",
"url": "example"
}
],
"title": "example"
}
]
},
"success": true
}
}