Condition codes and icons
Codes follow the common OpenWeather numbering, so code written for that service maps easily: 2xx thunderstorm, 3xx drizzle, 5xx rain, 6xx snow, 741 fog, 800 clear sky and 801–804 clouds. The icon field is a simple name such as clear-day, partly-cloudy-night, rain or thunderstorm that you can map to your own images.
Free daily limit
Shared with the other mock services: 50 requests per day and 10 per minute per IP address, shown in the X-RateLimit-Daily-* headers. Current weather changes every hour and forecasts once a day, so cache responses for at least 10 minutes.
Frequently asked questions
Is this real weather?
No. It is generated from climate averages for each place and season, so it is realistic for designs and tests but not a forecast.
Which Cambodian places are covered?
All 24 provinces and Phnom Penh, by id (e.g. kampong-cham), English name or Khmer name. /weather/cities?country=KH lists them.
Are sunrise and sunset times correct?
Yes, they are calculated from latitude, longitude and date with the standard solar formula, in the place’s local time zone.
Can I get the text in Khmer?
Every condition has text in English and textKm in Khmer, and forecast days include weekdayKm.