# List Datasets

[block:callout]
{
  "type": "info",
  "title": "[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.NucleusClient.datasets)",
  "body": "```NucleusClient.datasets -> List[Dataset]```"
}
[/block]

This endpoint retrieves all the `Datasets` owned by the user as an array of `dataset_ids`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Nucleus API",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.scale.com/v1/nucleus"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/dataset": {
      "get": {
        "summary": "List Datasets",
        "description": "",
        "operationId": "list-datasets",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"dataset_ids\": [\n    \"ds_c6m0kz7e6a8005rwhq90\",\n    \"ds_c6ka7tfaypgg05rf2ts0\"\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "dataset_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "ds_c6m0kz7e6a8005rwhq90"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "60a66ff6bfbc7000736519dd:61a6a0415c66a70055764f58"
}
```