Search a user's Looker Studio assets.
Request
HTTP request
GET https://datastudio.googleapis.com/v1/assets:search
Parameters
Parameter name | Type | Description |
---|---|---|
assetTypes | Array<AssetType> | Required. The asset type to search. Exactly one asset type must be specified. |
title | string | The search string. By default, the string is checked against the title and description of the asset. See the Examples section for advanced search strings. |
includeTrashed | boolean | Defaults to false .
|
owner | string | The asset owner's email. |
orderBy | string | The order of the results. You can sort by the following fields:
|
pageSize | number | The number of results to include per page. Defaults to 1000. |
pageToken | string | A token identifying a page of results to return. To paginate results, use a nextPageToken value or previousPageToken value from another request. |
Authorization
This request requires authorization with at least one of the following scopes:
Scope |
---|
https://www.googleapis.com/auth/datastudio.readonly |
https://www.googleapis.com/auth/datastudio |
Request body
Don't supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{
"assets": [Asset],
"nextPageToken": string
}
Property name | Type | Description |
---|---|---|
assets | Array<Asset> | The list of assets. |
nextPageToken | string | A token to retrieve the next page of results. This property is only present when the number of results is greater than the request pageSize . An empty nextPageToken indicates that there are no more results to return. |
previousPageToken | string | A token to retrieve the previous page of results. An empty previousPageToken indicates the beginning of the result set. |
Examples
You can pass advanced search strings in the title
field.
You can use multiple search types in a single search string.
See the following table for supported search string syntax. You can combine
multiple search strings.
Filter | Definition | Examples |
---|---|---|
Creator | Search for assets created by a specific user. |
|
Owner | Search for assets owned by a specific user. |
|
Project | Search for assets in a project. |
|
Workspace | Search for assets in a workspace or folder. |
|
From | Search for assets that a user has shared with you. |
|
To | Search for assets that you have shared with a user or group. |
|