Youtube Scraper avatar
Youtube Scraper
Try for free

Pay $5.00 for 1,000 videos

View all Actors
Youtube Scraper

Youtube Scraper

streamers/youtube-scraper
Try for free

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.

User avatar

Problem with URL entry

Closed

my_happy_social opened this issue
13 days 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?

User avatar

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.

User avatar

my_happy_social

13 days ago

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

Developer
Maintained by Apify
Actor metrics
  • 646 monthly users
  • 60.4% runs succeeded
  • 5 days response time
  • Created in Jul 2023
  • Modified 2 days ago