DataForSEO YouTube Comments Advanced API
Get DataForSEO YouTube Comments Advanced data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by DataForSEO, configure supported query parameters and filters, and retrieve structured data including returned cost field, returned status code field, returned status message field, business payload, and identifier for content research and account lookup, and integration reference.
- Selected price
- $0.002 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
DataForSEO YouTube Comments Advanced API
Prepare your request, then continue with your agent.
Pricing
$0.002 / call
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
DataForSEO YouTube Comments Advanced API
Retrieve serp Youtube Video Comments Live Advanced with the DataForSEO API. Provide JSON payload in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | body: body |
| Selected implementation | dataforseo · DataForSEO — Serp / Youtube / Video Comments / Live / Advanced |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Content research and account lookup: Keep source records connected to their content and account identifiers.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
cost |
Returned cost field |
status_code |
Returned status code field |
status_message |
Returned status message field |
tasks[].data |
Business payload |
tasks[].id |
Identifier |
tasks[].result |
Returned result |
tasks[].cost |
Returned cost field |
tasks[].path |
Returned path field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the JSON body and supported fields shown in the request template.
- Check the HTTP response and business result before reading optional fields.
curl \
'https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/youtube/video_comments/live/advanced' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"language_code": "en",
"location_code": 2840,
"video_id": "vQXvyV0zIP4"
}
]'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published DataForSEO YouTube Comments Advanced API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
DataForSEOCurrent DataForSEO — Serp / Youtube / Video Comments / Live / Advanced · POST · View API reference | $0.002 / call | 0 | —successP50— |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/youtube/video_comments/live/advanced- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
body | JSON request bodybody | array | Yes | Live YouTube Comments provides real-time data on comments on the video you specify in the request. You will get the top 20 comments on the video as well as information about the author, and key comment metrics. minItems: 1 · maxItems: 1 Nested fields and variants
Nested fields and variants
|
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
costnumberstatus_codeintegerstatus_messagestringtasksobject[]costnumberdataobjectapistringdevicestringfunctionstringlanguage_codestringlocation_codeintegerosstringsestringse_typestringvideo_idstring
idstringpathstring[]resultobject[]check_urlstringcomments_countintegerdatetimestringitem_typesstring[]itemsobject[]author_namestringauthor_thumbnailstringauthor_urlstringlikes_countintegerpublication_datestringrank_absoluteintegerrank_groupintegerreply_countintegertextstringtimestampstring | nulltypestring
items_countintegerlanguage_codestringlocation_codeintegerrefinement_chipsnullse_domainstringspellnulltitlestringvideo_idstring
result_countintegerstatus_codeintegerstatus_messagestringtimestring
tasks_countintegertasks_errorintegertimestringversionstring
Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.002000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| 任务错误数必须为零 | $0.000000 / billing unit | Response · /tasks_error · Numeric value | Always | 0 billing unit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · 官方历史成对样例(未运行) (HTTP assumed)
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Live YouTube Comments provides real-time data on comments on the video you specify in the request. You will get the top 20 comments on the video as well as information about the author, and key comment metrics.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/youtube/video_comments/live/advanced' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '[ { "language_code": "en", "location_code": 2840, "video_id": "vQXvyV0zIP4" } ]'Check the response
Sample response · Configured HTTP 200; actual status is unverified.
Sample response{ "cost": 0.002, "status_code": 20000, "status_message": "Ok.", "tasks": [ { "cost": 0.002, "data": { "api": "serp", "device": "desktop", "function": "live", "language_code": "en", "location_code": 2840, "os": "windows", "se": "youtube", "se_type": "video_comments", "video_id": "vQXvyV0zIP4" }, "id": "11151946-4426-0139-0000-83bae32ab24e", "path": [ "v3", "serp", "youtube", "video_comments", "live", "advanced" ], "result": [ { "check_url": "https://www.youtube.com/watch?v=vQXvyV0zIP4", "comments_count": 4080, "datetime": "2022-11-15 17:46:30 +00:00", "item_types": [ "youtube_comment" ], "items": [ { "author_name": "BMW M", "author_thumbnail": "https://yt3.ggpht.com/mf6fcFw9Rt5jYWkkvld0rm8BMBaUtByv4vkgxl4RM5X_TBChHeWMKfc5nOy96DBu3DOLlWmtoto=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCl1hby9X42xkXUiAVcJS81A", "likes_count": 417, "publication_date": "1 year ago", "rank_absolute": 1, "rank_group": 1, "reply_count": 55, "text": "To get notifications for all new exciting BMW M videos, subscribe here: http://b.mw/yt-bmwm-subscribe", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "racemonkey", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu-JbekVxh3072_1hajVv847mU51S88foZygmmqJ=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCK4-fJHOpJpGhaZ_aSAY53A", "likes_count": 487, "publication_date": "1 year ago", "rank_absolute": 2, "rank_group": 2, "reply_count": 24, "text": "Let’s just take a minute to appreciate what BMW have achieved here. At a time where other manufacturers are starting to shy away from performance cars.", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Leonardo Mangili", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu9gYjG_zEL_8ksmQHMPFfAdZFIAo-vkLI5SxBU=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCe5y4sBdt_snCl9zRbl5vbQ", "likes_count": 315, "publication_date": "1 year ago", "rank_absolute": 3, "rank_group": 3, "reply_count": 4, "text": "I think for the first time in my life I got goosebumps from a car advert. Great video, whoever directed it, needs a raise", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Павел Багнюк", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu-NCY_h-mWzqRbCIR5zToOjsyz3Usk3cSNGjmTkZQ=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCXOXOSlU-gLDbXpq4QP_IBg", "likes_count": 2, "publication_date": "1 month ago", "rank_absolute": 4, "rank_group": 4, "reply_count": 0, "text": "Я хочу сказать что вы, люди, которые создали этот автомобиль и те которые работали над этим роликом, настоящие мастера своего дела Этим роликом вы влюбили в данный автомобиль фанатов да и не только, и подарили людям мечту, особенно парнишкам, коим я был когда вышел этот шедевр, он меня покорил Само видео это отдельная история все сделано великолепно:саундизайн, монтаж и трек. Такой тонкости я удивляюсь до сих пор (прошло уже почти 2 года)!!!!!", "timestamp": "2022-10-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Ryan Pederson", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu9gnPR_8w-B0WzEXln1FflM_SdvvW1tdROtFFinSNU=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCj5csH9RKphXvAa0_YykqbA", "likes_count": 604, "publication_date": "1 year ago", "rank_absolute": 5, "rank_group": 5, "reply_count": 11, "text": "Wife: but we can’t live in an M5. Me: challenge accepted.", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Rinascimento", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu-FTlu41gv7oLt5ZcNaJqBeOxmlBR8aK1t-j1_M2Tw=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCA3wc9PumrDpwnYP5GBgv6g", "likes_count": 129, "publication_date": "1 year ago", "rank_absolute": 6, "rank_group": 6, "reply_count": 0, "text": "This is not just an ad.It's a piece of art like this car.I am so impressed!", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Alm Kcr", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu8BQ-cy-chDpE9WDnmQBYiUKV7AzYqiYCyiEOCWNA=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UC6JYQJohAiVRCHmLOoPy_xA", "likes_count": 61, "publication_date": "1 year ago", "rank_absolute": 7, "rank_group": 7, "reply_count": 0, "text": "The kind of car commercial we want to see. Motorsports, enthusiasm. That's what emotional cars like M cars are all about.", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Alejandro Bonilla", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu9SKrwW0P7apJRfjrIH6IDUelDYxzCAjuIB8sMp=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCxg4NdoH-5ZlMiksixXtnIA", "likes_count": 299, "publication_date": "1 year ago", "rank_absolute": 8, "rank_group": 8, "reply_count": 9, "text": "BMW and their current 5 series is proof that the company can do brilliant things", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Ferrari Scuderia", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu-TiNfmN-igsHotZ0BGg6byYkhWMC8CkzF3JQ=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCrJJCc1x3leJQL0vwlLENzA", "likes_count": 51, "publication_date": "1 year ago", "rank_absolute": 9, "rank_group": 9, "reply_count": 0, "text": "Yes, this is the kind of BMW marketing that is needed! Great job! I feel that the M division should just take over BMW entirely. Also, that M5 CS, wow!!", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Vivid thespis", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu9L0c7qFQggJxJB0Mlwf2ffmdpLRCwfPNO2IA=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCtT8xfhW5b4qG55mcnaQsNA", "likes_count": 8, "publication_date": "1 year ago", "rank_absolute": 10, "rank_group": 10, "reply_count": 0, "text": "Makes me proud to own a 5 Series. Welcome back BMW.", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "taemi", "author_thumbnail": "https://yt3.ggpht.com/gC8CG3xayNmgHwuV-JulcQr7RgT36xWAbiVeEa6CNnajDemM7SlRMaO5IsOxsmRWd2xs7-x6=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UC1dUZT6MXpCiRWA8NaBI2PQ", "likes_count": 0, "publication_date": "3 weeks ago", "rank_absolute": 11, "rank_group": 11, "reply_count": 0, "text": "I watched some ads for a marketing assignment but this one was amazing and I ended up watching it multiple times just out of enjoyment. It really shows that driving pleasure that BMW is all about.", "timestamp": "2022-10-25 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Michal K", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu9aBOfFrVykKZEQaVMdjv22gyawEly_knAqfQ=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCB-TVr1zHI4blfBvHSORu0w", "likes_count": 141, "publication_date": "1 year ago (edited)", "rank_absolute": 12, "rank_group": 12, "reply_count": 0, "text": "Best car commercial spot that I`ve seen for years. What a combination of music, feeling, acting, idea and camera work. And M5 CS... is just Unbelievable !", "timestamp": null, "type": "youtube_comment" }, { "author_name": "George Kostician", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu8jtWQXZAkTzHXp5qr1fvNuS_arByWDPi6fa3t23A=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UC2zWzfipkJCz40oazCP-TFQ", "likes_count": 4, "publication_date": "1 year ago", "rank_absolute": 13, "rank_group": 13, "reply_count": 0, "text": "I see this car going up in value in the years to come it’s fast looks like a work of art flying on the track just amazing car all around I love it 😍", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Calvin Huang", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu9jPy3MxeNf3Sx_CCuSyXAhPD-1IzDMHlga7ulZAQ=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCFhG6SE9C0E5nlcMS97aw2w", "likes_count": 296, "publication_date": "1 year ago", "rank_absolute": 14, "rank_group": 14, "reply_count": 8, "text": "I got goosebumps when I’m watching this video. Just speechless, only stunning can describe this beast. BMW M, you definitely nailed it!", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "hexlgaming", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu9PajNdWw_hj2QEo8zoJ-KgrWyrfw092id2zbiP=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCYB31yxp5XmnBm6gHkQGRoQ", "likes_count": 1, "publication_date": "1 year ago", "rank_absolute": 15, "rank_group": 15, "reply_count": 0, "text": "I really like the orange accents in the headlights. The warm touch make it a whole lot nicer to look at and it's a great contrast to the usual blue. Also this car would look so damn good in britisch racing green with a brown leather Interior now..", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "7UCKY", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu-YFBKWl9RcXVxtOH8s-GWQM03u-0Z1qiS9Ft3e=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCBoTxpj58ua7GpHHc7r4-Hw", "likes_count": 33, "publication_date": "1 year ago", "rank_absolute": 16, "rank_group": 16, "reply_count": 0, "text": "This video is amazing. Whoever produced this, please keep them!", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Гарри", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu8XFjKfXRL4GB2uNH0axPSXqFd3MiuEhtoa49WGLg=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UC3_GjdvOWxEFIle1fD2v6cQ", "likes_count": 3, "publication_date": "1 year ago", "rank_absolute": 17, "rank_group": 17, "reply_count": 0, "text": "Awesome commercial. Fantastic camera work, breathtaking sound design. And of course, an absolute beast of a car. German sedans one love.", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Hazi Pazi", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu_fgQQPBV6X65i5W0fGR6JDUU_icJtAOx3d9_nKCw=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UC4xX7H4-89kuNEU_CysgjbQ", "likes_count": 0, "publication_date": "1 year ago", "rank_absolute": 18, "rank_group": 18, "reply_count": 0, "text": "This was unexpected to be honest. I have no words to describe how beautiful it is 😍", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "Billy Lena", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu8Ez7JkjXLf5EbV2428MAzCJSP-Y6TwMpFAcHrBNQ=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCWYCpVAZaUS8x4e6iCCwLhQ", "likes_count": 2, "publication_date": "1 year ago", "rank_absolute": 19, "rank_group": 19, "reply_count": 0, "text": "Man I felt this 😳 ...It was experiencing every single performance aspect of the Car without being in it 🤯", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" }, { "author_name": "PS91195", "author_thumbnail": "https://yt3.ggpht.com/ytc/AMLnZu_54BYGnpOvvu-HwFGQiG1mLtuMNy1w0Wmv7A49=s176-c-k-c0x00ffffff-no-rj", "author_url": "https://www.youtube.com/channel/UCetfAgEm_Da-kwm2e9PnFZQ", "likes_count": 0, "publication_date": "1 year ago", "rank_absolute": 20, "rank_group": 20, "reply_count": 20, "text": "The first proper piece of BMW Marketing since the introduction of „that grill“? Looks promising!", "timestamp": "2021-11-15 17:46:30 +00:00", "type": "youtube_comment" } ], "items_count": 20, "language_code": "en", "location_code": 2840, "refinement_chips": null, "se_domain": "youtube.com", "spell": null, "title": "The first-ever BMW M5 CS.", "video_id": "vQXvyV0zIP4" } ], "result_count": 1, "status_code": 20000, "status_message": "Ok.", "time": "4.0397 sec." } ], "tasks_count": 1, "tasks_error": 0, "time": "4.1248 sec.", "version": "0.1.20220819" }