Get posting activity
GET
/analytics/activity
const url = 'https://api.warmup.social/analytics/activity?role=own&tz=UTC&days=180';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.warmup.social/analytics/activity?role=own&tz=UTC&days=180' \ --header 'Authorization: Bearer <token>'Posts per day for the last days days. from and to are ignored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”role
string
Whose accounts to analyze — your own or competitors.
tz
string
Example
Europe/BerlinIANA time zone used to split days.
platform
Array<string>
Only these networks. Comma-separated or repeated.
group
Array<string>
Only accounts from these collections (names from “List analytics filters”).
accountId
Array<string>
Only these accounts (ids from “List analytics filters”).
days
integer
Window length in days, 7–365.
Responses
Section titled “Responses”Daily post counts.
Media typeapplication/json
object
from
required
string format: date
to
required
string format: date
days
required
Array<object>
object
date
required
string format: date
posts
required
integer
lastPostAt
required
string format: date-time
Example generated
{ "from": "2026-04-15", "to": "2026-04-15", "days": [ { "date": "2026-04-15", "posts": 1 } ], "lastPostAt": "2026-04-15T12:00:00Z"}The Bearer token is missing or invalid.
Media typeapplication/json
object
statusCode
required
integer
message
required
One of:
string
Array<string>
object
key
additional properties
any
error
string
key
additional properties
any
Example
{ "statusCode": 400, "message": "Invalid request", "error": "Bad Request"}