Вебсайты

Notes
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
Список

API endpoint:

GET
https://analytics.d-v.online/api/v1/websites

Request example:

curl --location --request GET 'https://analytics.d-v.online/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Тип
Описание
search
optional string
The search query.
search_by
optional string
Поиск по. Possible values are: domain for Домен. Defaults to: domain.
sort_by
optional string
Сортировать по. Possible values are: id for Date created, domain for Домен. Defaults to: id.
sort
optional string
Сортировать. Possible values are: desc for Descending, asc for Ascending. Defaults to: desc.
per_page
optional int
Результатов на страницу. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Показать

API endpoint:

GET
https://analytics.d-v.online/api/v1/websites/{id}

Request example:

curl --location --request GET 'https://analytics.d-v.online/api/v1/websites/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://analytics.d-v.online/api/v1/websites

Request example:

curl --location --request POST 'https://analytics.d-v.online/api/v1/websites' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'domain={domain}'
Parameter
Тип
Описание
domain
required string
Имя домена.
privacy
optional integer
Stats page privacy. Possible values are: 0 for Public, 1 for Private, 2 for Пароль. Defaults to: 1.
password
optional string
The password for the statistics page. Only works with privacy set to 2.
email
optional integer
Periodic email reports. Possible values are: 0 for Отключено, 1 for Enabled. Defaults to: 0.
exclude_bots
optional integer
Exclude common bots from being tracked. Possible values are: 0 for Отключено, 1 for Enabled. Defaults to: 1.
exclude_params
optional string
Exclude URL query parameters from being tracked. По одному на строку..
exclude_ips
optional string
Exclude IPs from being tracked. По одному на строку..
Update

API endpoint:

PUT PATCH
https://analytics.d-v.online/api/v1/websites/{id}

Request example:

curl --location --request PUT 'https://analytics.d-v.online/api/v1/websites/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Тип
Описание
privacy
optional integer
Stats page privacy. Possible values are: 0 for Public, 1 for Private, 2 for Пароль.
password
optional string
The password for the statistics page. Only works with privacy set to 2.
email
optional integer
Periodic email reports. Possible values are: 0 for Отключено, 1 for Enabled.
exclude_bots
optional integer
Exclude common bots from being tracked. Possible values are: 0 for Отключено, 1 for Enabled.
exclude_params
optional string
Exclude URL query parameters from being tracked. По одному на строку..
exclude_ips
optional string
Exclude IPs from being tracked. По одному на строку..
Удалить

API endpoint:

DELETE
https://analytics.d-v.online/api/v1/websites/{id}

Request example:

curl --location --request DELETE 'https://analytics.d-v.online/api/v1/websites/{id}' \
--header 'Authorization: Bearer {api_key}'