Analytics

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-analytics"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/f500219d-a504-43b5-8eb6-e48c25f66f34/social-card.svg?v=3e7ae33eec8b" alt="Analytics" width="600" height="315"></a>
GET http://localhost:4000/api/v1/analytics/overview

Totals for a period, with change against the period before

Parameters

from
string
query
required
to
string
query
required
timezone
string
query
channelIds
string[]
query
source
string
query
indrava | external | all = all

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/overview?from=<from>&to=<to>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/channels

Daily numbers per channel for a period

Parameters

from
string
query
required
to
string
query
required
timezone
string
query
channelIds
string[]
query
source
string
query
indrava | external | all = all

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/channels?from=<from>&to=<to>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/posts

The best-performing posts of a period

Parameters

from
string
query
required
to
string
query
required
timezone
string
query
channelIds
string[]
query
source
string
query
indrava | external | all = all
limit
integer
query
= 10

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/posts?from=<from>&to=<to>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/channels/{id}

One channel's own platform numbers for its last 7, 30 or 90 days

series holds each number the platform reports, with the total of the span before it (previous), the change as a fraction, and the average and peak of its days when the platform gives days. breakdowns split a number by kind. problem says why numbers are missing or old; optIn is set for a platform that bills each read.

Parameters

id
string
path
required
days
number
query
= 30

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/channels/{id}" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/best-time

The weekdays and hours whose posts did best in a period

Parameters

from
string
query
required
to
string
query
required
timezone
string
query
channelIds
string[]
query
source
string
query
indrava | external | all = all

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/best-time?from=<from>&to=<to>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/tags

Performance per tag in a period

Parameters

from
string
query
required
to
string
query
required
timezone
string
query
channelIds
string[]
query
source
string
query
indrava | external | all = all

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/tags?from=<from>&to=<to>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/export

Export one analytics table as CSV, Markdown or an Excel workbook

Parameters

from
string
query
required
to
string
query
required
timezone
string
query
channelIds
string[]
query
source
string
query
indrava | external | all = all
table
string
query
required
overview | channels | posts | bestTime | tags | insights | hashtags | audience
format
string
query
csv | md | xlsx = csv
channelId
string
query
days
number
query
= 30

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/export?from=<from>&to=<to>&table=overview" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/breakdowns

Hashtags, post types, lengths, hooks, authors, frequency and rates of a period

Over every post of the period (source: indrava, external or all). Each group has its posts, average engagement and average reach; refs are the posts behind it. rate is engagements over impressions, over followers where the platform reports no impressions. followers are the gained and lost from the daily counts.

Parameters

from
string
query
required
to
string
query
required
timezone
string
query
channelIds
string[]
query
source
string
query
indrava | external | all = all

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/breakdowns?from=<from>&to=<to>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/channels/{id}/audience

A channel's audience by age, gender, country, city and language

As the platform last reported it (read once a day). needsFollowers is the audience size below which platforms hide the split.

Parameters

id
string
path
required

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/channels/{id}/audience" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/posts/lookup

The numbers of one post, found by its link

Works for a post published through Indrava and for one found on the platform. 404 when no post of this workspace matches.

Parameters

url
string
query
required

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/posts/lookup?url=<url>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/analytics/sync-external

Read posts made outside Indrava and the audience split now

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/analytics/sync-external" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/takeaways

The weekly score and suggestions of each channel

score is 0 to 100 from consistency, engagement rate against the channel's own history and growth (parts). ai is false when the sentences are rule-based.

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/takeaways" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/analytics/inbox

Inbox numbers: volume, reply times, SLA breaches, sentiment, comment score

Parameters

from
string
query
required
to
string
query
required
channelId
string
query
clientId
string
query
timezone
string
query

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/analytics/inbox?from=<from>&to=<to>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}

Updated