https://github.com/robertoduessmann/weather-api
A RESTful API to check the weather
https://github.com/robertoduessmann/weather-api
golang weather weather-api
Last synced: about 21 hours ago
JSON representation
A RESTful API to check the weather
- Host: GitHub
- URL: https://github.com/robertoduessmann/weather-api
- Owner: robertoduessmann
- License: mit
- Created: 2017-07-26T00:16:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-10-27T21:07:37.000Z (3 months ago)
- Last Synced: 2025-10-27T23:07:42.209Z (3 months ago)
- Topics: golang, weather, weather-api
- Language: Go
- Homepage: https://goweather.xyz/v2/weather/Berlin
- Size: 107 KB
- Stars: 447
- Watchers: 4
- Forks: 73
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- apis-tools-development - **Weather-API**
- public-apis - weather-api
- public-apis - weather-api
- Awesome-API-Provider - weather-api
- public-apis - weather-api
- APIs-tools-collection - **Weather-API**
- Public-APIs - **Weather-API**
- fucking-public-apis - weather-api
README
# weather-api
[](/LICENSE)
[](https://goreportcard.com/report/github.com/robertoduessmann/weather-api)
[](https://godoc.org/github.com/robertoduessmann/weather-api)
> A REST API to check the current weather.
> http://goweather.xyz/weather/Berlin
> http://goweather.xyz/weather/{city}
## Build locally (Mac users)
```sh
go build
```
## Run
```sh
./weather-api
```
## Usage
```sh
curl http://localhost:3000/weather/{city}
```
## Example
#### Request
```sh
curl http://localhost:3000/weather/Curitiba
```
#### Response
```json
{
"temperature": "29 °C",
"wind": "20 km/h",
"description": "Partly cloudy",
"forecast": [
{
"day": "1",
"temperature": "27 °C",
"wind": "12 km/h"
},
{
"day": "2",
"temperature": "22 °C",
"wind": "8 km/h"
}
]
}
```
## Web Version
Few web clients of the API and their Projects:
1. **Client:** [https://reacttempo.netlify.app/](https://reacttempo.netlify.app/)
**Project:** [https://github.com/GabrielCampos99/appTempo](https://github.com/GabrielCampos99/appTempo)
2. **Client:** [https://emaniaditya.github.io/weather-app](https://emaniaditya.github.io/weather-app)
**Project:** [https://github.com/emaniaditya/weather-app/](https://github.com/emaniaditya/weather-app/)
3. **Client:** [https://weather-react-tsx.netlify.app/](https://weather-react-tsx.netlify.app/)
**Project:** [https://github.com/keissiant/weather-api-react.tsx](https://github.com/keissiant/weather-api-react.tsx)
## License
The MIT License ([MIT](https://github.com/robertoduessmann/weather-api/blob/master/LICENSE))