Sitios web

GET https://analytics.carlos-herrera.es/api/websites/
curl --request GET \
--url 'https://analytics.carlos-herrera.es/api/websites/' \
--header 'Authorization: Bearer {api_key}' \
Parámetros Detalles Descripción
page Opcional Integer Número de página del que desea obtener los resultados. El valor predeterminado es 1.
results_per_page Opcional Integer ¿Cuántos resultados desea por página? Los valores permitidos son: 10 , 25 , 50 , 100 , 250 , 500 , 1000. El valor predeterminado es 25.
{ "data": [ { "id": 1, "pixel_key": "1234567890123456", "name": "Localhost", "scheme": "https://", "host": "example.com", "path": "/", "tracking_type": "normal", "excluded_ips": "", "events_children_is_enabled": false, "sessions_replays_is_enabled": false, "email_reports_is_enabled": false, "email_reports_last_date": "2020-06-23 19:01:22", "bot_exclusion_is_enabled": true, "query_parameters_tracking_is_enabled": true, "ip_storage_is_enabled": false, "public_statistics_is_enabled": false, "public_statistics_password": false, "is_enabled": true, "datetime": "2019-11-01 12:00:30" "last_datetime": null }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://analytics.carlos-herrera.es/api/websites?&page=1", "last": "https://analytics.carlos-herrera.es/api/websites?&page=1", "next": null, "prev": null, "self": "https://analytics.carlos-herrera.es/api/websites?&page=1" } }
GET https://analytics.carlos-herrera.es/api/websites/{website_id}
curl --request GET \
--url 'https://analytics.carlos-herrera.es/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "pixel_key": "1234567890123456", "name": "Localhost", "scheme": "https://", "host": "example.com", "path": "/", "tracking_type": "normal", "excluded_ips": "", "events_children_is_enabled": false, "sessions_replays_is_enabled": false, "email_reports_is_enabled": false, "email_reports_last_date": "2020-06-23 19:01:22", "bot_exclusion_is_enabled": true, "query_parameters_tracking_is_enabled": true, "ip_storage_is_enabled": false, "public_statistics_is_enabled": false, "public_statistics_password": false, "is_enabled": true, "datetime": "2019-11-01 12:00:30" "last_datetime": null } }
POST https://analytics.carlos-herrera.es/api/websites
Parámetros Detalles Descripción
name Requerido Cadena -
scheme Opcional Cadena Valores permitidos: http://, https://
host Requerido Cadena Website Host & Path. Example: https://example.com/path.
tracking_type Opcional Cadena Valores permitidos: lightweight, normal
excluded_ips Opcional Cadena Exclude IPs from tracking. Enter comma separated values.
events_children_is_enabled Opcional Boolean Track visitor events (mouse clicks, resizes, scrolls, form submissions). Allowed values are: 0 or 1. Only available for normal tracking type.
sessions_replays_is_enabled Opcional Boolean Session replays. Allowed values are: 0 or 1. Only available for normal tracking type.
email_reports_is_enabled Opcional Boolean Email reports. Allowed values are: 0 or 1.
query_parameters_tracking_is_enabled Opcional Boolean -
bot_exclusion_is_enabled Opcional Boolean -
public_statistics_is_enabled Opcional Boolean -
public_statistics_password Opcional Cadena -
is_enabled Opcional Boolean Website tracking status. Allowed values are: 0 or 1.
curl --request POST \
--url 'https://analytics.carlos-herrera.es/api/websites' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=website.com' \
--form 'name=Example' \
{ "data": { "id": 1 } }
POST https://analytics.carlos-herrera.es/api/websites/{website_id}
Parámetros Detalles Descripción
name Opcional Cadena -
scheme Opcional Cadena Valores permitidos: http://, https://
host Opcional Cadena Website Host & Path. Example: https://example.com/path.
excluded_ips Opcional Cadena Exclude IPs from tracking. Enter comma separated values.
events_children_is_enabled Opcional Boolean Track visitor events (mouse clicks, resizes, scrolls, form submissions). Allowed values are: 0 or 1. Only available for normal tracking type.
sessions_replays_is_enabled Opcional Boolean Session replays. Allowed values are: 0 or 1. Only available for normal tracking type.
email_reports_is_enabled Opcional Boolean Email reports. Allowed values are: 0 or 1.
query_parameters_tracking_is_enabled Opcional Boolean -
bot_exclusion_is_enabled Opcional Boolean -
public_statistics_is_enabled Opcional Boolean -
public_statistics_password Opcional Cadena -
is_enabled Opcional Boolean Website tracking status. Allowed values are: 0 or 1.
curl --request POST \
--url 'https://analytics.carlos-herrera.es/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'is_enabled=0' \
{ "data": { "id": 1 } }
DELETE https://analytics.carlos-herrera.es/api/websites/{website_id}
curl --request DELETE \
--url 'https://analytics.carlos-herrera.es/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \