Paginaweergaven
GET https://basicwebstats.com/api/pageviews-advanced/
curl --request GET \
--url 'https://basicwebstats.com/api/pageviews-advanced/?website_id=1' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://basicwebstats.com/api/pageviews-advanced/?website_id=1' \
--header 'Authorization: Bearer {api_key}' \
| Parameters | Details | Beschrijving |
|---|---|---|
| website_id | Verplicht Geheel getal | |
| type | Optioneel String | Toegestane waarden: landing_page, pageview |
| session_id | Optioneel Geheel getal | |
| visitor_id | Optioneel Geheel getal | |
| has_bounced | Optioneel Geheel getal | Toegestane waarden: 0, 1 |
| search | Optioneel String | De zoekterm. |
| search_by | Optioneel String | Het veld waarin je zoekt. Toegestane waarden: path, title, referrer_host, referrer_path, utm_source, utm_medium, utm_campaign. |
| datetime_field | Optioneel String | Toegestane waarden: date |
| datetime_start | Optioneel String | Filter results starting from this datetime. Y-m-d H:i:s format. |
| datetime_end | Optioneel String | Filter results up to this datetime. Y-m-d H:i:s format. |
| order_by | Optioneel String | Het veld waarop je de resultaten sorteert. Toegestane waarden: event_id, session_id, visitor_id, path, title, has_bounced, expiration_date, date. |
| order_type | Optioneel String | De sorteervolgorde. Gebruik ASC voor oplopend en DESC voor aflopend. |
| page | Optioneel Geheel getal | Het paginanummer waarvan je resultaten wilt. Standaardwaarde: 1. |
| results_per_page | Optioneel Geheel getal | Het aantal resultaten per pagina. Toegestane waarden: 10, 25, 50, 100, 250, 500, 1000. Standaardwaarde: 25. |
{
"data": [
{
"id": 1,
"event_uuid": "4b3a71aeed5a4400913b84f38a11b6bf",
"session_id": 1,
"visitor_id": 1,
"website_id": 1,
"type": "pageview",
"path": "/dashboard",
"title": "Dashboard",
"referrer_host": null,
"referrer_path": null,
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"viewport_width": 1920,
"viewport_height": 1080,
"has_bounced": false,
"expiration_date": "2027-09-11",
"datetime": "2026-09-11 15:12:45"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total_results": 1,
"total_pages": 1
},
"links": {
"first": "https://basicwebstats.com/api/pageviews-advanced?website_id=1&page=1",
"last": "https://basicwebstats.com/api/pageviews-advanced?website_id=1&page=1",
"next": null,
"prev": null,
"self": "https://basicwebstats.com/api/pageviews-advanced?website_id=1&page=1"
}
}
GET https://basicwebstats.com/api/pageviews-advanced/{event_id}
curl --request GET \
--url 'https://basicwebstats.com/api/pageviews-advanced/{event_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://basicwebstats.com/api/pageviews-advanced/{event_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"event_uuid": "4b3a71aeed5a4400913b84f38a11b6bf",
"session_id": 1,
"visitor_id": 1,
"website_id": 1,
"type": "pageview",
"path": "/dashboard",
"title": "Dashboard",
"referrer_host": null,
"referrer_path": null,
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"viewport_width": 1920,
"viewport_height": 1080,
"has_bounced": false,
"expiration_date": "2027-09-11",
"datetime": "2026-09-11 15:12:45"
}
}
DELETE https://basicwebstats.com/api/pageviews-advanced/{event_id}
curl --request DELETE \
--url 'https://basicwebstats.com/api/pageviews-advanced/{event_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://basicwebstats.com/api/pageviews-advanced/{event_id}' \
--header 'Authorization: Bearer {api_key}' \