## Get dataset by ID `client.datasets.retrieve(stringid, RequestOptionsoptions?): Dataset` **get** `/api/v1/datasets/{id}` Get dataset by ID ### Parameters - `id: string` ### Returns - `Dataset` - `id: string` Dataset ID - `inserted_at: string` Creation timestamp - `name: string` Dataset name - `slug: string` URL-friendly slug - `updated_at: string` Last update timestamp - `attribution?: string | null` Attribution text - `description?: string | null` Dataset description - `license?: string | null` License identifier - `source_url?: string | null` Source data URL ### Example ```typescript import Plaza from '@plazafyi/sdk'; const client = new Plaza({ apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted }); const dataset = await client.datasets.retrieve('id'); console.log(dataset.id); ``` #### Response ```json { "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "inserted_at": "2019-12-27T18:11:19.117Z", "name": "name", "slug": "slug", "updated_at": "2019-12-27T18:11:19.117Z", "attribution": "attribution", "description": "description", "license": "license", "source_url": "source_url" } ```