Weather by API-Ninjas

FREEMIUM
Door API Ninjas Team | Bijgewerkt 2달 전 | Weather
Populariteit

9.8 / 10

Latency

644ms

Serviceniveau

100%

Health Check

N/A

Terug naar alle discussies

use this code it works

Rapid account: Aellysijapati 12
aellysijapati12
일 년 전

const url = “https://weather-by-api-ninjas.p.rapidapi.com/v1/weather?city=Lucknow”;
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(url, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen