Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.data.listBuckets
Stay organized with collections
Save and categorize content based on your preferences.
Returns top-level assets and folders for the Cloud Project or user. Leave the project field blank to use the current project.
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-01 UTC.
[null,null,["Last updated 2023-11-01 UTC."],[[["\u003cp\u003eReturns a list of top-level assets and folders within a specified Google Cloud project or the user's Earth Engine home folder.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eee.data.listBuckets\u003c/code\u003e function is used to retrieve this information, allowing optional specification of the project and a callback function.\u003c/p\u003e\n"],["\u003cp\u003eWhen querying a user's home folders, use \u003ccode\u003e"projects/earthengine-legacy"\u003c/code\u003e as the project ID.\u003c/p\u003e\n"]]],[],null,["# ee.data.listBuckets\n\n\u003cbr /\u003e\n\nReturns top-level assets and folders for the Cloud Project or user. Leave the project field blank to use the current project.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------|------------------------|\n| `ee.data.listBuckets(`*project* `, `*callback*`)` | api.ListAssetsResponse |\n\n| Argument | Type | Details |\n|------------|--------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `project` | String, optional | Project to query, e.g. \"projects/my-project\". Defaults to current project. Use \"projects/earthengine-legacy\" for user home folders. |\n| `callback` | Function, optional | If not supplied, the call is made synchronously. |"]]