Appearance
python
import requests
import json
url = "https://api.doppio.sh/v1/render/screenshot/async"
payload = json.dumps({
"doppio": {
"webhook": {
"url": "https://my-url.com/callback",
"method": "POST"
}
},
"page": {
"screenshot": {
"fullPage": True,
"type": "webp"
},
"goto": {
"url": "https://www.spacejam.com/1996"
}
}
})
headers = {
'Authorization': 'Bearer <YOUR API KEY>',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)