Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
Method: projects.listAssets
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The listAssets method lists any container asset, such as a folder or collection, using a GET HTTP request.
The parent path parameter specifies the container asset to list and requires specific IAM permissions.
Query parameters like pageSize, pageToken, filter, and view can be used to control the response, with filter and view primarily applicable to ImageCollection assets.
The request body is empty, and a successful response returns a ListAssetsResponse.
Authorization requires specific OAuth scopes related to Earth Engine or Cloud Platform access.
Lists any container asset, such as a folder or collection.
HTTP request
GET https://earthengine.googleapis.com/v1beta/{parent=projects/*}:listAssets
Required. The name of the container asset to list. parent is of the format "projects/*" or "projects/*/assets/**" (e.g., "projects/[PROJECT]" or "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). All user-owned assets are currently under the project "earthengine-legacy" (e.g., "projects/earthengine-legacy/assets/users/foo/bar"). All other assets are under the project "earthengine-public" (e.g., "projects/earthengine-public/assets/LANDSAT"). If "projects/earthengine-legacy" is specified, the response will consist of a list of all top-level folders owned by the requesting user.
Authorization requires one or more of the following IAM permissions on the specified resource parent:
earthengine.assets.get
earthengine.assets.list
Query parameters
Parameters
pageSize
integer
The maximum number of results per page. The server may return fewer assets than requested. If unspecified, the page size default depends on the EarthEngineAssetView, with higher limits for more restrictive views.
pageToken
string
A token identifying a page of results the server should return. Typically this is the value of ListAssetsResponse.next_page_token returned from the previous call to the projects.listAssets method.
filter
string
If present, specifies a filter. Filters are only applied to ImageCollection assets and are ignored for Folder assets.
The fields startTime, endTime, and members of properties are recognized. The custom function intersects(str) is available, which allows filtering by geometry.
An example date filter:
"startTime>\"2020-01-01T00:00:00+00:00\" AND
endTime<\"2020-02-01T00:00:00+00:00\""
Specifies which parts of the EarthEngineAsset resource should be returned in the response. Only applies to ImageCollection assets. All elements of Folder assets will be encoded in the BASIC view regardless of the value of this field.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of ListAssetsResponse.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-06 UTC."],[],["This outlines the process of listing container assets like folders or collections via a `GET` HTTP request to `https://earthengine.googleapis.com/v1beta/{parent=projects/*}:listAssets`. Key actions include specifying the `parent` container asset in the request path. You can also use query parameters such as `pageSize` and `pageToken` for pagination, a `filter` to narrow results for `ImageCollection` assets, and a `view` parameter. The request body should be empty, and the response will be in `ListAssetsResponse` format, requiring specific authorization scopes.\n"]]