Skip to content

Instantly share code, notes, and snippets.

@SaschaHeyer
Created July 27, 2020 19:14
Show Gist options
  • Select an option

  • Save SaschaHeyer/6aa31e0b255083db7cfc8d77eb4a66e2 to your computer and use it in GitHub Desktop.

Select an option

Save SaschaHeyer/6aa31e0b255083db7cfc8d77eb4a66e2 to your computer and use it in GitHub Desktop.
export.py
URL = "https://api.ioannotator.com/api/export"
# parameter
apikey = "PZK888A-AEQMDPY-MKKPU2Q-JZ786NX"
dataset = "5758665286207488"
# defining a params dict for the parameters to be sent to the IO Annotator API
PARAMS = {'apikey':apikey, 'dataset': dataset}
# sending get request and saving the response (annotations) as response object
r = requests.get(url = URL, params = PARAMS)
# extracting data in json format
data = r.json()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment