Weather API - Current Conditions by City or Coordinates
Returns current weather data for a location specified by city name or latitude/longitude. The response includes temperature (with feels-like), humidity, precipitation, wind speed and direction, cloud cover, a numeric weather code, and a human-readable description.
Code examples
curl -X POST https://api.botoi.com/v1/weather/current \
-H "Content-Type: application/json" \
-d '{"city":"London","lat":51.5074,"lng":-0.1278}'When to use this API
Dynamic content based on local weather
Personalize homepage banners or product recommendations based on the visitor's local weather. A retail site can promote umbrellas when it's raining or sunscreen during clear skies, increasing conversion rates with contextual relevance.
Logistics and delivery route planning
Check weather conditions along delivery routes before dispatching drivers. Flag routes with high winds or heavy precipitation so dispatchers can reroute or delay shipments to protect goods and driver safety.
IoT and smart home automation
Poll current weather data to trigger smart home actions. Close motorized blinds when cloud cover drops below 20%, activate sprinklers only when precipitation is zero, or adjust thermostat setpoints based on the feels-like temperature.
Frequently asked questions
Should I use city name or coordinates?
What temperature unit is returned?
How often is the weather data updated?
What does the weather_code field represent?
What happens if neither city nor coordinates are provided?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.