Current weather conditions and meteorological data for a specific location including temperature, humidity, pressure, wind, visibility, UV index, and weather conditions. Used for weather applications, forecasting services, and climate monitoring.
https://api.mockly.codes/weathers?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/weathersGet a collection of weather
/location/weathers/weathers/:idGet a single weather by ID
/location/weathers/:id/weathers/metaGet resource metadata and schema
/location/weathers/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/weathers?q=laptopGET https://api.mockly.codes/weathers?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 weather
fetch('https://api.mockly.codes/weathers?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/weathers?count=10'
)
data = response.json()curl "https://api.mockly.codes/weathers?count=10"fetch('https://api.mockly.codes/weathers?nocache=true')idintegerrequiredUnique identifier for the weather record
random_intcitystringrequiredName of the city where weather was observed
citycountrystringrequiredName of the country where weather was observed
countrylatitudenumberGeographic latitude coordinate of the weather observation location
latitudelongitudenumberGeographic longitude coordinate of the weather observation location
longitudetemperaturenumberrequiredCurrent air temperature in degrees Celsius
temperaturefeels_likenumberApparent or 'feels like' temperature in degrees Celsius, accounting for wind and humidity
temperaturehumidityintegerRelative humidity percentage (0-100)
humiditypressureintegerAtmospheric pressure in hectopascals (hPa) or millibars
pressurewind_speednumberWind speed in meters per second
wind_speedwind_directionstringWind direction (e.g., N, NE, E, SE, S, SW, W, NW) or degrees (0-360)
wind_directionconditionstringCurrent weather condition (e.g., clear, cloudy, rain, snow, fog, storm)
weather_conditiondescriptionstringDetailed textual description of current weather conditions
weather_descriptionvisibilityintegerHorizontal visibility distance in meters
visibilityuv_indexintegerUltraviolet (UV) index value (0-11+), indicating sunburn risk
uv_indextimestampstringTimestamp when the weather observation was recorded
date_timedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request