Weather by API-Ninjas

FREEMIUM
By API Ninjas Team | Updated a month ago | Weather
Popularity

9.8 / 10

Latency

660ms

Service Level

100%

Health Check

N/A

Back to All Discussions

this work 1000%

Rapid account: Gouravsandhu 2002
gouravsandhu2002
10 months ago

const options = {
method: ‘GET’,
headers: {
‘content-type’: ‘application/octet-stream’,
‘X-RapidAPI-Key’: ‘763c810bdfmshb9f4669b80c3925p18d818jsn3db5be365864’,
‘X-RapidAPI-Host’: ‘weather-by-api-ninjas.p.rapidapi.com
}
};

fetch(‘https://weather-by-api-ninjas.p.rapidapi.com/v1/weather?city=Lucknow’, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));

Join in the discussion - add comment below:

Login / Signup to post new comments