DataForSEO SERP API icon

DataForSEO SERP API

DataForSEO SERP API

Actions87

YouTube → Get Live YouTube Comments Advanced

AI-generated

Summary

Retrieves advanced YouTube comment data for a specific video in real time through DataForSEO's live SERP API.

Inputs

  • video_id (required) — The YouTube video ID for which to fetch comments.
  • location_name (required) — Full name of the search engine location, such as 'United States'. Supported locations are listed in the DataForSEO documentation.
  • language_name (required) — Full name of the search engine language, such as 'English'. Supported languages are listed in the DataForSEO documentation.
  • device_desktop_only — Optional device filter. Leave as 'Empty' for all devices, or set to 'Desktop' to request desktop results.
  • os_desktop_only — Optional operating system filter. Leave as 'Empty', or set to 'Windows' or 'macOS' to restrict the device operating system.

Output shape

The response includes the DataForSEO task result data for the requested video's comments. The exact comment item structure is defined by the DataForSEO API.

Returns the JSON response from DataForSEO for the live YouTube comments request.

Examples

Example 1: Fetch comments for a specific YouTube video in real time for analysis, moderation, or archival.

Set the DataForSEO credentials, choose YouTube as the resource, and select 'Get Live YouTube Comments Advanced'. Provide the video ID, a supported location, and a supported language. Optionally set Device to 'Desktop' and OS to 'Windows' or 'macOS'.

Links

Discussion