Webtoon

फ्रीमियम
द्वारा Api Dojo | अपडेट किया गया il y a 23 jours | Entertainment
लोकप्रियता

9.3 / 10

लेटेंसी

2,935ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Correct Headers for loading images

Rapid account: Absolanki 772
absolanki772
il y a un an
I am trying to get images from the api, and it gives me fetch failed. 

Are these the only headers needed for the GET?

const imgOptions = {
	method: 'GET',
	headers: {
		'X-RapidAPI-Key': 'API_KEY',
		'X-RapidAPI-Host': 'webtoon.p.rapidapi.com',
		'User-Agent': 'Mozilla/5.0 (Linux; Android 8.1.0; Mi MIX 2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Mobile Safari/537.36',
		'Referer': 'http://m.webtoons.com/'
	}
};
Rapid account: Absolanki 772
absolanki772 Commented il y a un an

I tried following the tutorial where there were only 2 headers:

‘User-Agent’: ‘Mozilla/5.0 (Linux; Android 8.1.0; Mi MIX 2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Mobile Safari/537.36’,
‘Referer’: ‘http://m.webtoons.com/

but which didnt seem to work. So I am posting here to figure out if I need more headers than the above 2.

Rapid account: Apidojo
apidojo Commented il y a un an

Hello,

You may check the tutorial at https://rapidapi.com/apidojo/api/webtoon/tutorials

Regards.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें