YouTube Scraper
Pay $5.00 for 1,000 videos
YouTube Scraper
Pay $5.00 for 1,000 videos
YouTube crawler and video scraper. Alternative YouTube API with no limits or quotas. Extract and download channel name, likes, number of views, and number of subscribers.
Do you want to learn more about this Actor?
Get a demoHi, I connected the API to Bubble.io and with the GET function it works perfectly.
Now I am testing with the POST function (Run task synchronously and get dataset items) but it gives me errors when I enter the URL via JSON.
This is the JSON code:
{ “startUrls”: [ “https://www.youtube.com/watch?v=MjQG-a7d41Q&ab_channel=WaltDisneyStudios” ] }
This is the error that appears to me in Bubble.io:
{ “error”: { “type”: “invalid-input”, “message”: “Input is not valid: Items in input.startUrls at positions [0] do not contain valid URLs” } }
I also tried this JSON:
{ “url”: “https://www.youtube.com/watch?v=MjQG-a7d41Q&ab_channel=WaltDisneyStudios” }
And the error reported by Bubble.io is this:
Raw response for the API Status code 400 { “error”: { “type”: “run-failed”, “message”: “Actor run did not succeed (run ID: uuFYMCZxjncUpnZ3f, status: FAILED).” } }
Do you have a solution please?
Hi! The urls in the input have this format:
1"startUrls": [ 2 { 3 "url": "https://www.youtube.com/@amplycash_23" 4 } 5 ]
I.e. the url itself is wrapped in a JSON object with a url
property. So the first input would be fine, just wrap the url in such a JSON object.
As a tip, you could set up an example input via visual editor here on Apify, then switch to JSON editor and copy the format.
Thank you, you were very kind, now it works perfectly!
- 1.7k monthly users
- 163 stars
- 85.0% runs succeeded
- 1.6 days response time
- Created in Jul 2023
- Modified 3 days ago