Analytics for a period
const url = 'https://api.dropslate.top/v1/analytics/overview?compare=0';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.dropslate.top/v1/analytics/overview?compare=0' \ --header 'Authorization: Bearer <token>'Posts published through Dropslate that went live in the period, with the latest numbers each network reported, and the accounts’ followers and views by day. The worker reads accounts daily and posts every few hours (young posts more often), so numbers can lag a few hours behind the network. coverage says per account whether its login lets Dropslate read analytics (needs_reconnect: connect it again to grant it).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”UTC day, included. Default: 29 days before to. Moved up to the plan’s history (Free 30 days, Creator 90, Studio and Agency 365).
UTC day, included. Default: today. At most 366 days after from.
Comma-separated; an id of another workspace answers 404.
Comma-separated, e.g. youtube,instagram.
Also total the period just before.
Responses
Section titled “Responses”Totals, by day and by network.
object
object
object
object
object
Null when the network gives no such metric; never 0 for unknown.
Likes, comments, shares and saves together.
Engagements per view; null when either is unknown or nothing was viewed.
Null when the network gives no such metric; never 0 for unknown.
object
Null when the network gives no such metric; never 0 for unknown.
Likes, comments, shares and saves together.
Engagements per view; null when either is unknown or nothing was viewed.
Null when the network gives no such metric; never 0 for unknown.
object
Null when the network gives no such metric; never 0 for unknown.
Null when the network gives no such metric; never 0 for unknown.
Null when the network gives no such metric; never 0 for unknown.
Null when the network gives no such metric; never 0 for unknown.
object
Null when the network gives no such metric; never 0 for unknown.
Null when the network gives no such metric; never 0 for unknown.
Engagements per view; null when either is unknown or nothing was viewed.
object
Followers by country (ISO 3166-1 alpha-2), the latest breakdown of each account up to the end of the period, summed; Instagram and Threads give one (1.4.0).
object
The networks the countries come from.
Example
{ "daily": [ { "platform": "youtube" } ], "byPlatform": [ { "platform": "youtube" } ], "coverage": [ { "platform": "youtube", "insights": "ok" } ], "countries": [ { "country": "UA" } ], "countriesFrom": [ "youtube" ]}A date or filter that is not one (invalid_request).
object
Where the code is explained: the errors page of the API reference, at the code.
The code again, for readers of RFC 9457.
Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.
quota_exceeded only: what the plan includes.
quota_exceeded only: what is in use.
quota_exceeded only: where the plans and what each includes are listed.
Example
{ "type": "https://docs.dropslate.top/api-reference/errors/#not_found", "status": 404, "code": "not_found", "message": "The post does not exist.", "hint": "Check the id and try again."}No valid key, session or MCP token was sent (unauthenticated).
object
Where the code is explained: the errors page of the API reference, at the code.
The code again, for readers of RFC 9457.
Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.
quota_exceeded only: what the plan includes.
quota_exceeded only: what is in use.
quota_exceeded only: where the plans and what each includes are listed.
Example
{ "type": "https://docs.dropslate.top/api-reference/errors/#not_found", "status": 404, "code": "not_found", "message": "The post does not exist.", "hint": "Check the id and try again."}The workspace’s plan does not include the public API (quota_exceeded, with upgradeUrl).
object
Where the code is explained: the errors page of the API reference, at the code.
The code again, for readers of RFC 9457.
Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.
quota_exceeded only: what the plan includes.
quota_exceeded only: what is in use.
quota_exceeded only: where the plans and what each includes are listed.
Example
{ "type": "https://docs.dropslate.top/api-reference/errors/#not_found", "status": 404, "code": "not_found", "message": "The post does not exist.", "hint": "Check the id and try again."}Does not exist, or belongs to a different workspace - the two look identical from here.
object
Where the code is explained: the errors page of the API reference, at the code.
The code again, for readers of RFC 9457.
Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.
quota_exceeded only: what the plan includes.
quota_exceeded only: what is in use.
quota_exceeded only: where the plans and what each includes are listed.
Example
{ "type": "https://docs.dropslate.top/api-reference/errors/#not_found", "status": 404, "code": "not_found", "message": "The post does not exist.", "hint": "Check the id and try again."}