Skip to content

weatherapicom/go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

60dfd94 · Nov 8, 2023

History

6 Commits
Nov 8, 2023
Nov 8, 2023
Jul 22, 2022
Nov 8, 2023
Jul 22, 2022
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023

Repository files navigation

GO client for WeatherAPI.com

Introduction

WeatherAPI.com provides access to weather and geo data via a JSON/XML restful API. It allows developers to create desktop, web and mobile applications using this data very easy.

We provide following data through our API:

  • Real-time weather
  • 14 day weather forecast
  • Historical Weather
  • Marine Weather and Tide Data
  • Future Weather (Upto 365 days ahead)
  • Daily and hourly intervals
  • 15 min interval (Enterprise only)
  • Astronomy
  • Time zone
  • Location data
  • Sports
  • Search or Autocomplete API
  • Weather Alerts
  • Air Quality Data
  • Bulk Request

Getting Started

You need to signup and then you can find your API key under your account, and start using API right away!

Try our weather API by using interactive API Explorer.

We also have SDK for popular framework/languages available on Github for quick integrations.

If you find any features missing or have any suggestions, please contact us.

Authentication

API access to the data is protected by an API key. If at anytime, you find the API key has become vulnerable, please regenerate the key using Regenerate button next to the API key.

Authentication to the WeatherAPI.com API is provided by passing your API key as request parameter through an API .

key parameter

key=YOUR API KEY

Installation

Put the package under your project folder and add the following in import:

import "./swagger"

Documentation for API Endpoints

All URIs are relative to https://api.weatherapi.com/v1

Class Method HTTP request Description
APIsApi Astronomy Get /astronomy.json Astronomy API
APIsApi ForecastWeather Get /forecast.json Forecast API
APIsApi FutureWeather Get /future.json Future API
APIsApi HistoryWeather Get /history.json History API
APIsApi IpLookup Get /ip.json IP Lookup API
APIsApi MarineWeather Get /marine.json Marine Weather API
APIsApi RealtimeWeather Get /current.json Realtime API
APIsApi SearchAutocompleteWeather Get /search.json Search/Autocomplete API
APIsApi TimeZone Get /timezone.json Time Zone API

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published