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.
- Host: GitHub
- URL: https://github.com/matyilasango/gw-weather-api-v2
- Owner: MatyilaSango
- License: mit
- Created: 2023-09-06T19:06:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-24T11:11:28.000Z (over 2 years ago)
- Last Synced: 2025-06-30T03:04:51.907Z (12 months ago)
- Topics: json-data, nextapi, node-js, scraping
- Language: TypeScript
- Homepage: https://gw-weather-api-v2.vercel.app
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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']()