# ee.data.listBuckets

<br />

Returns top-level assets and folders for the Cloud Project or user. Leave the project field blank to use the current project.

<br />

| Usage | Returns |
|---|---|
| `ee.data.listBuckets(*project*, *callback*)` | api.ListAssetsResponse |

| Argument | Type | Details |
|---|---|---|
| `project` | String, optional | Project to query, e.g. "projects/my-project". Defaults to current project. Use "projects/earthengine-legacy" for user home folders. |
| `callback` | Function, optional | If not supplied, the call is made synchronously. |