LinkedIn results for a period
curl --request GET \
--url https://api.captureflow.ai/v1/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.captureflow.ai/v1/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.captureflow.ai/v1/analytics', 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.captureflow.ai/v1/analytics",
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://api.captureflow.ai/v1/analytics"
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://api.captureflow.ai/v1/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.captureflow.ai/v1/analytics")
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{
"object": "analytics",
"has_data": true,
"message": "<string>",
"account": {
"platform": "linkedin",
"type": "personal",
"connected": true
},
"period": {
"from": "<string>",
"to": "<string>",
"previous_from": "<string>",
"previous_to": "<string>",
"days": 0
},
"days_with_data": {
"current": 0,
"previous": 0
},
"as_of": "<string>",
"totals_coverage": "full",
"impressions": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"engagements": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"new_followers": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"engagement_rate": 123,
"posts_published": {
"captureflow": 0,
"external_known": 0,
"change_pct": 123
},
"reach": {
"value": 123,
"window_from": "<string>",
"window_to": "<string>"
},
"saves": {
"value": 123,
"window_from": "<string>",
"window_to": "<string>"
},
"sends": {
"value": 123,
"window_from": "<string>",
"window_to": "<string>"
},
"clicks": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"organic_followers": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"paid_followers": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"impressions_30d": {
"value": 123,
"window": "30d",
"as_of": "<string>"
},
"page_views": {
"value": 123,
"window": "30d",
"as_of": "<string>"
},
"series": {
"interval": "day",
"points": [
{
"date": "<string>",
"days": 0,
"impressions": 123,
"engagements": 123,
"new_followers": 123
}
]
},
"app_url": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}Analytics
LinkedIn results for a period
The person’s LinkedIn account results (personal profile or company page) over whole days ending yesterday, with the period before for comparison, like CaptureFlow’s Analytics page. Analytics belong to whoever connected LinkedIn in the workspace: owners and admins read a member’s with as_user. Numbers are up to a day old (as_of); a missing day is null, never an estimate.
GET
/
analytics
LinkedIn results for a period
curl --request GET \
--url https://api.captureflow.ai/v1/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.captureflow.ai/v1/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.captureflow.ai/v1/analytics', 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.captureflow.ai/v1/analytics",
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://api.captureflow.ai/v1/analytics"
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://api.captureflow.ai/v1/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.captureflow.ai/v1/analytics")
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{
"object": "analytics",
"has_data": true,
"message": "<string>",
"account": {
"platform": "linkedin",
"type": "personal",
"connected": true
},
"period": {
"from": "<string>",
"to": "<string>",
"previous_from": "<string>",
"previous_to": "<string>",
"days": 0
},
"days_with_data": {
"current": 0,
"previous": 0
},
"as_of": "<string>",
"totals_coverage": "full",
"impressions": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"engagements": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"new_followers": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"engagement_rate": 123,
"posts_published": {
"captureflow": 0,
"external_known": 0,
"change_pct": 123
},
"reach": {
"value": 123,
"window_from": "<string>",
"window_to": "<string>"
},
"saves": {
"value": 123,
"window_from": "<string>",
"window_to": "<string>"
},
"sends": {
"value": 123,
"window_from": "<string>",
"window_to": "<string>"
},
"clicks": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"organic_followers": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"paid_followers": {
"value": 123,
"previous": 123,
"change_pct": 123
},
"impressions_30d": {
"value": 123,
"window": "30d",
"as_of": "<string>"
},
"page_views": {
"value": 123,
"window": "30d",
"as_of": "<string>"
},
"series": {
"interval": "day",
"points": [
{
"date": "<string>",
"days": 0,
"impressions": 123,
"engagements": 123,
"new_followers": 123
}
]
},
"app_url": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}Query Parameters
The workspace to act in (ids from list_workspaces). Optional when the key or app has a default or a lock, or you belong to one workspace.
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Owners and admins only: act as this member of the workspace, like View As (user ids from list_members). Every use is audited.
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Response
OK

