## List datasets `client.radar.datasets.list(DatasetListParamsquery?, RequestOptionsoptions?): DatasetListResponse` **get** `/radar/datasets` Retrieves a list of datasets. ### Parameters - `query: DatasetListParams` - `datasetType?: "RANKING_BUCKET" | "REPORT"` Filters results by dataset type. - `"RANKING_BUCKET"` - `"REPORT"` - `date?: string` Filters results by the specified date. - `format?: "JSON" | "CSV"` Format in which results will be returned. - `"JSON"` - `"CSV"` - `limit?: number` Limits the number of objects returned in the response. - `offset?: number` Skips the specified number of objects before fetching the results. ### Returns - `DatasetListResponse` - `datasets: Array` - `id: number` - `description: string` - `meta: unknown` - `tags: Array` - `title: string` - `type: string` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const datasets = await client.radar.datasets.list(); console.log(datasets.datasets); ``` #### Response ```json { "result": { "datasets": [ { "id": 3, "description": "This dataset contains a list of the op 20000 domains globally", "meta": {}, "tags": [ "global" ], "title": "Top bucket 20000 domains", "type": "RANKING_BUCKET" } ] }, "success": true } ```