Skip to main content

Endpoint

Overview

Get the top N posts ranked by a specific metric (views, likes, comments, or shares). Uses the latest statistics for each post. Perfect for displaying top content and identifying viral posts.

Request Body

string
required
The metric to sort by. One of: views, likes, comments, shares
number
Number of posts to return. Default: 5. Maximum: 100.
string[]
Array of post IDs to filter. Omit to include all posts.

Response

TopPost[]
Array of top posts sorted by the requested metric