Assets: search
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ユーザーの Looker Studio アセットを検索します。
リクエスト
HTTP リクエスト
GET https://datastudio.googleapis.com/v1/assets:search
パラメータ
パラメータ名 |
型 |
説明 |
assetTypes |
Array<AssetType> |
必須。検索するアセットタイプ。アセットタイプは 1 つだけ指定する必要があります。 |
title |
文字列 |
検索文字列。デフォルトでは、文字列はアセットのタイトルと説明に対してチェックされます。高度な検索文字列については、例のセクションをご覧ください。 |
includeTrashed |
ブール値 |
デフォルトは false です。- このパラメータを
true に設定すると、ゴミ箱内のアセットのみが含まれます。 - このパラメータを
false に設定すると、ゴミ箱に入っていないアセットのみが含まれます。
|
オーナー |
文字列 |
アセットの所有者のメールアドレス。 |
orderBy |
文字列 |
結果の順序。次のフィールドで並べ替えることができます。
title
last_viewed_by_me
create_time
last_accessed_time
id
|
pageSize |
数値 |
1 ページに含める結果の数。デフォルトは 1,000 です。 |
pageToken |
文字列 |
返される結果のページを特定するトークン。結果をページ設定するには、別のリクエストの nextPageToken 値または previousPageToken 値を使用します。 |
承認
このリクエストは、少なくとも次のうち 1 つのスコープによる承認が必要です。
スコープ |
https://www.googleapis.com/auth/datastudio.readonly |
https://www.googleapis.com/auth/datastudio |
リクエストの本文
このメソッドでは、リクエストの本文を指定しません。
レスポンス
成功すると、このメソッドは次の構造を含むレスポンスの本文を返します。
{
"assets": [Asset],
"nextPageToken": string
}
プロパティ名 |
型 |
説明 |
アセット |
Array<Asset> |
アセットのリスト。 |
nextPageToken |
文字列 |
結果の次のページを取得するためのトークン。 このプロパティは、結果の数がリクエストの pageSize より大きい場合にのみ存在します。nextPageToken が空の場合、返される結果は他にありません。 |
previousPageToken |
文字列 |
結果の前のページを取得するためのトークン。空の previousPageToken は、結果セットの先頭を示します。 |
例
詳細検索文字列は title
フィールドで渡すことができます。1 つの検索文字列で複数の検索タイプを使用できます。サポートされている検索文字列の構文については、次の表をご覧ください。複数の検索文字列を組み合わせることができます。
フィルタ |
定義 |
例 |
作成者 |
特定のユーザーが作成したアセットを検索します。 |
creator:me creator:user@example.com
|
オーナー |
特定のユーザーが所有するアセットを検索します。 |
owner:me owner:user@example.com
|
プロジェクト |
プロジェクト内のアセットを検索します。 |
|
ワークスペース |
ワークスペースまたはフォルダ内のアセットを検索する。 |
parentWorkspace:2a080c66-50cb-4399-92a8-74c534da2de9
|
差出人 |
ユーザーが共有したアセットを検索します。 |
|
宛先 |
ユーザーまたはグループと共有したアセットを検索します。 |
to:user@example.com to:example-group@googlegroups.com
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eSearch for specific Looker Studio assets using parameters like asset type, title, owner, and more.\u003c/p\u003e\n"],["\u003cp\u003eFilter search results to include or exclude trashed assets.\u003c/p\u003e\n"],["\u003cp\u003eOrder results by title and control the number of results per page using pagination.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with specific scopes for data access.\u003c/p\u003e\n"],["\u003cp\u003eThe API response includes a list of matching assets and a token for retrieving subsequent pages.\u003c/p\u003e\n"]]],[],null,["# Assets: search\n\nSearch a user's Looker Studio assets.\n\nRequest\n-------\n\n### HTTP request\n\n GET https://datastudio.googleapis.com/v1/assets:search\n\n### Parameters\n\n| Parameter name | Type | Description |\n|----------------|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| assetTypes | Array\\\u003c[AssetType](/looker-studio/integrate/api/reference/types#AssetType)\\\u003e | **Required**. The asset type to search. Exactly one asset type must be specified. |\n| title | string | The search string. By default, the string is checked against the title and description of the asset. See the [Examples](#examples) section for advanced search strings. |\n| includeTrashed | boolean | Defaults to `false`. - When this parameter is set to `true`, only assets from the trash are included. - When this parameter is set to `false`, only assets not in the trash are included. |\n| owner | string | The asset owner's email. |\n| orderBy | string | The order of the results. You can sort by the following fields: - `title` - `last_viewed_by_me` - `create_time` - `last_accessed_time` - `id` |\n| pageSize | number | The number of results to include per page. Defaults to 1000. |\n| pageToken | string | A token identifying a page of results to return. To paginate results, use a `nextPageToken` value or `previousPageToken` value from another request. |\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes:\n\n| Scope |\n|-------------------------------------------------------|\n| `https://www.googleapis.com/auth/datastudio.readonly` |\n| `https://www.googleapis.com/auth/datastudio` |\n\n### Request body\n\nDon't supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure: \n\n {\n \"assets\": [Asset],\n \"nextPageToken\": string\n }\n\n| Property name | Type | Description |\n|-------------------|----------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| assets | Array\\\u003c[Asset](/looker-studio/integrate/api/reference/types#Asset)\\\u003e | The list of assets. |\n| 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. |\n| previousPageToken | string | A token to retrieve the previous page of results. An empty `previousPageToken` indicates the beginning of the result set. |\n\nExamples\n--------\n\nYou can pass advanced search strings in the `title` field.\nYou can use multiple search types in a single search string.\nSee the following table for supported search string syntax. You can combine\nmultiple search strings.\n\n| Filter | Definition | Examples |\n|-----------|--------------------------------------------------------------|---------------------------------------------------------------|\n| Creator | Search for assets created by a specific user. | - `creator:me` - `creator:user@example.com` |\n| Owner | Search for assets owned by a specific user. | - `owner:me` - `owner:user@example.com` |\n| Project | Search for assets in a project. | - `projectNumber:123456789` |\n| Workspace | Search for assets in a workspace or folder. | - `parentWorkspace:2a080c66-50cb-4399-92a8-74c534da2de9` |\n| From | Search for assets that a user has shared with you. | - `from:user@example.com` |\n| To | Search for assets that you have shared with a user or group. | - `to:user@example.com` - `to:example-group@googlegroups.com` |"]]