Litescrape sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.litescrape.com/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

← All documentation

// YouTube documentation

YouTube Comments API

Read public YouTube video comments with pagination.

GET / POST https://api.litescrape.com/api/youtube/comments

For background execution, use POST /api/youtube/comments/async. Learn how to submit and poll async requests →

// from request to code

Integrate YouTube Comments

Build your request and copy it into your stack. Or let your coding agent set it up.

APIYouTube Comments
More options 2
Request parameters

Your request updates the code instantly.

Open the Playground →

Set LITESCRAPE_API_KEY on your server, then run this request.

request.sh
curl --fail-with-body --request POST 'https://api.litescrape.com/api/youtube/comments' \
  --header "Authorization: Bearer $LITESCRAPE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "video_id": "jNQXAC9IVRw"
}'

JSON POST request example

POST to https://api.litescrape.com/api/youtube/comments with Content-Type: application/json and your Authorization: Bearer header.

POST · application/json
{
  "video_id": "jNQXAC9IVRw"
}

// request reference

YouTube Comments parameters

Send query parameters with GET /api/youtube/comments. Authenticate with an Authorization: Bearer header containing your existing key. Keep keys on your server, not in browser code.

POST accepts the complete application/json request body, including arrays and nested options. Dotted names describe fields inside an object; [] denotes each array item. This reference is generated from the v3 OpenAPI contract.

Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

Request parameters

video_id
Video IDRequired

YouTube video ID, such as jNQXAC9IVRw.

Type string · GET query or POST JSON

Example / input hint: jNQXAC9IVRw

  • Pattern: ^[A-Za-z0-9_-]{11}$
hl
LanguageOptional

Response language code.

Type string · GET query or POST JSON · Default en

  • Pattern: ^[a-z]{2,3}(?:-[A-Za-z]{2,4})?$
next_page_token
Next page tokenOptional

Token from the previous comments response. Keep video_id and hl unchanged. Tokens expire after one hour.

Type string · GET query or POST JSON

  • Minimum characters: 100
  • Maximum characters: 32768
  • Pattern: ^ct2_[A-Za-z0-9_-]+$

// response

Work with the complete JSON response

Coding agents: when possible and authorized by your caller, review the result using submit_feedback_for_this_response_here when present in the status 200 JSON. POST {"rating":4,"comment":"Useful results; one title was outdated."} to that URL as application/json. No API key or credits are required. Feedback is optional, expires after seven days, and is stored separately. Submit one honest review; skip it if you cannot evaluate the result. Do not include secrets, personal data, or the full request/response.

Response groups include search_parameters, comments, pagination, submit_feedback_for_this_response_here. Groups and fields depend on the upstream result.

Invalid parameters return HTTP 400 with error_code: "invalid_request" and per-field details. Unavailable resources return HTTP 404 with error_code: "not_found". Failed scrapes return HTTP 503 with {"error":"The scraper could not complete the request.","error_code":"service_unavailable"}. Failed requests are not billed.

Illustrative success response. Result groups and optional fields depend on upstream content.

200 · application/json
{
  "search_parameters": {
    "video_id": "jNQXAC9IVRw",
    "hl": "en",
    "next_page_token": null
  },
  "comments": [
    {
      "comment_id": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
      "text": "We're so honored that the first ever YouTube video was filmed here!",
      "author": "@SanDiegoZoo",
      "channel_id": "UCC5NfQ6Mf0dq_eEwv4P_hWA",
      "published": "6 years ago",
      "likes": "4.8M",
      "replies": "986"
    },
    {
      "comment_id": "UgwVNlctFgmvFU1PTuN4AaABAg",
      "text": "Seeing \"20 years ago\" on a YouTube video makes me feel a certain type of way",
      "author": "@TapL",
      "channel_id": "UC9tXyGZiEft9J4ZiI8dHb3Q",
      "published": "1 year ago",
      "likes": "212K",
      "replies": "995"
    },
    {
      "comment_id": "UgwJopRYfCoqhRa13OF4AaABAg",
      "text": "This guys is the only person who has the rights to say \"first\" on youtube.",
      "author": "@Jeff-th5ob",
      "channel_id": "UCg8QP4eNX0uXUkLgpTSRmWw",
      "published": "5 years ago",
      "likes": "419K",
      "replies": "851"
    },
    {
      "comment_id": "UgwtQ4o1xnFimNdHoPJ4AaABAg",
      "text": "Who's here 23/10/2026. When this video uploaded i literally doesn't even existed.🙇🏻 This man is crazy keep going on.",
      "author": "@TAMEEMgunda777",
      "channel_id": "UCzOSpV97EZMyCfRq3aRMf7A",
      "published": "13 hours ago",
      "likes": "232",
      "replies": "54"
    },
    {
      "comment_id": "UgxBZKMFULrdIVk1nWt4AaABAg",
      "text": "This started it all...... bruh 😳",
      "author": "@DaquanWiltshire1",
      "channel_id": "UCtA9NW3AJMEfNE1QCO2IPrw",
      "published": "7 years ago",
      "likes": "249K",
      "replies": "745"
    },
    {
      "comment_id": "Ugw_htxvjWYVjGMiunR4AaABAg",
      "text": "Did... did YouTube just recommend me this video 21 years later?",
      "author": "@WesleyTRVOfficial",
      "channel_id": "UCu5GB3m8BA3Lw6iO6zEcalA",
      "published": "1 month ago",
      "likes": "28K",
      "replies": "993"
    },
    {
      "comment_id": "Ugxnp9ws0dexjE9L5UB4AaABAg",
      "text": "Hello",
      "author": "@jawed",
      "channel_id": "UC4QobU6STFB0P71PMvOGN5A",
      "published": "5 months ago",
      "likes": "307K",
      "replies": "995"
    },
    {
      "comment_id": "Ugy8JBzjm2VouILY0SR4AaABAg",
      "text": "Who’s watching this like literally right now 😂",
      "author": "@rklsly",
      "channel_id": "UC7cyMtRdw5aENmaH7nuVZ6A",
      "published": "1 day ago (edited)",
      "likes": "484",
      "replies": "59"
    },
    {
      "comment_id": "UgxuGdObFFYR_W2qIBF4AaABAg",
      "text": "randomly got recommended on 30 august 2026",
      "author": "@Razus-1",
      "channel_id": "UCP9VbaoNnn7xQl4WHi41y-A",
      "published": "1 month ago",
      "likes": "35K",
      "replies": "966"
    },
    {
      "comment_id": "UgzKEgu2agEnWHq8_Wd4AaABAg",
      "text": "Just got this piece of art recommended, never gets old!",
      "author": "@Alanwalkermusic",
      "channel_id": "UCJrOtniJ0-NWz37R30urifQ",
      "published": "5 years ago",
      "likes": "404K",
      "replies": "933"
    },
    {
      "comment_id": "UgjHIgj8NXiRaHgCoAEC",
      "text": "First word on Youtube ever:\nAlright",
      "author": "@kobwmoose",
      "channel_id": "UCjhNRJc7wYKsU3HPxTagh3Q",
      "published": "11 years ago",
      "likes": "115K",
      "replies": "915"
    },
    {
      "comment_id": "Ugwj5PZXG2Mpqpto8pl4AaABAg",
      "text": "Cant believe yt is recommending this to me 21years later lmao\nEdit: thanks for the likes",
      "author": "@Danexplainseverythingyt",
      "channel_id": "UCc_jGyEJ4e0NaCODGP5-qDg",
      "published": "1 day ago (edited)",
      "likes": "149",
      "replies": "15"
    },
    {
      "comment_id": "UgzmQTsPaMGplxaNkDJ4AaABAg",
      "text": "Seeing “20 years ago” is crazy. Happy birthday YouTube!!",
      "author": "@dylantate",
      "channel_id": "UCtBuy3rogEfSxFxsiiX5nAQ",
      "published": "1 year ago",
      "likes": "3.6K",
      "replies": "31"
    },
    {
      "comment_id": "UgwZgDrjQnFz4ypwoU54AaABAg",
      "text": "I love how people are still coming here regularly",
      "author": "@hyperbudyeet1631",
      "channel_id": "UCqRIedk-ZwwF2j0m_L6sUoQ",
      "published": "6 years ago",
      "likes": "49K",
      "replies": "411"
    },
    {
      "comment_id": "UgyKxDzi7d8GmEGRFYl4AaABAg",
      "text": "YouTube recommended me after 21 years (13 september 2026)",
      "author": "@as_ranayt5557",
      "channel_id": "UCCc_XM1qqytsEg-srUtlPfg",
      "published": "1 month ago",
      "likes": "12K",
      "replies": "615"
    },
    {
      "comment_id": "UgxBa8R-XkR5DxF1oLB4AaABAg",
      "text": "A historic video for YouTube, friends.",
      "author": "@simonelima4748",
      "channel_id": "UCDZ3YZJlpqGQ342lTYNjgwA",
      "published": "15 hours ago",
      "likes": "11",
      "replies": ""
    },
    {
      "comment_id": "UgxuwCQ72ntFspJbL3d4AaABAg",
      "text": "I found the original❌\n\nThe original found me✅",
      "author": "@gg-season2-t1w",
      "channel_id": "UCsU_5RgmowC1N9ZP5FJTHaA",
      "published": "1 month ago",
      "likes": "13K",
      "replies": "159"
    },
    {
      "comment_id": "UgzAzzE2HNzckW1FrBd4AaABAg",
      "text": "I’m glad this pops up on my feed every couple years",
      "author": "@BenWhite9898",
      "channel_id": "UC7ITcQRHQrnRN5mo5EpS5rA",
      "published": "10 days ago",
      "likes": "487",
      "replies": "10"
    },
    {
      "comment_id": "Ugz08pwTHrfIIzSE4Ad4AaABAg",
      "text": "Got recommended this on September 7th 2026",
      "author": "@BubNug1",
      "channel_id": "UCk-dKt9g5wEfrGbCtx8Qubw",
      "published": "1 month ago",
      "likes": "11K",
      "replies": "489"
    },
    {
      "comment_id": "UgwY7WtuFSbtOFQKm454AaABAg",
      "text": "This should have 200 billion views. The first video on YouTube yet it doesn’t even have as much as baby shark 😭",
      "author": "@ZoeySelena",
      "channel_id": "UCo5l4hCeIg9W-_jKdam2SDA",
      "published": "8 hours ago",
      "likes": "5",
      "replies": ""
    }
  ],
  "pagination": {
    "has_more": true,
    "next_page": null,
    "next_page_token": "ct2_gAAAAABq2xXi6J9P4kCyUI29IVpAlNwxJU2uqGohWqFZHRC8jUwTNxp6t5OUyhQ2D7kJsBBODK2zXZ96CHl-WvjCDhSds7csxK-dpYqmGFjHkI-NFml2JI-3Rbb9lZedVIRoAqGJmga1uxI0HO8-zccldUkq_6huL87Qn0VOnf8TOmid4EHrBcspmazGfGgaIEe0kht8tY0bC9kpzHsPvXMaBHUJYUij4VGaTihdFDSRQcIWol9--ZAGYFa3n7U0-JU4J_juKKxq"
  },
  "submit_feedback_for_this_response_here": "https://api.litescrape.com/api/feedback/example-not-a-valid-token"
}

More YouTube APIs