Posts of a period with their numbers
const url = 'https://api.dropslate.top/v1/analytics/posts?sort=views&page=1&perPage=10';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/posts?sort=views&page=1&perPage=10' \ --header 'Authorization: Bearer <token>'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.
Responses
Section titled “ Responses ”One row per live post, highest first.
object
object
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.
Null when the network gives no such metric; never 0 for unknown.
Engagements per view; null when either is unknown or nothing was viewed.
Example
{ "posts": [ { "platform": "youtube" } ]}A date or filter that is not one (invalid_request).
object
Example
{ "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
Example
{ "code": "not_found", "message": "The post does not exist.", "hint": "Check the id and try again."}