script for provinces API