Loading
Loading
https://api.apifreaks.com/v1.0/weather/current
$ 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)
Click Test it to start the request and see the response here!
| 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. |