Skip to content
GuidesBlogPlaygroundDashboard

List all datasets

datasets().list(DatasetListParamsparams = DatasetListParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : DatasetList
GET/api/v1/datasets

List all datasets

ParametersExpand Collapse
params: DatasetListParams
ReturnsExpand Collapse
class DatasetList:

List of all available datasets.

datasets: List<Dataset>

Array of dataset metadata objects

id: String

Dataset UUID

formatuuid
insertedAt: LocalDateTime

Creation timestamp (UTC)

formatdate-time
name: String

Human-readable dataset name

slug: String

URL-friendly identifier

updatedAt: LocalDateTime

Last update timestamp (UTC)

formatdate-time
attribution: Optional<String>

Required attribution text

description: Optional<String>

Dataset description

license: Optional<String>

License identifier (e.g. CC-BY-4.0)

sourceUrl: Optional<String>

URL of the original data source

formaturi

List all datasets

package com.plazafyi.example

import com.plazafyi.client.PlazaClient
import com.plazafyi.client.okhttp.PlazaOkHttpClient
import com.plazafyi.models.datasets.DatasetList
import com.plazafyi.models.datasets.DatasetListParams

fun main() {
    val client: PlazaClient = PlazaOkHttpClient.fromEnv()

    val datasetList: DatasetList = client.datasets().list()
}
{
  "datasets": [
    {
      "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "inserted_at": "2019-12-27T18:11:19.117Z",
      "name": "NYC Bike Lanes",
      "slug": "nyc-bike-lanes",
      "updated_at": "2019-12-27T18:11:19.117Z",
      "attribution": "attribution",
      "description": "description",
      "license": "license",
      "source_url": "https://example.com"
    }
  ]
}
Returns Examples
{
  "datasets": [
    {
      "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "inserted_at": "2019-12-27T18:11:19.117Z",
      "name": "NYC Bike Lanes",
      "slug": "nyc-bike-lanes",
      "updated_at": "2019-12-27T18:11:19.117Z",
      "attribution": "attribution",
      "description": "description",
      "license": "license",
      "source_url": "https://example.com"
    }
  ]
}