--- title: "Query Analysis Count " slug: "analytics-cloudsearch-analysiscount" updated: 2026-09-17T09:57:26Z published: 2026-09-17T09:57:26Z canonical: "api.ncloud-docs.com/analytics-cloudsearch-analysiscount" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Query Analysis Count 使われた検索Queryを分析してfield別Count集計を行います。 - city1: 都市区分フィールド1 ex) ソウル特別市、京畿道、忠清北道 - city2: 都市区分フィールド2 ex) 江南区、瑞草、九老区 - city3: 都市区分フィールド2 ex) ヨクサン洞、ジョンジャ洞、ソチョ洞 - country: 国家 - word: 検索Queryを形態素解析したword ``` POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/{name}/analysis/count ``` ## リクエスト ### リクエストパラメータ | パラメータ名 | 必須 | タイプ | 制約事項 | 説明 | | --- | --- | --- | --- | --- | | name | Yes | string | | 作成されているDomain名 | ### リクエストボディ | パラメータ名 | 必須 | タイプ | 制約事項 | 説明 | | --- | --- | --- | --- | --- | | from | Yes | string | | 開始時間(UTC, ex: 20161027T171340Z ) | | to | Yes | string | | 終了時間(UTC, ex: 20161027T171340Z ) | | field | Yes | [QueryAnalysisField](/docs/ja/common-apidatatype-csanalysisfieldenum) | | 集計field設定 | | max_size | Yes | string | | 取得する最大Size | ## レスポンス | フィールド名 | タイプ | 説明 | 備考 | | --- | --- | --- | --- | | key | string | 選択したfieldに該当する値 | | | doc_count | number | 選択したfieldのcount | | ### レスポンスStatus | Http Status | Desc | | --- | --- | | 200 | OK(リクエスト完了) | | 200 | status.code : -1(リクエスト失敗) | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | ## 例示 ### リクエスト例示 - 'word' Field Count ``` POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/car_dev/document/search POST /CloudSearch/real/v1/domain/car_dev/document/manage HTTP/1.1 Host:cloudsearch.apigw.ntruss.com accept:application/json x-ncp-apigw-signature-v2: cDwtHuQeGmwWyNmwlN6XIGA66zge4iMXvfoDQNna05g= x-ncp-apigw-timestamp: 1545817618751 x-ncp-iam-access-key: teGTwtcSEGA7fu28BGGi { "from": "2019-09-25T05:00:00Z", "to": "2019-09-25T15:00:00Z", "field": "word", "maxSize": 10 } ``` ### レスポンス例示 ``` [ { "key": "class", "doc_count": 3117 }, { "key": "bmw", "doc_count": 3027 }, { "key": "model", "doc_count": 2968 }, { "key": "2019", "doc_count": 1585 }, { "key": "e", "doc_count": 1570 }, { "key": "Sonata", "doc_count": 1560 }, { "key": "c", "doc_count": 1547 }, { "key": "2018", "doc_count": 1539 }, { "key": "Hyundai", "doc_count": 1534 }, { "key": "520", "doc_count": 1517 } ] ```