ee.data.listAssets

  • Retrieves the contents within an Earth Engine asset collection or folder, returning an object containing an assets array and potentially a nextPageToken for accessing further results.

  • Accepts the parent collection/folder ID, optional parameters like page size and filters, and an optional callback function for asynchronous execution.

  • Enables customization of the query by allowing users to filter results based on properties, time ranges, or geographic intersections using the filter parameter.

  • Offers two viewing options, "FULL" for comprehensive image property details and "BASIC" for a more concise representation.

  • Facilitates navigation through large result sets via pagination, utilizing pageSize to limit results per page and nextPageToken to access subsequent pages.

Returns a list of the contents in an asset collection or folder, in an object that includes an assets array and an optional nextPageToken.

UsageReturns
ee.data.listAssets(parent, params, callback)api.ListAssetsResponse
ArgumentTypeDetails
parentStringThe ID of the collection or folder to list.
paramsapi.ProjectsAssetsListAssetsNamedParameters, optionalAn object containing optional request parameters with the following possible values:
pageSize (string) The number of results to return. If not specified, all results are returned.
pageToken (string) The token for the page of results to return.
filter (string) An additional filter query to apply. Example query: properties.my_property>=1 AND properties.my_property<2 AND startTime >= "2019-01-01T00:00:00.000Z" AND endTime < "2020-01-01T00:00:00.000Z" AND intersects("{'type':'Point','coordinates':[0,0]}") See https://google.aip.dev/160 for how to construct a query.
view (string) Specifies how much detail is returned in the list. Either "FULL" (default) for all image properties or "BASIC".
callbackFunction, optionalIf not supplied, the call is made synchronously.