> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# How do I get newest comments rather than top comments?

> Set sort_by to newest in youtube.web_v2.get_video_comments for recent comments, or run a separate sort_by top request for popular threads.

Set `sort_by:"newest"` in `youtube.web_v2.get_video_comments` to fetch recent comments instead of popular comments. To inspect popular discussions as well, run a separate request with `sort_by:"top"` and deduplicate merged results by the actual comment ID.

## Requesting newest comments

Send `sort_by:"newest"` together with `video_id`, `language_code`, and `country_code` to `POST https://api.beatapi.io/v1/social-data/call`:

```bash
curl -sS https://api.beatapi.io/v1/social-data/call \
  -H "Authorization: Bearer $BEATAPI_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"action":"youtube.web_v2.get_video_comments","params":{"video_id":"<video_id>","sort_by":"newest","language_code":"en-US","country_code":"US"}}'
```

## Choosing between newest and top sort modes

* **`sort_by:"newest"`:** Surfaces recent comments first, such as newly reported setup issues right after a product update.
* **`sort_by:"top"`:** Surfaces prominent popular discussions as a separate query rather than replacing the `newest` feed.
* **Merging both views:** Because popular comments can also appear in recent pages, deduplicate combined `newest` and `top` outputs using each comment's actual comment ID.

## Contracts and related questions

Before running the request, inspect the `data:youtube.web_v2.get_video_comments` contract for free.

[Back to YouTube questions](/faq/youtube).