Query Post Analytics

Written by Grant, Creator of Postpone
Updated 1 year ago

First, read through our API introduction article for info on how to work with our API playground and make API calls.

Next, make an API call with the following GraphQL query:

query {
  postAnalytics(startDate:"2022-10-01T00:00:00Z") {
    totalPosts
    totalUpvotes
    totalComments
    avgUpvotes
    topSubmissions {
      post {
        id
        redditUsername
        title
        link
      }
      subreddit
      postAt
      result {
        id
        upvotes
        comments
      }
    }
    topSubreddits {
      subreddit
      avgUpvotes
      avgComments
      avgRemoved
      totalPosts
      totalUpvotes
      totalComments
      totalRemoved
    }
  }
}
Did this answer your question?