📘 API Documentation

How to use the Weather API

Base URl

https://goyalsoft-weatherpro-api.onrender.com/weather

Query Parameters

        apiKey = Your generated API key
        city   = City name
        type   = weather | forecast
      

Images According to weather

https://goyalsoft-weatherpro.netlify.app/condition/imgs/${weather.icon}@2x.png

Type Values

🌤 Live Weather

?type=weather

🌦 Forecast (Hourly + Daily)

?type=forecast

🌦 Hourly (Hourly)

?type=hourly

Examples

        /weather?apiKey=KEY_ABC123&type=weather&city=Delhi
      
        /weather?apiKey=KEY_ABC123&type=forecast&city=Mumbai
      
        /weather?apiKey=KEY_ABC123&type=hourly&city=Mumbai
      
⬅ Back to Dashboard