Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3720

Fetching images from Youtube - unpredictable 403

$
0
0

I'm successfully fetching channels from the Youtube Data API.

Later, when I use the image urls (of the channel profile images) in my React components, using a prop named image:

image={{src: source.content.image}}

I'm only getting some of the images:

Only some images are displayed

The ones that don't show give me:enter image description here

I'm currently using the .medium option

image: item.snippet.thumbnails.medium?.url.toString() || ""

when I fetch them initially..default brings the same issue.

On some days I only get a few 403s when displayling those images. On others almost every image url results in a 403.I'm also under the impression, that some particular images have a higher chance of being shown. Such as the two images above for the search term "ok".Here are their urls:https://yt3.ggpht.com/ytc/AKedOLTJe9ob0HBWUlnST_EbCGMUq9buu36epv8KO-HVBw=s240-c-k-c0x00ffffff-no-rjhttps://yt3.ggpht.com/ytc/AKedOLTPFApx-CKviVzQzWT2HCNAMDMr3KGOkmOMM3eRVA=s240-c-k-c0x00ffffff-no-rj


Viewing all articles
Browse latest Browse all 3720

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>