Webtoon

부분 유료
분류별 Api Dojo | 업데이트됨 21 days ago | Entertainment
인기

9.3 / 10

지연 시간

2,933ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Correct Headers for loading images

Rapid account: Absolanki 772
absolanki772
a year ago
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 a year ago

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 a year ago

Hello,

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

Regards.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입