You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/robertoduessmann/weather-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/robertoduessmann/weather-api

v0.0.0-20250424201542-b19aaed62ab7
Source
Go
Version published
Created
Source

weather-api

License Go Report Card GoDoc

A REST API to check the current weather.

http://goweather.xyz/weather/Berlin
> http://goweather.xyz/weather/{city}

Build locally (Mac users)

go build

Run

./weather-api

Usage

curl http://localhost:3000/weather/{city}

Example

Request

curl http://localhost:3000/weather/Curitiba

Response

{
  "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:

License

The MIT License (MIT)

FAQs

Package last updated on 24 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts