ADNUNTIUS
Search…
/page
How to send Page Views using the HTTP API
The HTTP API enables you to send user Page Views to Adnuntius Data.
Typically you are recommended to send these events from the user's browser using the Javascript API.

Request object

Data is sent to Adnuntius using a HTTP POST request, with a JSON payload containing the fields described below. A separate object is required for each page view event.
If the request is received correctly, an HTTP 200 status code will be returned.

Example request object

1
POST https://data.adnuntius.com/page
Copied!
1
{
2
"browserId": "123xyz",
3
"folderId": "00000000000123ab",
4
"keywords": ["sport", "tennis"],
5
"categories": ["IAB_24_44"],
6
"domainName": "sport.no"
7
}
Copied!

Field Descriptions

Name
Type
Description
browserId
String
A unique ID for the browser or device being used.
folderId
String
The Folder ID in Adnuntius Data, for example: 00000000000123ab You can also specify the folderId as a parameter in the request URL.
keywords
String[]
An array of keywords
categories
String[]
An array of categories
domainName
String
The domain name of the page

Example cURL request

This is a very simple example, using curl, demonstrating how a page view is sent to Adnuntius Data.
1
curl -H "Content-Type: application/json" https://data.adnuntius.com/page -d '{
2
"browserId": "123xyz",
3
"folderId": "00000000000123ab",
4
"keywords": ["sport", "tennis"],
5
"categories": ["IAB_24_44"],
6
"domainName": "sport.no" }'
Copied!

Example batch request

Page views can also be sent to adnuntius in bulk by adding them to an array like this:
1
[
2
{
3
"browserId": "123xyz",
4
"folderId": "00000000000123ab",
5
"keywords": ["sport", "tennis"],
6
"categories": ["IAB_24_44"],
7
"domainName": "sport.no"
8
},
9
{
10
"browserId": "123xyz",
11
"folderId": "00000000000123ab",
12
"keywords": ["sport", "tennis"],
13
"categories": ["IAB_24_44"],
14
"domainName": "sport.no"
15
}
16
]
Copied!
Last modified 5mo ago