Youtube v3 - alternative

फ्रीमियम
द्वारा ytdlfree | अपडेट किया गया 2 months ago | Data
लोकप्रियता

9.8 / 10

लेटेंसी

463ms

सेवा का स्तर

100%

Health Check

100%

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

I can't get response from API endpoint

Rapid account: Telugurunninggamer
telugurunninggamer
10 months ago

Request failed with status code 401
AxiosError: Request failed with status code 401
at settle (http://localhost:3000/static/js/bundle.js:63377:12)
at XMLHttpRequest.onloadend (http://localhost:3000/static/js/bundle.js:62077:66)

	I have modified the snippet like this 
	import axios from "axios";

const URL = “https://youtube-v3-alternative.p.rapidapi.com”;

const options = {
params: {id: ‘dQw4w9WgXcQ’},
headers: {
“X-RapidAPI-Key”: process.env.REACT_APP_RAPID_API_KEY,
“X-RapidAPI-Host”: “youtube-v3-alternative.p.rapidapi.com”,
},
};

export const fetchAPI = async (url) => {
const {data}= await axios.get(${URL}/${url}, options);
console.log(data)
return data
};

Rapid account: Ytdlfree
ytdlfree Commented 10 months ago

Looks like the apikey not set properly. Please recheck your code.

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

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