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日間です。1日分のデータを取得するには、start と end に同じ日付を指定します。offset は since または last と併用できます。日付はKST基準で、当日を除きます。クエリパラメータ
レスポンス
データがある場合は text/csv を返します。日付は DD/MM/YYYY 形式で、未対応の指標は 0 です。コンバージョンの種類は 전체 전환(全体)、직접 전환(直接)、전환 매출(売上)のいずれかです。最大10件を conversion_1 から conversion_10 に出力し、残りの列は空欄になります。該当するデータがない場合、期間指定に関する一部のエラーが発生した場合、またはCSVが2 MBを超える場合は text/plain のメッセージを返します。
The response is of type string.
