آمار

یادداشت ها
سطح حرفه ای
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
نمایش

API endpoint:

GET
http://amaryab.com/api/v1/stats/{id}

درخواست مثال:

curl --location --request GET 'http://amaryab.com/api/v1/stats/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
نوع
Description
from
الزامی string
The starting date in Y-m-d format.
to
الزامی string
The ending date in Y-m-d format.
name
الزامی string
The name of the statistic. Possible values are: browser, campaign, city, continent, country, device, event, landing_page, language, os, page, pageviews, pageviews_hours, referrer, resolution, visitors, visitors_hours.
search
اختیاری string
The search query.
sort
اختیاری string
مرتب سازی. Possible values are: max for Best performing, min for Least performing. Defaults to: max.
per_page
اختیاری int
Results per page. Possible values are: 10 to 100. Defaults to: 10.