It works with all parameters but for rain.3h and snow.3h (for forecasting purposes) it does not work.
data = requests.post(api_call)
humidity = 
rain = 
data = data.json()
for lists in data['list']:
I have the message: "KeyError rain"
I don't know why it doesn't work with "3h" because I follow what your documentation says : https://openweathermap.org/forecast5
list.rain.3h Rain volume for last 3 hours, mm
Does this value present in the JSON outputs? It may be omitted from JSON, if main weather is not “Rain”