get-campaign-statistics-csv
curl --request GET \
--url https://api.notifly.tech/v1/projects/{projectId}/statistics.csvimport requests
url = "https://api.notifly.tech/v1/projects/{projectId}/statistics.csv"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.notifly.tech/v1/projects/{projectId}/statistics.csv', 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.notifly.tech/v1/projects/{projectId}/statistics.csv",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifly.tech/v1/projects/{projectId}/statistics.csv"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.notifly.tech/v1/projects/{projectId}/statistics.csv")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.notifly.tech/v1/projects/{projectId}/statistics.csv")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodydate,resource_type,resource_id,resource_name,node_id,node_name,variant_id,variant_name,channel,channel_subtype,brand_message_target,tags,message_sent,message_failed,delivered,click,conversion_1_name,conversion_1_type,conversion_1_count,conversion_2_name,conversion_2_type,conversion_2_count,conversion_3_name,conversion_3_type,conversion_3_count,conversion_4_name,conversion_4_type,conversion_4_count,conversion_5_name,conversion_5_type,conversion_5_count,conversion_6_name,conversion_6_type,conversion_6_count,conversion_7_name,conversion_7_type,conversion_7_count,conversion_8_name,conversion_8_type,conversion_8_count,conversion_9_name,conversion_9_type,conversion_9_count,conversion_10_name,conversion_10_type,conversion_10_count
01/06/2025,campaign,campaign_example,Welcome,,,,,push-notification,text,,summer,1500,23,1477,234,purchase,전체 전환,45,,,,,,,,,,,,,,,,,,,,,,,,,,,{
"error": "<string>",
"message": "<string>"
}<string>{
"error": "<string>"
}{
"error": "<string>",
"message": "<string>"
}내보내기 & 분석
메시지 통계 CSV 다운로드
일자별 캠페인과 유저여정 통계를 CSV로 조회합니다.
GET
/
v1
/
projects
/
{projectId}
/
statistics.csv
get-campaign-statistics-csv
curl --request GET \
--url https://api.notifly.tech/v1/projects/{projectId}/statistics.csvimport requests
url = "https://api.notifly.tech/v1/projects/{projectId}/statistics.csv"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.notifly.tech/v1/projects/{projectId}/statistics.csv', 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.notifly.tech/v1/projects/{projectId}/statistics.csv",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifly.tech/v1/projects/{projectId}/statistics.csv"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.notifly.tech/v1/projects/{projectId}/statistics.csv")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.notifly.tech/v1/projects/{projectId}/statistics.csv")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodydate,resource_type,resource_id,resource_name,node_id,node_name,variant_id,variant_name,channel,channel_subtype,brand_message_target,tags,message_sent,message_failed,delivered,click,conversion_1_name,conversion_1_type,conversion_1_count,conversion_2_name,conversion_2_type,conversion_2_count,conversion_3_name,conversion_3_type,conversion_3_count,conversion_4_name,conversion_4_type,conversion_4_count,conversion_5_name,conversion_5_type,conversion_5_count,conversion_6_name,conversion_6_type,conversion_6_count,conversion_7_name,conversion_7_type,conversion_7_count,conversion_8_name,conversion_8_type,conversion_8_count,conversion_9_name,conversion_9_type,conversion_9_count,conversion_10_name,conversion_10_type,conversion_10_count
01/06/2025,campaign,campaign_example,Welcome,,,,,push-notification,text,,summer,1500,23,1477,234,purchase,전체 전환,45,,,,,,,,,,,,,,,,,,,,,,,,,,,{
"error": "<string>",
"message": "<string>"
}<string>{
"error": "<string>"
}{
"error": "<string>",
"message": "<string>"
}기간을 지정하려면
start와 end를 함께 쓰거나 since 또는 last를 사용하세요. 기본 조회 기간은 7일입니다. 하루만 조회하려면 start와 end에 같은 날짜를 지정하세요. offset은 since와 last에만 적용됩니다. 집계 날짜는 KST 기준이며 당일은 제외합니다.쿼리 매개변수
응답
데이터가 있으면 text/csv를 반환합니다. 날짜는 DD/MM/YYYY이며 지원하지 않는 지표는 0입니다. 전환 타입은 전체 전환, 직접 전환, 전환 매출 중 하나입니다. 최대 10개를 conversion_1부터 conversion_10까지 기록하고 나머지 칸은 비워 둡니다. 데이터가 없거나 일부 날짜 범위 오류가 발생하거나 CSV가 2MB를 초과하면 text/plain 메시지를 반환합니다.
The response is of type string.
