> ## Documentation Index > Fetch the complete documentation index at: https://documents.trocco.io/llms.txt > Use this file to discover all available pages before exploring further. # クエリ集検索 > クエリ集を検索します。 ## OpenAPI ````json POST /api/public/v1/cometa/queries/search { "openapi": "3.0.3", "info": { "title": "[ベータ] COMETA APIリファレンス", "description": "COMETA APIリファレンス", "version": "0.0.1" }, "servers": [ { "url": "https://trocco.io" } ], "paths": { "/api/public/v1/cometa/queries/search": { "post": { "summary": "クエリ集検索", "description": "クエリ集を検索します。\n", "operationId": "searchCometaQueries", "tags": [ "cometa_queries" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "q": { "description": "検索クエリ文字列を指定します。", "type": "string", "example": "GMV" }, "catalog_id": { "description": "検索対象を絞り込むデータストアIDを指定します。", "type": "integer", "format": "int64", "example": 17 }, "review_status": { "description": "レビュー状態による絞り込みを指定します。", "type": "string", "enum": [ "unverified", "approved" ], "example": "approved" }, "page": { "description": "取得するページ番号を指定します。1始まり。", "type": "integer", "default": 1, "example": 1 }, "page_size": { "description": "1ページあたりの最大件数を指定します。", "type": "integer", "default": 20, "minimum": 20, "maximum": 100, "example": 20 } }, "required": [ "q" ] } } } }, "responses": { "200": { "description": "検索結果を返します。", "content": { "application/json": { "schema": { "allOf": [ { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/cometa_query" } } }, "required": [ "items" ] }, { "$ref": "#/components/schemas/cometa_pagination" } ] } } } }, "400": { "$ref": "#/components/responses/api_error_response" }, "401": { "$ref": "#/components/responses/401_response" }, "403": { "$ref": "#/components/responses/403_response" } } } } }, "components": { "schemas": { "cometa_query": { "title": "CometaQuery", "type": "object", "properties": { "id": { "description": "クエリ集のIDです。", "type": "integer", "format": "int64", "example": 9001 }, "title": { "description": "クエリのタイトルです。", "type": "string", "example": "Daily GMV breakdown" }, "description": { "description": "クエリの説明です。", "type": "string", "nullable": true, "example": "日次の注文金額を地域別に集計します。" }, "sql": { "description": "クエリ本文です。", "type": "string", "example": "SELECT date_trunc('day', ordered_at) AS day, region, SUM(amount) FROM orders GROUP BY 1, 2;" }, "catalog_id": { "description": "関連付けられているデータストアのIDです。", "type": "integer", "format": "int64", "nullable": true, "example": 17 }, "author_email": { "description": "クエリ作成者のメールアドレスです。作成者が削除済みの場合は`null`を返します。", "type": "string", "nullable": true, "example": "analytics@example.com" }, "updated_at": { "description": "最終更新日時 (ISO8601 / UTC) です。", "type": "string", "example": "2026-04-10T12:34:56Z" } }, "required": [ "id", "title", "sql", "updated_at" ] }, "cometa_pagination": { "title": "CometaPagination", "type": "object", "properties": { "pagination": { "type": "object", "properties": { "current_page": { "description": "現在のページ番号です。1始まり。", "type": "integer", "example": 1 }, "page_size": { "description": "1ページあたりの最大件数です。", "type": "integer", "example": 20 }, "total_count": { "description": "検索条件にマッチした全件数です。", "type": "integer", "example": 42 } }, "required": [ "current_page", "page_size", "total_count" ] } }, "required": [ "pagination" ] } }, "responses": { "api_error_response": { "description": "/api系の共通エラーレスポンス", "content": { "application/json": { "schema": { "title": "ApiErrorResponse", "type": "object", "properties": { "message": { "type": "string", "example": "不正なリクエストです。" } } } } } }, "401_response": { "description": "認証エラー", "content": { "application/json": { "schema": { "title": "ErrorResponse401", "type": "object", "properties": { "message": { "type": "string", "example": "アカウント登録もしくはログインしてください。" } } } } } }, "403_response": { "description": "認可エラー", "content": { "application/json": { "schema": { "title": "ErrorResponse403", "type": "object", "properties": { "message": { "type": "string", "example": "操作を実行する権限がありません。" } } } } } } } } } ````