統計

メモ
エキスパートレベル
API キーは、リクエストの Authorization ヘッダーでベアラー トークンとして送信する必要があります。 API キーを取得する.
ショー

API エンドポイント:

GET
https://analytics.mansan.jp/api/v1/stats/{id}

リクエスト例:

curl --location --request GET 'https://analytics.mansan.jp/api/v1/stats/{id}?name={name}&from={from}&to={to}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
パラメータ
タイプ
説明
name
必須 string
統計の名前 可能な値は次のとおりです: browser, campaign, city, continent, country, device, event, landing_page, language, os, page, pageviews, pageviews_hour, referrer, resolution, visitors, visitors_hour.
from
必須 string
Y-m-d 形式の開始日
to
必須 string
Y-m-d 形式の終了日
search
オプション string
検索クエリ
search_by
オプション string
検索条件. 可能な値は次のとおりです: value. デフォルト: url.
sort_by
オプション string
並べ替え. 可能な値は次のとおりです: countCount, value. デフォルト: count.
sort
オプション string
並べ替え. 可能な値は次のとおりです: desc降順, asc昇順. デフォルト: desc.
per_page
オプション integer
ページあたりの結果. 可能な値は次のとおりです: 10, 25, 50, 100. デフォルト: 50.