Get a post's public stats
get_post_statsRead the public numbers of one post: views, likes, comments, shares, saves and the post time, for a YouTube video or Short (youtube.com/watch?v=, youtube.com/shorts/, youtu.be/, or the bare 11-character video id) or a TikTok video (tiktok.com/@user/video/, tiktok.com/video/, or a vm.tiktok.com or vt.tiktok.com short link). Each number comes with its source (which public page or free API), when it was read, and whether the platform rounded it. Numbers the platform keeps private are listed in not_public with the reason. It never signs in, so private posts and account analytics are out of reach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Address of one public post: a YouTube video or Short (youtube.com/watch?v=<id>, youtube.com/shorts/<id>, youtu.be/<id>, or the bare 11-character video id) or a TikTok video (tiktok.com/@user/video/<id>, tiktok.com/video/<id>, or a vm.tiktok.com or vt.tiktok.com short link). Example: "https://www.youtube.com/shorts/8bE_lGbtjyY". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| as_of | Yes | ISO 8601 time the data was published by its source or fetched from it. A cached answer keeps the time of its fetch. | |
| error | No | ||
| stats | No | ||
| title | No | ||
| author | No | ||
| source | Yes | Who the data comes from, to cite and to check it against. | |
| status | Yes | ||
| post_id | No | ||
| sources | No | ||
| platform | Yes | ||
| posted_at | No | ||
| from_cache | No | ||
| not_public | No |