Thordata Docs
English
English
  • Overview
  • PROXIES
    • Integration Tutorial
      • Residential Proxies Integration
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Playwright
        • Puppeteer
        • Selenium
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
        • MuLogin
        • Incogniton
      • ISP Proxies Integration
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
      • Datacenter Proxies Integration
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
      • Unlimited Proxies Integration
        • AdsPower
        • BitBrowser
        • ClonBrowser
        • Ghost Browser
        • SwitchyOmega
        • FoxyProxy
        • Chrome
        • Edge
    • Residential Proxies
      • Getting Started Guide
      • Endpoint Generator
        • User & Pass auth
        • Whitelisted IPs
          • Country Entry
            • Country/Region Entry Node
          • API Link
      • Users
      • Basic Query
      • Location Settings
        • Country / Region
        • City
        • State
      • Session Control
      • Protocols
      • Country/Region list
      • CDKEY Generation and Redemption
    • ISP Proxies
      • Getting Started Guide
    • Datacenter Proxies
      • Getting Started Guide
    • Unlimited Proxy Servers
      • Endpoint Generator
        • User & Pass auth
        • Whitelisted IPs
          • Country Entry
          • API Link
      • Users
      • Country/Region list
  • Scraping
    • SERP API
      • Introduction
      • Quick Start Guide
      • Send Your First Request
      • Query Parameters
        • Google
        • Bing
        • Yandex
        • DuckDuckGo
      • FAQs
    • WEB Scraper API
      • Getting Started Guide
      • Send your first request
      • API request builder
      • Parameter Description
        • YouTube Scraping Parameters
        • Amazon Scraping Parameters
      • Webhook Integration
      • Amazon S3 Integration
  • Universal Scraping API
    • Quick Start Guide
    • Configuration
    • Parameter Description
  • FREE TOOLS
    • Chrome Extension
      • Tutorial
  • USEFUL LINKS
    • Dashboard Center
  • FAQ
    • Product Problem
      • How do I choose the right proxy package?
      • How to target specific countries/regions?
      • How to target a specific city?
      • What is Unlimited Proxies?
      • Why is it not effective to use our proxies in a fingerprint browser?
        • 1. The proxy does not work at all
        • 2. The results of other detection channels you are using are not the same as the country extracted
        • 3. Your targeted website's detection results are not the same as the country extracted
        • 4. The proxy works, but the IP location randomly jumps to other countries you don't want
    • Payment Problem
      • What payment methods are supported?
      • What should I do if I buy the wrong package?
      • Do you provide refunds for paid services?
      • After payment, how long does it take to receive my agency balance or activate my account?
  • SUPPORT
    • Contact Us
Powered by GitBook
On this page

Was this helpful?

  1. Scraping
  2. WEB Scraper API
  3. Parameter Description

YouTube Scraping Parameters

Web Scraper API YouTube scraping parameters

Use Thordata's Web Scraper API to configure Amazon scraping parameters, including products, tokens, scraping URLs, resolution, audio format, subtitles, subtitle language and other parameters.

Products:

prodect_id ,Associated Scraping Tool (Required)

Specifies which scraping tool to use. Possible parameter values include:

YouTube - Video Downloader 358^&t=1

YouTube - Audio Downloader 357^&t=2 Request Example: prodect_id=358^&t=1

curl --request POST --url https://scraperapi.thordata.com/video_builder?prodect_id=358^&t=1 --header "Authorization: Bearer Token-ID" --header "content-type: application/json" --data "{\"url\":[{\"url\":\"https://www.youtube.com/watch?v=_SdpvpvVrLY\",\"resolution\":\"2160p\"}]}"

Unique identifiers:

token ,Access Token (Required)

This parameter is the API access token used to ensure the legitimacy of the scraping request

Request Example: header "Authorization: Bearer ********************************"

curl --request POST --url https://scraperapi.thordata.com/video_builder?prodect_id=358^&t=1 --header "Authorization: Bearer *********************************" --header "content-type: application/json" --data "{\"url\":[{\"url\":\"https://www.youtube.com/watch?v=_SdpvpvVrLY\",\"resolution\":\"2160p\"}]}"

URLs:

url ,Target Link to Scrape (Required)

This parameter specifies the access URL of the YouTube video to be scraped.

Request Example: "url":"https://www.youtube.com/watch?v=_SdpvpvVrLY"

curl --request POST --url https://scraperapi.thordata.com/video_builder?prodect_id=358^&t=1 --header "Authorization: Bearer Token-ID" --header "content-type: application/json" --data "{\"url\":[{\"url\":\"https://www.youtube.com/watch?v=_SdpvpvVrLY\",\"resolution\":\"2160p\"}]}"

Video parameters:

resolution ,Resolution (Optional)

This parameter specifies the target resolution for the video to be scraped. If the selected resolution is unavailable or does not exactly match, the system will automatically downgrade to the next available lower quality option. Parameter Values: 360p 480p 720p 1080p 1440p 2160p

Request Example: "resolution":"2160p"

curl --request POST --url https://scraperapi.thordata.com/video_builder?prodect_id=358^&t=1 --header "Authorization: Bearer Token-ID" --header "content-type: application/json" --data "{\"url\":[{\"url\":\"https://www.youtube.com/watch?v=_SdpvpvVrLY\",\"resolution\":\"2160p\"}]}"

Audio parameters:

audio_format ,Audio Format (Required)

This parameter specifies the output format for the scraped audio file, with the default being .opus format. It can be switched to .mp3 format. Parameter Values: opus mp3

Request Example: "audio_format":"opus"

curl --request POST --url https://scraperapi.thordata.com/video_builder?prodect_id=357^&t=2 --header "Authorization: Bearer Token-ID" --header "content-type: application/json" --data "{\"url\":[{\"url\":\"https://www.youtube.com/watch?v=Y5CGbOWmHDc\",\"audio_format\":\"opus\",\"is_subtitles\":\"false\",\"subtitles_language\":\"\"}]}"
is_subtitles ,Subtitles (Required)

This parameter controls whether to download the subtitle file alongside the YouTube audio, with the subtitles in .srt format. Note that the audio and subtitles will be saved as two separate files in the download result. Parameter Values: true false

Request Example: "is_subtitles":"false"

curl --request POST --url https://scraperapi.thordata.com/video_builder?prodect_id=357^&t=2 --header "Authorization: Bearer Token-ID" --header "content-type: application/json" --data "{\"url\":[{\"url\":\"https://www.youtube.com/watch?v=Y5CGbOWmHDc\",\"audio_format\":\"opus\",\"is_subtitles\":\"false\",\"subtitles_language\":\"\"}]}"
subtitles_language ,Subtitles Language (Optional)

This parameter defines the language of the subtitles to download when scraping YouTube. Note that if the selected language is unavailable, the system will default to returning English subtitles.

Abkhazian ab, Afar aa, Afrikaans af, Akan ak, Albanian sq, Amharic am, Arabic ar, Armenian hy, Assamese as, Aymara ay, Azerbaijani az, Bengali bn, Bashkir ba, Basque eu, Belarusian be, Bhojpuri bho, Bosnian bs, Breton br, Bulgarian bg, Burmese my, Catalan ca, Cebuano ceb, Simplified Chinese zh-Hans, Traditional Chinese zh-Hant, Corsican co, Croatian hr, Czech cs, Danish da, Divehi dv, Dutch nl, Dzongkha (Bhutan) dz, English (original) en-orig, English en, Esperanto eo, Estonian et, Ewe ee, Faroese fo, Fijian fj, Filipino fil, Finnish fi, French fr, Ga gaa, Galician gl, Ganda lg, Georgian ka, German de, Greek el, Guarani gn, Gujarati gu, Haitian Creole ht, Hausa ha, Hawaiian haw, Hebrew iw, Hindi hi, Hmong hmn, Hungarian hu, Icelandic is, Igbo ig, Indonesian id, Inuktitut iu, Irish ga, Italian it, Japanese ja, Javanese jv, Greenlandic kl, Kannada kn, Kazakh kk, Khasi kha, Khmer km, Kinyarwanda rw, Korean ko, Krio kri, Kurdish ku, Kyrgyz ky, Lao lo, Latin la, Latvian lv, Lingala ln, Lithuanian lt, Luba-Katanga lua, Luo luo, Luxembourgish lb, Macedonian mk, Malagasy mg, Malay ms, Malayalam ml, Maltese mt, Manx gv, Maori mi, Marathi mr, Mongolian mn, Mauritian Creole mfe, Nepali ne, Newari new, Northern Sotho nso, Norwegian no, Nyanja ny, Occitan oc, Oriya or, Oromo om, Ossetic os, Pampanga pam, Pashto ps, Persian fa, Polish pl, Portuguese (Brazil) pt, Portuguese (Portugal) pt-PT, Punjabi pa, Quechua qu, Romanian ro, Rundi rn, Russian ru, Samoan sm, Sango sg, Sanskrit sa, Scottish Gaelic gd, Serbian sr, Seychelles Creole French crs, Shona sn, Sindhi sd, Sinhala si, Slovak sk, Slovenian sl, Somali so, Southern Sotho st, Spanish es, Sundanese su, Swahili sw

Request Example: "subtitles_language":"en"

curl --request POST --url https://scraperapi.thordata.com/video_builder?prodect_id=357^&t=2 --header "Authorization: Bearer Token-ID" --header "content-type: application/json" --data "{\"url\":[{\"url\":\"https://www.youtube.com/watch?v=Y5CGbOWmHDc\",\"audio_format\":\"opus\",\"is_subtitles\":\"true\",\"subtitles_language\":\"en\"}]}"

If you need further help, please contact us at support@thordata.com.

PreviousParameter DescriptionNextAmazon Scraping Parameters

Last updated 1 day ago

Was this helpful?