Loading
Loading
https://api.apifreaks.com/v1.0/weather/current
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
import json
url = "https://api.apifreaks.com/v1.0/weather/current"
payload = json.dumps({
"locations": [
{
"location": "lahore"
},
{
"lat": 32.5,
"long": 74.5
},
{
"ip": "8.8.8.8"
},
{
"location": "seoul"
}
]
})
headers = {
'Content-Type': 'application/json',
'X-apiKey': ''
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
| Field | Type | Requirement | Description |
|---|---|---|---|
| Bulk | Array | Mandatory | An array where each element is a weather result object for one of your requested locations. See the response structure details here. |