YouTube Scraper avatar
YouTube Scraper

Pricing

$5.00 / 1,000 videos

Go to Store
YouTube Scraper

YouTube Scraper

Developed by

Streamers

Streamers

Maintained by Apify

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.

4.6 (29)

Pricing

$5.00 / 1,000 videos

745

Total users

19.3k

Monthly users

3.3k

Runs succeeded

>99%

Issue response

2.4 days

Last modified

3 days ago

MH

Problem with URL entry

Closed

my_happy_social opened this issue
a year ago

Hi, 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?

svpetrenko avatar

Hi! The urls in the input have this format:

"startUrls": [
{
"url": "https://www.youtube.com/@amplycash_23"
}
]

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.

MH

my_happy_social

a year ago

Thank you, you were very kind, now it works perfectly!