Public APIs
weather-api favicon

weather-api

Weather

A RESTful free API to check the weather.

weather-api's website screenshot

About weather-api

Weather-api is a RESTful API written in Go that returns current weather conditions for a given city, accessed via a URL path parameter (for example, weather/{city}). Responses are JSON and include temperature, wind speed, a text description of conditions, and a short multi-day forecast with per-day temperature and wind values.

The repository provides source code that can be built and run locally with standard Go tooling, producing a local server that exposes the weather endpoint. It is intended for developers building applications that need weather data, and the project links to several third-party web clients built on top of the API as usage examples. The code is released under the MIT license.

Key features

  • REST API for current weather by city name via URL path
  • Returns temperature, wind speed, and weather description
  • Includes a multi-day forecast with temperature and wind per day
  • Open source Go project, buildable and runnable locally
  • Public hosted endpoint at goweather.xyz

Frequently asked questions

Is this API free to use?

It is an open-source MIT-licensed project with a public hosted endpoint at goweather.xyz, and no pricing or API key is mentioned.

What language is it built in?

It is written in Go and can be built locally with 'go build'.

How do I query the weather for a city?

Send a GET request to /weather/{city}, e.g. http://goweather.xyz/weather/Berlin.

What data does the API return?

It returns JSON with temperature, wind, a text description, and a forecast array with per-day temperature and wind.

Are there example client apps using this API?

Yes, the README lists several community web clients built on top of the API, including reacttempo.netlify.app and weather-react-tsx.netlify.app.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product