Request export
curl --request POST \
--url https://api.engagefabric.com/api/v1/analytics/export \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"dataType": "overview",
"format": "csv",
"startDate": "2025-01-01T00:00:00Z",
"endDate": "2025-12-31T23:59:59Z"
}
'import requests
url = "https://api.engagefabric.com/api/v1/analytics/export"
payload = {
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"dataType": "overview",
"format": "csv",
"startDate": "2025-01-01T00:00:00Z",
"endDate": "2025-12-31T23:59:59Z"
}
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({
projectId: '550e8400-e29b-41d4-a716-446655440000',
dataType: 'overview',
format: 'csv',
startDate: '2025-01-01T00:00:00Z',
endDate: '2025-12-31T23:59:59Z'
})
};
fetch('https://api.engagefabric.com/api/v1/analytics/export', 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.engagefabric.com/api/v1/analytics/export",
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([
'projectId' => '550e8400-e29b-41d4-a716-446655440000',
'dataType' => 'overview',
'format' => 'csv',
'startDate' => '2025-01-01T00:00:00Z',
'endDate' => '2025-12-31T23:59:59Z'
]),
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.engagefabric.com/api/v1/analytics/export"
payload := strings.NewReader("{\n \"projectId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"dataType\": \"overview\",\n \"format\": \"csv\",\n \"startDate\": \"2025-01-01T00:00:00Z\",\n \"endDate\": \"2025-12-31T23:59:59Z\"\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.engagefabric.com/api/v1/analytics/export")
.header("Content-Type", "application/json")
.body("{\n \"projectId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"dataType\": \"overview\",\n \"format\": \"csv\",\n \"startDate\": \"2025-01-01T00:00:00Z\",\n \"endDate\": \"2025-12-31T23:59:59Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/api/v1/analytics/export")
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 \"projectId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"dataType\": \"overview\",\n \"format\": \"csv\",\n \"startDate\": \"2025-01-01T00:00:00Z\",\n \"endDate\": \"2025-12-31T23:59:59Z\"\n}"
response = http.request(request)
puts response.read_body{
"exportId": "<string>",
"estimatedSeconds": 123
}Analytics
Request export
Initiates an async data export job. Returns export ID for status polling.
POST
/
api
/
v1
/
analytics
/
export
Request export
curl --request POST \
--url https://api.engagefabric.com/api/v1/analytics/export \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"dataType": "overview",
"format": "csv",
"startDate": "2025-01-01T00:00:00Z",
"endDate": "2025-12-31T23:59:59Z"
}
'import requests
url = "https://api.engagefabric.com/api/v1/analytics/export"
payload = {
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"dataType": "overview",
"format": "csv",
"startDate": "2025-01-01T00:00:00Z",
"endDate": "2025-12-31T23:59:59Z"
}
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({
projectId: '550e8400-e29b-41d4-a716-446655440000',
dataType: 'overview',
format: 'csv',
startDate: '2025-01-01T00:00:00Z',
endDate: '2025-12-31T23:59:59Z'
})
};
fetch('https://api.engagefabric.com/api/v1/analytics/export', 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.engagefabric.com/api/v1/analytics/export",
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([
'projectId' => '550e8400-e29b-41d4-a716-446655440000',
'dataType' => 'overview',
'format' => 'csv',
'startDate' => '2025-01-01T00:00:00Z',
'endDate' => '2025-12-31T23:59:59Z'
]),
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.engagefabric.com/api/v1/analytics/export"
payload := strings.NewReader("{\n \"projectId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"dataType\": \"overview\",\n \"format\": \"csv\",\n \"startDate\": \"2025-01-01T00:00:00Z\",\n \"endDate\": \"2025-12-31T23:59:59Z\"\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.engagefabric.com/api/v1/analytics/export")
.header("Content-Type", "application/json")
.body("{\n \"projectId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"dataType\": \"overview\",\n \"format\": \"csv\",\n \"startDate\": \"2025-01-01T00:00:00Z\",\n \"endDate\": \"2025-12-31T23:59:59Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/api/v1/analytics/export")
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 \"projectId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"dataType\": \"overview\",\n \"format\": \"csv\",\n \"startDate\": \"2025-01-01T00:00:00Z\",\n \"endDate\": \"2025-12-31T23:59:59Z\"\n}"
response = http.request(request)
puts response.read_body{
"exportId": "<string>",
"estimatedSeconds": 123
}Body
application/json
Project ID to export data from
Example:
"550e8400-e29b-41d4-a716-446655440000"
Type of data to export
Available options:
players, events, quests, overview, retention Example:
"overview"
Export format
Available options:
csv, json Start date for export range (ISO 8601)
Example:
"2025-01-01T00:00:00Z"
End date for export range (ISO 8601)
Example:
"2025-12-31T23:59:59Z"
⌘I
