The Problem? They don't have a proper documentation for using the API with Python. I faced a lot of issues in beginning and finally got it to work. So I made a simple package which you can use to retrieve the data from their API easily.
1. Import the package from pygeclip import *
-
Make an instance of the class pgconn()
item = pgconn("url", "api_key")
This takes two parameters, The URL Your api key You can refer to PageClip documentation for both (it's easily undestandable, they have great documentation!)
-
Call the data() function
item.data()
This returns the data from the api in json format and you can use it do do your magic!
Install it using PIP pip install pygeclip
1: Putting the data to the form through api
2: Retrieving and processing the data in CSV format