Did you already try the new Windows 10 October 2020 Update?

Share your feedback and experience with TeamViewer on the new Windows build with our developers here.

Posted by

Get 401 Unauthorized with Python Request

Ok, maybe I will have more luck with this

I'm tring the following code it is returning 401 Unauthorized. What am I missing? At this point due to the total lack of any documentation , I can only guess. Need documentation!

Thanks Again x2

import requests
from requests.auth import HTTPDigestAuth
import json

url = ''

#401 Unauthorized
headers = {"content-type": "application/json", "Authorization": "Bearer xxxxxxxxxxx"}
r= requests.get(url, headers=headers)

1 Reply
1 Reply
Posted by TeamViewer Star
TeamViewer Star

Re: Get 401 Unauthorized with Python Request

Hi @RlS,

at this link you will find the documentation for TeamViewer APIs (Download button).

Screenshot (34)_LI.jpg


Domenico Langone
MCSD: App Builder
Did my reply answer your question? Accept it as a solution to help others.
Find this helpful? Say thanks by clicking on the Thumbs Up button.