An open API service indexing awesome lists of open source software.

https://github.com/matyilasango/gw-weather-api-v2

A global weather API that can get the data of any location all over the world.
https://github.com/matyilasango/gw-weather-api-v2

json-data nextapi node-js scraping

Last synced: about 2 months ago
JSON representation

A global weather API that can get the data of any location all over the world.

Awesome Lists containing this project

README

          

# gw-weather-api-v2
A weather API that provides the weather data in the form of a JSON file.

## Home page
Confirms that the API is running.

## Commands.
You can get the goe location object of the endpoints using the Locations endpoint.

| Name | Description | Endpoint | Method | Body |
| ---- | ---------| ------ | ------ | -----|
| Home | Home page | /api/v2 | GET ||
| Locations | Locations data | /api/v2/Locations | POST | { "city": "Cape Town" } |
| Today | Today weather data | /api/v2/Today | POST | { "city": "Cape Town", "geo": { "long": "18.543", "lat": "-33.915" } } |
| Hourly | Hourly data for the next 10 hours max | /api/v2/Hourly | POST | { "city": "Cape Town", "geo": { "long": "18.543", "lat": "-33.915" } } |
| Daily | Daily weather data. Day 0 is the current day; Day 1 is the next day after today; etc. | /api/v2/Daily | POST | { "city": "Cape Town", "geo": { "long": "18.543", "lat": "-33.915" }, "day": "0" } |
| Mothly | Monthly weather data | /api/v2/Mothly | POST | { "city": "Cape Town", "geo": { "long": "18.543", "lat": "-33.915" } } |

## Deployed on Vercel
Link to the API: ['to be added']()