https://github.com/jhowbhz/weather-api
Weather for Lat Long IP (Previsão do tempo por latitude e longitude)
https://github.com/jhowbhz/weather-api
api-free python restful-api
Last synced: about 1 year ago
JSON representation
Weather for Lat Long IP (Previsão do tempo por latitude e longitude)
- Host: GitHub
- URL: https://github.com/jhowbhz/weather-api
- Owner: jhowbhz
- Created: 2021-04-06T06:05:50.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T01:40:45.000Z (over 2 years ago)
- Last Synced: 2025-04-03T12:56:11.009Z (over 1 year ago)
- Topics: api-free, python, restful-api
- Language: Python
- Homepage: https://www.contrateumdev.com.br/
- Size: 4.88 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Doc
### Weather for Lat Long IP (Previsão do tempo por latitude e longitude)
Is a simple API develop in PYTHON and Flask, to integration in OpenWeatherMap for free user :)
## Climate for city and state
get temperature and climate for city and state
``GET : https://weather.contrateumdev.com.br/api/weather/city/?city=Belo%20Horizonte,minas%20gerais``
## Climate for latitude longitude
get temperature and climate for latitude longitude
``GET : https://weather.contrateumdev.com.br/api/weather?lat=-19.8218131&lon=-44.0094874``
### Example city JS
```javascript
$.post({
method: 'GET',
url: `https://weather.contrateumdev.com.br/api/weather/city/?city=Belo%20Horizonte,minas%20gerais`,
contentType:"application/json; charset=utf-8",
dataType:"json",
success: function(resultado, status, xhr) {
console.log(resultado)
}
})
```
### Example lat & lon JS
```javascript
$.post({
method: 'GET',
url: `https://weather.contrateumdev.com.br/api/weather/api/weather?lat=-19.8218131&lon=-44.0094874`,
contentType:"application/json; charset=utf-8",
dataType:"json",
success: function(resultado, status, xhr) {
console.log(resultado)
}
})
```