Get page report
1 |
GET /api/1/page/{id}/report |
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | False | Required | String (Bearer {access token}) | Pass the authentication token that was granted when you authorized access. |
id | Path | False | Required | String | The Act-On id of the page for which you want a report. |
Request
HTTP
Following is an example HTTP request:
1 2 3 4 |
GET /api/1/page/p-0051/report HTTP/1.1 Host: restapi.actonsoftware.com Authorization: Bearer 885dccd9732812bc94c9c1ccc2cd288f Cache-Control: no-cache |
curl
Following is an example curl request:
1 |
curl -X GET -H "Authorization: Bearer 885dccd9732812bc94c9c1ccc2cd288f" -H "Cache-Control: no-cache" 'https://restapi.actonsoftware.com/api/1/page/p-0051/report' |
Response
A successful request results in an HTTP 200 response in JSON like the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
{ "unique_known_visits": 0, "unique_unknown_visits": 2, "unique_known_clicks": 0, "unique_unknown_clicks": 1, "total_visits": 4, "total_clicks": 2, "incoming_traffic": { "Default": 4 }, "outgoing_clicks": { "Name of Clickthrough Link 1": 2 "Name of Clickthrough Link 2": 5 } } |