Lookup state and city using ziptastic API

I have tried this and it doesn’t work for me, it always goes to else and prints “Fetch did not succeed”. Please help. TIA