Skip to content
Advertisement

Authorization error 401 using API – Python

This is my first time using an API in Python. I want to give a query on the website http://data.bioontology.org. Not sure what the API_KEY has to be. Also, I do have an account on this website but I do not have to log in to get a query result. Can someone please help me out?

JavaScript

Here’s the error output:

JavaScript

Advertisement

Answer

You need to have an account to request your api key. Excerpt below is from this page: https://www.bioontology.org/wiki/BioPortal_Help

Programming with the BioPortal API Documentation about how to use the BioPortal REST API to access information is available here:

http://data.bioontology.org/documentation

Getting an API key Use of the BioPortal REST API requires an API key.

To retrieve your API key, log into your account on the BioPortal website. If you don’t have an account, you’ll need to create one.

Your API key will be listed in plain text on your account page.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement