Export Conversion Analytics
curl --request POST \
--url https://api.scanova.io/analytics/ct/export/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"q": [
"<string>"
]
}
'import requests
url = "https://api.scanova.io/analytics/ct/export/"
payload = { "q": ["<string>"] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: ['<string>']})
};
fetch('https://api.scanova.io/analytics/ct/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.scanova.io/analytics/ct/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([
'q' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.scanova.io/analytics/ct/export/"
payload := strings.NewReader("{\n \"q\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.scanova.io/analytics/ct/export/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"q\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scanova.io/analytics/ct/export/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body"<string>"Référence API
Exporter l'analyse des conversions
Exportez l’analyse agrégée du suivi des conversions aux formats CSV, XLS ou XLSX, avec des filtres par QR Code, catégorie, utilisateur ou plage de dates.
POST
/
analytics
/
ct
/
export
/
Export Conversion Analytics
curl --request POST \
--url https://api.scanova.io/analytics/ct/export/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"q": [
"<string>"
]
}
'import requests
url = "https://api.scanova.io/analytics/ct/export/"
payload = { "q": ["<string>"] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: ['<string>']})
};
fetch('https://api.scanova.io/analytics/ct/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.scanova.io/analytics/ct/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([
'q' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.scanova.io/analytics/ct/export/"
payload := strings.NewReader("{\n \"q\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.scanova.io/analytics/ct/export/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"q\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scanova.io/analytics/ct/export/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body"<string>"Paramètres de requête
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
type | string | Non | Sections séparées par des virgules. Le plus souvent : count,trend,event_breakdown,site_breakdown,funnel,scan_overview,hybrid_funnel. |
from | string (YYYY-MM-DD) | Oui | Date de début, incluse. |
to | string (YYYY-MM-DD) | Oui | Date de fin, incluse. |
file_format | string | Oui | L’une des valeurs csv, xls ou xlsx. |
sheet | string | Non | Pour le CSV uniquement : clé de la feuille choisie. Exemples : count, trend, event_breakdown, site_breakdown, funnel, hybrid_funnel, scan_overview. |
all | boolean | Non | Inclure tous les QR Codes concernés. |
search | string | Non | Valeur de recherche utilisée avec all=true. |
category | string | Non | Identifiants de catégorie séparés par des virgules. |
users | string | Non | Identifiants d’utilisateur séparés par des virgules. |
conversion_events | string | Non | Clés d’événements de conversion séparées par des virgules. |
funnel_steps | string | Non | Clés d’événements ordonnées, séparées par des virgules, pour le calcul de l’entonnoir. |
Corps de la requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
filter_by | string | Oui | L’une des valeurs qrid, id ou tags. |
q | array[string] | Oui | Valeurs correspondant à filter_by. |
Exemple
curl -X POST "https://api.scanova.io/analytics/ct/export/?type=count,trend,event_breakdown,site_breakdown,funnel,scan_overview,hybrid_funnel&from=2026-03-03&to=2026-03-10&file_format=xlsx" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"filter_by": "qrid",
"q": ["Q20a18d4af3e947a1"]
}'
Autorisations
API key authentication. Enter your API key directly in the Authorization header.
Paramètres de requête
Comma-separated analytics sections.
Options disponibles:
csv, xls, xlsx CSV sheet key.
Corps
application/json
Réponse
File generated successfully
The response is of type file.
Cette page vous a-t-elle été utile ?