L'API Coding Weather est un service gratuit développé par Coding Team qui permet d'obtenir les prévisions météorologiques pour une ville spécifique.
L'API Météo prend en charge la méthode suivante :
Vous pouvez utiliser l'API Météo de différentes manières :
curl https://cweather.vercel.app/VILLE
import requests
ville = "VILLE"
url = f"https://cweather.vercel.app/{ville}"
response = requests.get(url)
data = response.json()
print(data)
const ville = "VILLE";
const url = `https://cweather.vercel.app/${ville}`;
fetch(url)
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error(error);
});