Raw export
Start the export of raw data
Start a raw data exportation for experiment or personalization, which will be sent to the given emails.
POST
/
raw-export
/
report
Start the export of raw data
curl --request POST \
--url https://api.kameleoon.com/raw-export/report \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"level": "VISIT",
"dateIntervals": [
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
}
],
"format": "CSV",
"actionType": "EXPERIMENT",
"receiverEmailAddrs": [
"john@kameleoon.com"
],
"filters": [
{
"type": "<string>",
"include": true
}
],
"filtersExpression": {
"operands": [
"<unknown>"
]
},
"customDataIds": [
123
]
}
'import requests
url = "https://api.kameleoon.com/raw-export/report"
payload = {
"id": 123,
"level": "VISIT",
"dateIntervals": [
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
}
],
"format": "CSV",
"actionType": "EXPERIMENT",
"receiverEmailAddrs": ["john@kameleoon.com"],
"filters": [
{
"type": "<string>",
"include": True
}
],
"filtersExpression": { "operands": ["<unknown>"] },
"customDataIds": [123]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: 123,
level: 'VISIT',
dateIntervals: [{start: '2023-11-07T05:31:56Z', end: '2023-11-07T05:31:56Z'}],
format: 'CSV',
actionType: 'EXPERIMENT',
receiverEmailAddrs: ['john@kameleoon.com'],
filters: [{type: '<string>', include: true}],
filtersExpression: {operands: ['<unknown>']},
customDataIds: [123]
})
};
fetch('https://api.kameleoon.com/raw-export/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kameleoon.com/raw-export/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 123,
'level' => 'VISIT',
'dateIntervals' => [
[
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z'
]
],
'format' => 'CSV',
'actionType' => 'EXPERIMENT',
'receiverEmailAddrs' => [
'john@kameleoon.com'
],
'filters' => [
[
'type' => '<string>',
'include' => true
]
],
'filtersExpression' => [
'operands' => [
'<unknown>'
]
],
'customDataIds' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kameleoon.com/raw-export/report"
payload := strings.NewReader("{\n \"id\": 123,\n \"level\": \"VISIT\",\n \"dateIntervals\": [\n {\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"format\": \"CSV\",\n \"actionType\": \"EXPERIMENT\",\n \"receiverEmailAddrs\": [\n \"john@kameleoon.com\"\n ],\n \"filters\": [\n {\n \"type\": \"<string>\",\n \"include\": true\n }\n ],\n \"filtersExpression\": {\n \"operands\": [\n \"<unknown>\"\n ]\n },\n \"customDataIds\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kameleoon.com/raw-export/report")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"level\": \"VISIT\",\n \"dateIntervals\": [\n {\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"format\": \"CSV\",\n \"actionType\": \"EXPERIMENT\",\n \"receiverEmailAddrs\": [\n \"john@kameleoon.com\"\n ],\n \"filters\": [\n {\n \"type\": \"<string>\",\n \"include\": true\n }\n ],\n \"filtersExpression\": {\n \"operands\": [\n \"<unknown>\"\n ]\n },\n \"customDataIds\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kameleoon.com/raw-export/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"level\": \"VISIT\",\n \"dateIntervals\": [\n {\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"format\": \"CSV\",\n \"actionType\": \"EXPERIMENT\",\n \"receiverEmailAddrs\": [\n \"john@kameleoon.com\"\n ],\n \"filters\": [\n {\n \"type\": \"<string>\",\n \"include\": true\n }\n ],\n \"filtersExpression\": {\n \"operands\": [\n \"<unknown>\"\n ]\n },\n \"customDataIds\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"msg": "<string>"
}{
"id": 123,
"msg": "<string>"
}{
"id": 123,
"msg": "<string>"
}{
"serviceName": "<string>",
"message": "<string>"
}{
"id": 123,
"msg": "<string>"
}Body
application/json
ID of the experiment or personalization
Analytics level VISIT/VISITOR
Available options:
VISIT, VISITOR Example:
"VISIT"
Date interval for the report
Minimum array length:
1Show child attributes
Show child attributes
Format of the report
Available options:
CSV Example:
"CSV"
Action type of the report
Available options:
EXPERIMENT, PERSONALIZATION Example:
"EXPERIMENT"
Type of the conversion, we have two options ALL_CONVERSION and CONVERTED_VISITS
Available options:
ALL_CONVERSION, CONVERTED_VISITS Receiver email addresses
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
Show child attributes
Show child attributes
- Option 1
- Option 2
Show child attributes
Show child attributes
Custom data to export
Was this page helpful?
⌘I
Start the export of raw data
curl --request POST \
--url https://api.kameleoon.com/raw-export/report \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"level": "VISIT",
"dateIntervals": [
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
}
],
"format": "CSV",
"actionType": "EXPERIMENT",
"receiverEmailAddrs": [
"john@kameleoon.com"
],
"filters": [
{
"type": "<string>",
"include": true
}
],
"filtersExpression": {
"operands": [
"<unknown>"
]
},
"customDataIds": [
123
]
}
'import requests
url = "https://api.kameleoon.com/raw-export/report"
payload = {
"id": 123,
"level": "VISIT",
"dateIntervals": [
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
}
],
"format": "CSV",
"actionType": "EXPERIMENT",
"receiverEmailAddrs": ["john@kameleoon.com"],
"filters": [
{
"type": "<string>",
"include": True
}
],
"filtersExpression": { "operands": ["<unknown>"] },
"customDataIds": [123]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: 123,
level: 'VISIT',
dateIntervals: [{start: '2023-11-07T05:31:56Z', end: '2023-11-07T05:31:56Z'}],
format: 'CSV',
actionType: 'EXPERIMENT',
receiverEmailAddrs: ['john@kameleoon.com'],
filters: [{type: '<string>', include: true}],
filtersExpression: {operands: ['<unknown>']},
customDataIds: [123]
})
};
fetch('https://api.kameleoon.com/raw-export/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kameleoon.com/raw-export/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 123,
'level' => 'VISIT',
'dateIntervals' => [
[
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z'
]
],
'format' => 'CSV',
'actionType' => 'EXPERIMENT',
'receiverEmailAddrs' => [
'john@kameleoon.com'
],
'filters' => [
[
'type' => '<string>',
'include' => true
]
],
'filtersExpression' => [
'operands' => [
'<unknown>'
]
],
'customDataIds' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kameleoon.com/raw-export/report"
payload := strings.NewReader("{\n \"id\": 123,\n \"level\": \"VISIT\",\n \"dateIntervals\": [\n {\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"format\": \"CSV\",\n \"actionType\": \"EXPERIMENT\",\n \"receiverEmailAddrs\": [\n \"john@kameleoon.com\"\n ],\n \"filters\": [\n {\n \"type\": \"<string>\",\n \"include\": true\n }\n ],\n \"filtersExpression\": {\n \"operands\": [\n \"<unknown>\"\n ]\n },\n \"customDataIds\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kameleoon.com/raw-export/report")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"level\": \"VISIT\",\n \"dateIntervals\": [\n {\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"format\": \"CSV\",\n \"actionType\": \"EXPERIMENT\",\n \"receiverEmailAddrs\": [\n \"john@kameleoon.com\"\n ],\n \"filters\": [\n {\n \"type\": \"<string>\",\n \"include\": true\n }\n ],\n \"filtersExpression\": {\n \"operands\": [\n \"<unknown>\"\n ]\n },\n \"customDataIds\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kameleoon.com/raw-export/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"level\": \"VISIT\",\n \"dateIntervals\": [\n {\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"format\": \"CSV\",\n \"actionType\": \"EXPERIMENT\",\n \"receiverEmailAddrs\": [\n \"john@kameleoon.com\"\n ],\n \"filters\": [\n {\n \"type\": \"<string>\",\n \"include\": true\n }\n ],\n \"filtersExpression\": {\n \"operands\": [\n \"<unknown>\"\n ]\n },\n \"customDataIds\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"msg": "<string>"
}{
"id": 123,
"msg": "<string>"
}{
"id": 123,
"msg": "<string>"
}{
"serviceName": "<string>",
"message": "<string>"
}{
"id": 123,
"msg": "<string>"
}