curl --request GET \
--url https://dashboard.dashsocial.com/reports/data \
--header 'Authorization: Bearer <token>'import requests
url = "https://dashboard.dashsocial.com/reports/data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dashboard.dashsocial.com/reports/data', 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://dashboard.dashsocial.com/reports/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://dashboard.dashsocial.com/reports/data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dashboard.dashsocial.com/reports/data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.dashsocial.com/reports/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": "<unknown>"
}{
"code": 123,
"errors": {},
"message": "<string>",
"status": "<string>"
}{
"code": 123,
"errors": {},
"message": "<string>",
"status": "<string>"
}Get report data
Retrieve report data for Owned, Earned, Community, Social Listening, TSI, and Social Advertising reports using query parameters.
- See Export dashboard report data via API for detailed guides on each report type.
curl --request GET \
--url https://dashboard.dashsocial.com/reports/data \
--header 'Authorization: Bearer <token>'import requests
url = "https://dashboard.dashsocial.com/reports/data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dashboard.dashsocial.com/reports/data', 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://dashboard.dashsocial.com/reports/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://dashboard.dashsocial.com/reports/data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dashboard.dashsocial.com/reports/data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.dashsocial.com/reports/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": "<unknown>"
}{
"code": 123,
"errors": {},
"message": "<string>",
"status": "<string>"
}{
"code": 123,
"errors": {},
"message": "<string>",
"status": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The content length of report data
Channels requested by the report
1FACEBOOK, INSTAGRAM, INSTAGRAM_UGC, INSTAGRAM_STORIES, INSTAGRAM_COMPETITIVE, INSTAGRAM_BENCHMARKS, PINTEREST, TIKTOK, TWITTER, YOUTUBE Sort Order requested by the report (ASC | DESC)
ASC, DESC Start date of the reporting time range. Required if include_data=True
"2021-02-01"
End date of the reporting time range. Required if include_data=True
"2021-02-07"
Filters for specific channels
Show child attributes
Show child attributes
Preferred filename prefix for the report. If not provided, report_type type will be used.
Metric requested by the report
1List of ids of the brands requested by the report
1x >= 0The way data should be grouped in graph reports, can be either DAILY or MONTHLY
DAILY, MONTHLY "DAILY"
The type report data to return can be: ['CONTENT_OWNED', 'CONTENT_OWNED_STORIES', 'CONTENT_UGC', 'CONTENT', 'MULTI_BRAND_METRIC', 'SINGLE_METRIC', 'GRAPH', 'HEADER', 'COMPETITIVE_CONTENT', 'COMPETITIVE_MULTI_BRAND_METRIC', 'COMPETITIVE_GRAPH', 'MULTI_METRIC_MEDIA_TYPE', 'BENCHMARK_METRIC', 'BENCHMARK_GRAPH']
CONTENT_OWNED, CONTENT_OWNED_STORIES, CONTENT_UGC, CONTENT, MULTI_BRAND_METRIC, SINGLE_METRIC, GRAPH, HEADER, COMPETITIVE_CONTENT, COMPETITIVE_MULTI_BRAND_METRIC, COMPETITIVE_GRAPH, MULTI_METRIC_MEDIA_TYPE, BENCHMARK_METRIC, BENCHMARK_GRAPH "SINGLE_METRIC"
The format in which the report will be returned
csv List of ids of the competitive brands requested by the report
1If true, ElasticSearch stats will have a null value instead of a 0 if no posts of the required type have been created within the requested time frame.
Start date of the reporting comparison time range. Required for metric reports
"2021-01-07"
If true, the share of voice metric will be calculated for valid isntagram competitive metrics
Start date of the reporting comparison time range. Required for metric reports
"2021-01-01"
Response
OK
Report data on the requested metric