curl --request GET \
--url https://api.solaraai.com/api/v1/performance/posts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/performance/posts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/performance/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"posts": [
{
"fetched_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"made_with_solara": true,
"media_type": "video",
"platform": "youtube",
"published_at": "2023-11-07T05:31:56Z",
"sparkline": [
{
"at": "2023-11-07T05:31:56Z",
"value": 123
}
],
"status": "ok",
"values": [
{
"metric": "views",
"value": 123,
"missing": "not_shared"
}
],
"account_name": "<string>",
"caption": "<string>",
"content_missing": "deleted_by_rule",
"permalink": "<string>",
"post_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thumbnail_url": "<string>",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"total": 123
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}List posts and their numbers
Solara AI API: One row per post on a platform published in the range (a post on three platforms is three rows) with its newest numbers, sorted by sort and order; total counts every row past limit. made_with is solara (the posts Solara published) or everything. The numbers are lifetime totals at their last read.
Permission: Read (read).
curl --request GET \
--url https://api.solaraai.com/api/v1/performance/posts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/performance/posts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/performance/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"posts": [
{
"fetched_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"made_with_solara": true,
"media_type": "video",
"platform": "youtube",
"published_at": "2023-11-07T05:31:56Z",
"sparkline": [
{
"at": "2023-11-07T05:31:56Z",
"value": 123
}
],
"status": "ok",
"values": [
{
"metric": "views",
"value": 123,
"missing": "not_shared"
}
],
"account_name": "<string>",
"caption": "<string>",
"content_missing": "deleted_by_rule",
"permalink": "<string>",
"post_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thumbnail_url": "<string>",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"total": 123
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
Query Parameters
The Overview's platform menu: only these of its platforms (TikTok, Instagram, Facebook, Threads), repeat it for several; absent: all four. YouTube, X and LinkedIn are never added into the Overview: asked, they are ignored (X and LinkedIn still choose their By platform lines). Ignored on a platform's tab
youtube, tiktok, instagram, facebook, threads, x, linkedin, linkedin_page published_at, or any metric of the scope (get-performance-summary's metrics); a post without that number sorts last
published_at, views, impressions, unique_impressions, reach, likes, reactions, comments, replies, shares, reposts, quotes, saves, bookmarks, clicks, link_clicks, profile_clicks, profile_visits, follows, watch_time, average_view, average_watch_time, subscribers_gained, engagement