All Products
Search
Document Center

Intelligent Media Management:QueryLocationDateClusters

Last Updated:Oct 09, 2025

Queries a list of spatiotemporal clusters based on the specified conditions.

Operation description

  • Before you call this operation, make sure that you are familiar with the billing of IMM.****
  • Before you call this operation, make sure that you have called the CreateLocationDateClusteringTask operation to create spatiotemporal clusters in the project.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
imm:QueryLocationDateClusterslist
*Dataset
acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}/dataset/{#DatasetName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectNamestringYes

The name of the project. You can obtain the name of the project from the response of the CreateProject operation.

test-project
DatasetNamestringYes

The name of the dataset. For information about how to create a dataset, see CreateDataset .

test-dataset
ObjectIdstringNo

The ID of the cluster that you want to query. Specify this parameter if you want to query a specific spatiotemporal cluster. Otherwise, leave this parameter empty to query spatiotemporal clusters that meet the specified conditions.

location-date-cluster-71dd4f32-9597-4085-a2ab-3a7b0fd0aff9
TitlestringNo

The characters that are included in the titles of spatiotemporal clusters to be queried. Matches are found by using fuzzy matching.

AddressAddressNo

The address information.

LocationDateClusterLevelsarrayNo

The container for the administrative division level of the spatiotemporal clusters to be queried.

stringNo

The administrative division level.

Valid values:

  • country
  • province
  • district
  • city
  • township
province
LocationDateClusterStartTimeRangeTimeRangeNo

The time range during which the earliest photo in a cluster was taken.

LocationDateClusterEndTimeRangeTimeRangeNo

The time range during which the latest photo in a cluster was taken.

CreateTimeRangeTimeRangeNo

The time range during which the spatiotemporal clusters were generated.

UpdateTimeRangeTimeRangeNo

The time range during which the spatiotemporal clusters were updated.

NextTokenstringNo

The pagination token.

MzQNjmY2MzYxNhNjk2ZNjEu****
MaxResultsintegerNo

The number of entries per page. Valid values: [1,100]. Default value: 20.

20
CustomLabelsstringNo

The custom labels.

key=value
SortstringNo

The field that you use to sort the query results.

Valid values:

  • LocationDateClusterEndTime: by the time at which the latest photo in a cluster was taken.
  • CreateTime: by the creation time of a spatiotemporal cluster.
  • UpdateTime: by the update time of a spatiotemporal cluster.
  • LocationDateClusterStartTime: by the time at which the earliest photo in a cluster was taken. This is the default value.
LocationDateClusterStartTime
OrderstringNo

The order that you use to sort the query results.

Valid values:

  • asc: ascending order. This is the default value.
  • desc: descending order.
asc

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

7055FCF7-4D7B-098E-BD4D-DD2932B0****
LocationDateClustersarray

The list of spatiotemporal clusters.

LocationDateClustersLocationDateCluster

The spatiotemporal cluster information.

NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

MzQNjmY2MzYxNhNjk2ZNjEu****

Examples

Sample success responses

JSONformat

{
  "RequestId": "7055FCF7-4D7B-098E-BD4D-DD2932B0****",
  "LocationDateClusters": [
    {
      "Title": "",
      "LocationDateClusterLevel": "",
      "LocationDateClusterStartTime": "",
      "LocationDateClusterEndTime": "",
      "Addresses": [
        {
          "Language": "",
          "AddressLine": "",
          "Country": "",
          "Province": "",
          "City": "",
          "District": "",
          "Township": ""
        }
      ],
      "ObjectId": "",
      "UpdateTime": "",
      "CreateTime": "",
      "CustomId": "",
      "CustomLabels": {
        "test": "test",
        "test2": 1
      }
    }
  ],
  "NextToken": "MzQNjmY2MzYxNhNjk2ZNjEu****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history