# California Open Data

> Find California state datasets, read their download links and retrieve rows from public data tables.

App · 4 actions. Web page: https://docs.lodol.com/docs/integrations/california-open-data

## Actions

### Get a California dataset

Read dataset metadata, licensing and resource links using its ID or portal slug.

**Inputs**

- Dataset ID (`dataset_id`, text, required): Dataset ID or URL slug.

**Outputs**

- `data` (object): The response from California Open Data.

**Example output**

```json
{
  "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_id`, text, required): Resource ID from a dataset's resources.

**Outputs**

- `data` (object): The response from California Open Data.

**Example output**

```json
{
  "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_id`, text, required): Resource ID from a dataset's resources.
- Limit (`limit`, number): Maximum rows to return (1 to 100). From 1 to 100.
- Offset (`offset`, number): Number of rows to skip. At least 0.

**Outputs**

- `data` (object): The response from California Open Data.

**Example output**

```json
{
  "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 (`query`, text): Words to look for in dataset titles, descriptions and tags.
- Limit (`limit`, number): Maximum datasets to return (1 to 100). From 1 to 100.
- Offset (`offset`, number): Number of matching datasets to skip. At least 0.

**Outputs**

- `data` (object): The response from California Open Data.

**Example output**

```json
{
  "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
  }
}
```
