curl \ --user xxxxxxxxxxxxxxxxxxxxxxxxxxxxx: \ --header 'Content-Type: application/json' \ --data '{"url": "https://example.com/foo/bar", "browserHtml": true}' \ https://api.zyte.com/v1/extract
# Python 3 example using requests library. import requests API_URL = "https://api.zyte.com/v1/extract" API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxx" response = requests.post(API_URL, auth=(API_KEY, ''), json={ "url": "https://example.com/foo/bar", "browserHtml": True }) data = response.json() # data['browserHtml'] contains HTML of a web page.