I think the token url is incorrect for the PublicAPI class is this: self._token_url = https://api.orcid.org/oauth/token should be this instead? self._token_url = "https://orcid.org/oauth/token"