Weather API

Access current weather data for any location including over 200,000 cities
First 5 requests free

API Docs

(3 results)

Error Code

Pricing

By city name
By geographic coordinates
By IP address
By city name
https://global.juheapi.com/weather/v1/city
json
GET
https://global.juheapi.com/weather/v1/city?q=London,uk&apikey=xxxx
Call by city name or city name, state and country code. city name, state and country code divided by comma, use ISO 3166 country codes.

JUHEAPI Explorer - API testing tools

JUHEAPI Explorer allows you to call an API through its web interface , and view the entire process

Test
Request Parameter
NameMandatoryTypeDescription
apikey yes string the API KEY
q yes string city name, for example: London,uk suzhou,cn
Request Example
CURL
curl -i -k "https://global.juheapi.com/weather/v1/city?q=London,uk&apikey=xxxx"
Return Parameter
NameTypeDescription
code string the error code
msg string the response description
data array the data
name string City Name
weather string The Weather
weather_description string The Weather Description
temp string The emperature
humidity string The humidity
pressure string The pressure
sunrise string Sunrise time, unix, UTC
sunset string Sunset time, unix, UTC
wind_deg string Wind direction, degrees (meteorological)
wind_speed string Wind speed.
timezone string Shift in seconds from UTC
Return Example
JSON
{ "code": "0", "msg": "success", "data": { "name": "London", "weather": "Clouds", "weather_description": "scattered clouds", "temp": "45.1", "humidity": "65", "pressure": "1000", "sunrise": "1583217649", "sunset": "1583257456", "coord": { "lon": -0.13, "lat": 51.509999999999998 }, "wind_speed": "11.41", "wind_deg": "250", "timezone": "0" } }