YouTube Scraping Parameters
Web Scraper API YouTube scraping parameters
Configure YouTube scraping parameters using Thordata's Web Scraper API, including parameters such as products, Token, scraping URLs, resolution, audio format, subtitles, and subtitle language.
Unique identifiers:
token ,Access Token (Required)
This parameter is used as an API access token to ensure the legitimacy of crawling requests.
Request Example:
"Authorization: Bearer ********************************"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer ********************" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"resolution\": \"2160p\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"I. Product - Video Downloader
YouTube - Grab video files via URL
spider_id ,Associated Scraping Tool (Required)
It defines the crawler to use.
Request Example:
spider_id=youtube_video_by-url
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"resolution\": \"2160p\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"url ,Target Link to Scrape (Required)
This parameter is used to specify the access URL of the YouTube video to be crawled.
Request Example:
"url": "https://www.youtube.com/watch?v=8RePenzQH80"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"resolution\": \"2160p\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"resolution ,Resolution (Optional)
This parameter is used to specify the target resolution for crawling the video. If the selected resolution is unavailable or not precisely matched, the system will automatically downgrade to the available option with lower quality.
Parameter Values:
360p 480p 720p 1080p 1440p 2160p
Request Example:
"resolution": "2160p"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"resolution\": \"2160p\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"is_subtitles ,Subtitles (Required)
This parameter controls whether to download subtitle files simultaneously with YouTube audio. Subtitles are in .vvt format. Note that during the download process, the audio and subtitles will be saved as two separate files.
Parameter value:true false
Request Example:
"is_subtitles":"true"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"resolution\": \"2160p\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"subtitles_language ,Subtitles Language (Optional)
This parameter defines the language of the subtitles to be downloaded when crawling YouTube. It should be noted that if the selected language is unavailable, the system will return English subtitles by default.
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 -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"resolution\": \"2160p\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"II. Product - Audio Downloader
YouTube - Grab audio and subtitle files via URL
spider_id ,Associated Scraping Tool (Required)
It defines the crawler to use.
Request Example:
spider_id=youtube_audio_by-url
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_audio_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"audio_format\": \"mp3\",\"bitrate\": \"320\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"url ,Target Link to Scrape (Required)
This parameter is used to specify the access URL of the YouTube video to be crawled.
Request Example:
"url": "https://www.youtube.com/watch?v=8RePenzQH80"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_audio_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"audio_format\": \"mp3\",\"bitrate\": \"320\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"audio_format ,Audio Format (Required)
This parameter is used to specify the output format of the audio file to be crawled. The default format is .opus, and it can be switched to .mp3 format.
Parameter Values:opus mp3
Request Example:
"audio_format":"mp3"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_audio_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"audio_format\": \"mp3\",\"bitrate\": \"320\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"bitrate,Bit rate (optional)
This parameter sets the bitrate (bitrate) of the audio file, affecting both sound quality and file size. Recommended bitrate values include: 48 Kbps, 64 Kbps, 128 Kbps, 160 Kbps, 256 Kbps, and 320 Kbps. Please note that the captured audio file may not support the selected bitrate, and the system will default to backward compatibility. If none of the selected bitrates are available, the system will automatically download a supported bitrate.
Parameter Value:
48Kbps
64Kbps
128Kbps
160Kbps
256Kbps
320Kbps
Request Example:
"bitrate": "320"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_audio_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"audio_format\": \"mp3\",\"bitrate\": \"320\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"is_subtitles ,Subtitles (Required)
This parameter is used to control whether to synchronously download subtitle files when crawling YouTube audio. The subtitle format is .srt. It should be noted that during the download, the audio and subtitles will be saved as two separate files.
Parameter Values:true false
Request Example:
"is_subtitles":"true"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_audio_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"audio_format\": \"mp3\",\"bitrate\": \"320\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"subtitles_language ,Subtitles Language (Optional)
This parameter defines the language of the subtitles to be downloaded when crawling YouTube. It should be noted that if the selected language is unavailable, the system will return English subtitles by default.
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 -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_audio_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/watch?v=8RePenzQH80\"}]" ^
-d "spider_universal={\"audio_format\": \"mp3\",\"bitrate\": \"320\",\"is_subtitles\": \"true\",\"subtitles_language\": \"en\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"III. Product - Basic Information Downloader
YouTube - Capture basic video information using a unique ID
spider_id ,Associated Scraping Tool (Required)
It defines the crawler to use.
Request Example:
spider_id=youtube_product_by-id
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_product_by-id" ^
-d "spider_parameters=[{\"video_id\": \"8RePenzQH80\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"video_id ,Video unique ID (Required)
This parameter specifies the unique ID of the YouTube video to be crawled.
Request Example:
"video_id": "8RePenzQH80"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_product_by-id" ^
-d "spider_parameters=[{\"video_id\": \"8RePenzQH80\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"IV. Product - Subtitle Downloader
YouTube - Extract subtitle files from videos using unique IDs
spider_id ,Associated Scraping Tool (Required)
It defines the crawler to use.
Request Example:
spider_id=youtube_transcript_by-id
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_transcript_by-id" ^
-d "spider_parameters=[{\"video_id\": \"8RePenzQH80\"}]" ^
-d "spider_universal={\"subtitles_language\": \"en\",\"subtitles_type\": \"auto_generated\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"video_id ,Video unique ID (Required)
This parameter specifies the unique ID of the YouTube video to be crawled.
Request Example:
"video_id": "8RePenzQH80"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_transcript_by-id" ^
-d "spider_parameters=[{\"video_id\": \"8RePenzQH80\"}]" ^
-d "spider_universal={\"subtitles_language\": \"en\",\"subtitles_type\": \"auto_generated\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"subtitles_language ,Subtitles Language(Required)
This parameter defines the language of the subtitles to be downloaded when crawling YouTube. It should be noted that if the selected language is unavailable, the system will return English subtitles by default.
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 -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_transcript_by-id" ^
-d "spider_parameters=[{\"video_id\": \"8RePenzQH80\"}]" ^
-d "spider_universal={\"subtitles_language\": \"en\",\"subtitles_type\": \"auto_generated\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"subtitles_type ,Subtitle type(Required)
This parameter specifies whether the captured subtitles are automatically generated or user-uploaded.
Parameter value:auto_generated uploader_provided
Request Example:
"subtitles_type": "auto_generated"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_transcript_by-id" ^
-d "spider_parameters=[{\"video_id\": \"8RePenzQH80\"}]" ^
-d "spider_universal={\"subtitles_language\": \"en\",\"subtitles_type\": \"auto_generated\"}" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"V. Product - Review Downloader
YouTube - Capture video comment information using unique ID
spider_id ,Associated Scraping Tool (Required)
It defines the crawler to use.
Request Example:
spider_id=youtube_profiles_by-url
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_profiles_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/@mrbeast\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"url ,Channel URL (Required)
This parameter is used to specify the access URL address of the YouTube channel to be crawled.
Request Example:
"url": "https://www.youtube.com/@mrbeast"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_profiles_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/@mrbeast\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"2. YouTube - Fetch profile information via unique ID
spider_id ,Associated Scraping Tool (Required)
It defines the crawler to use.
Request Example:
spider_id=youtube_profiles_by-keyword
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_profiles_by-keyword" ^
-d "spider_parameters=[{\"keyword\": \"MrBeast\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"keyword ,Keywords (Required)
This parameter specifies the keyword to search YouTube channels for.
Request Example:
"keyword": "MrBeast"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_profiles_by-keyword" ^
-d "spider_parameters=[{\"keyword\": \"MrBeast\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"page_turning ,Number of crawled pages (Required)
This parameter sets the number of pages of search results to crawl. Entering a number "n" will crawl all product data from page 1 to page n.
Parameter value:1-100000
Request Example:
"page_turning": "1"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=www.youtube.com" ^
-d "spider_id=youtube_profiles_by-keyword" ^
-d "spider_parameters=[{\"keyword\": \"MrBeast\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"VI. Product - Profile Scraper
1. YouTube - Scrape profile information by keyword
spider_id ,Scraper tool (Required)
Defines which scraper tool to use.
Request examples:
spider_id=youtube_profiles_by-keyword
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_profiles_by-keyword" ^
-d "spider_parameters=[{\"keyword\": \"scrape\",\"page_turning\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"
keyword ,Keywords (Required)
This parameter specifies the keyword to search.
Request Example:
"keyword": "scrape"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_profiles_by-keyword" ^
-d "spider_parameters=[{\"keyword\": \"scrape\",\"page_turning\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"page_turning ,Pages to Search back (Required)
This parameter sets the number of pages of search results to crawl. For example, if you enter 2, the tool will scrape all products from both page 1 and page 2 of the search results.
Request Example:
"page_turning": "2"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_profiles_by-keyword" ^
-d "spider_parameters=[{\"keyword\": \"scrape\",\"page_turning\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"2. YouTube - Scrape profile information by URL
spider_id ,Scraper tool (Required)
Defines which scraper tool to use.
Request examples:
spider_id=youtube_profiles_by-url
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_profiles_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/@mrbeast\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"
url ,Channel URL (Required)
This parameter specifies the Channel URL to search.
Request Example:
"url": "https://www.youtube.com/@mrbeast"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_profiles_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/@mrbeast\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"VII. Product - Video Post Scraper
1. YouTube - Scrape video post information by URL
spider_id ,Scraper tool (Required)
Defines which scraper tool to use.
Request examples:
spider_id=youtube_video-post_by-url
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/@stephcurry/videos\",\"order_by\": \"Latest\",\"num_of_posts\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"
url ,Channel Video URL (Required)
This parameter specifies channel video URL to get videos.
Request Example:
"url": "https://www.youtube.com/@stephcurry/videos"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/@stephcurry/videos\",\"order_by\": \"Latest\",\"num_of_posts\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"order_by ,Order by (Optional)
This parameter specifies how to sort the posts.
Request Example:
"order_by": "Latest"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/@stephcurry/videos\",\"order_by\": \"Latest\",\"num_of_posts\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"num_of_posts ,Number of posts (Optional)
This parameter is used to specify the number of posts to crawl.
Request Example:
"num_of_posts": "2"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/@stephcurry/videos\",\"order_by\": \"Latest\",\"num_of_posts\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"2. YouTube - Scrape video post information by Search Filters
spider_id ,Scraper tool (Required)
Defines which scraper tool to use.
Request examples:
spider_id=youtube_video-post_by-search-filters
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-search-filters" ^
-d "spider_parameters=[{\"keyword_search\": \"dog\",\"features\": \"Live\",\"type\": \"Video\",\"duration\": \"\",\"upload_date\": \"\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"
keyword_search ,Search Keyword (Required)
This parameter specifies the keyword to search.
Request Example:
"keyword_search": "dog"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-search-filters" ^
-d "spider_parameters=[{\"keyword_search\": \"dog\",\"features\": \"Live\",\"type\": \"Video\",\"duration\": \"Under 4 minutes\",\"upload_date\": \"Today\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}" features,Features (Optional)
This parameter specifies video features, such as live, 4K, HD, subtitles, etc.
Request Example:
"features": "Live"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-search-filters" ^
-d "spider_parameters=[{\"keyword_search\": \"dog\",\"features\": \"Live\",\"type\": \"Video\",\"duration\": \"Under 4 minutes\",\"upload_date\": \"Today\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}" type,Type (Optional)
This parameter specifies video types.
Request Example:
"type": "Video"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-search-filters" ^
-d "spider_parameters=[{\"keyword_search\": \"dog\",\"features\": \"Live\",\"type\": \"Video\",\"duration\": \"Under 4 minutes\",\"upload_date\": \"Today\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}" duration,Duration (Optional)
This parameter specifies video duration.
Request Example:
"duration": "Under 4 minutes"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-search-filters" ^
-d "spider_parameters=[{\"keyword_search\": \"dog\",\"features\": \"Live\",\"type\": \"Video\",\"duration\": \"Under 4 minutes\",\"upload_date\": \"Today\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}" upload_date,Upload date (Optional)
This parameter specifies the upload date of videos.
Request Example:
"upload_date": "Today"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-search-filters" ^
-d "spider_parameters=[{\"keyword_search\": \"dog\",\"features\": \"Live\",\"type\": \"Video\",\"duration\": \"Under 4 minutes\",\"upload_date\": \"Today\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"3. YouTube - Scrape video post information by Hashtag
spider_id ,Scraper tool (Required)
Defines which scraper tool to use.
Request examples:
spider_id=youtube_video-post_by-search-filters
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-hashtag" ^
-d "spider_parameters=[{\"hashtag\": \"shopping\",\"num_of_posts\": \"5\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"
hashtag,Hashtag (Required)
This parameter specifies hashtags to filter videos.
Request Example:
"hashtag": "shopping"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-hashtag" ^
-d "spider_parameters=[{\"hashtag\": \"shopping\",\"num_of_posts\": \"5\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"4. YouTube - Scrape video post information by podcast URL
spider_id ,Scraper tool (Required)
Defines which scraper tool to use.
Request examples:
spider_id=youtube_video-post_by-podcast-url
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-podcast-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/playlist?list=RDCLAK5uy_lS3E3PgpboCkZ_PfLPCkLLNPI1uH6kfc0\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"
url,Podcast URL (Required)
This parameter specifies the podcast URL to crawl.
Request Example:
"url": "https://www.youtube.com/playlist?list=RDCLAK5uy_lS3E3PgpboCkZ_PfLPCkLLNPI1uH6kfc0"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-podcast-url" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/playlist?list=RDCLAK5uy_lS3E3PgpboCkZ_PfLPCkLLNPI1uH6kfc0\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"5. YouTube - Scrape video post information by keyword
spider_id ,Scraper tool (Required)
Defines which scraper tool to use.
Request examples:
spider_id=youtube_video-post_by-keyword
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-keyword" ^
-d "spider_parameters=[{\"keyword\": \"top videos\",\"num_of_posts\": \"5\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"
keyword ,Keyword (Required)
This parameter specifies the keyword to search.
Request Example:
"keyword": "top videos"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-keyword" ^
-d "spider_parameters=[{\"keyword\": \"top videos\",\"num_of_posts\": \"5\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"6. YouTube - Scrape video post information by Explore
spider_id ,Scraper tool (Required)
Defines which scraper tool to use.
Request examples:
spider_id=youtube_video-post_by-explore
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-explore" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/feed/storefront?bp=ogUCKAU%3D\",\"all_tabs\": \"true\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"
url ,URL (Required)
This parameter specifies the Explore URL to crawl.
Request Example:
"url": "https://www.youtube.com/feed/storefront?bp=ogUCKAU%3D"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-explore" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/feed/storefront?bp=ogUCKAU%3D\",\"all_tabs\": \"true\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"all_tabs ,All Tabs (Optional)
This parameter specifies whether to collect all tabs.
Request Example:
"all_tabs": "true"
curl -X POST "https://scraperapi.thordata.com/builde" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=youtube.com" ^
-d "spider_id=youtube_video-post_by-explore" ^
-d "spider_parameters=[{\"url\": \"https://www.youtube.com/feed/storefront?bp=ogUCKAU%3D\",\"all_tabs\": \"true\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{VideoID}}"If you need further help, please contact us at [email protected].
Last updated
Was this helpful?