POST
/
youtube_video_comments
curl --request POST \
  --url https://api.scrapeasap.com/scrapers/youtube_video_comments \
  --header 'Content-Type: application/json' \
  --header 'apikey: <apikey>' \
  --data '{
  "video_id": "<string>",
  "search_type": "last"
}'

Headers

apikey
string
required

Scrapeasap Api Key

Body

application/json
video_id
string

The unique identifier for the YouTube video.

search_type
enum<string>

Type of comments to retrieve, either 'last' or 'top'.

Available options:
last,
top

Response

200

Successful response with video comments.