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.
Last updated
Was this helpful?