bdaca icon indicating copy to clipboard operation
bdaca copied to clipboard

manifesto project api as other example

Open damian0604 opened this issue 5 years ago • 1 comments

https://manifesto-project.wzb.eu/information/documents/api

damian0604 avatar Mar 01 '19 10:03 damian0604

need to create account and api key, then it is straightforward:


In [1]: import requests

In [2]: mykey = "43216759be93XXXXXXXXXXXXXXXXXXXXXXX"    # put your key from your profile page here

In [3]: data = requests.get("https://manifesto-project.wzb.eu/tools/api_list_core_versions.json?api_key={}".format(mykey))

In [4]: data
Out[5]: <Response [200]>

In [5]: datadict = data.json()

In [6]: type(datadict)
Out[7]: dict

In [7]: datadict.keys()
Out[8]: dict_keys(['datasets'])



damian0604 avatar Mar 01 '19 18:03 damian0604