curl --request POST \
--url https://api.snapopa.com/screenshot \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com"
}
'{
"success": true,
"error": null,
"data": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileUrl": "<string>",
"fromCache": true,
"tokenCost": 123,
"processingTimeMs": 123,
"metadata": {
"url": "<string>",
"capturedAt": "2023-11-07T05:31:56Z",
"format": "<string>",
"mimeType": "<string>",
"fileSizeBytes": 123,
"viewport": {
"width": 123,
"height": 123
},
"fullPage": true,
"expiresAt": "2023-11-07T05:31:56Z"
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}Capture
Create Screenshot
Captures a PNG, JPEG or WebP screenshot of a URL or HTML.
Token Cost
Base cost: 1 token
Additional costs:
- Anti-Bot Mode: +1 token
POST
/
screenshot
curl --request POST \
--url https://api.snapopa.com/screenshot \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com"
}
'{
"success": true,
"error": null,
"data": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileUrl": "<string>",
"fromCache": true,
"tokenCost": 123,
"processingTimeMs": 123,
"metadata": {
"url": "<string>",
"capturedAt": "2023-11-07T05:31:56Z",
"format": "<string>",
"mimeType": "<string>",
"fileSizeBytes": 123,
"viewport": {
"width": 123,
"height": 123
},
"fullPage": true,
"expiresAt": "2023-11-07T05:31:56Z"
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"data": null
}Authorizations
API key authentication. Get your API key at https://snapopa.com/dashboard
Body
application/json