This is an API service whose core function is to capture screenshots of any webpage and return the image data as an image link.
/tool/screenshot
The API provides a rich set of parameters for highly customizable screenshots:
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
url | string | Yes | - | The URL of the website to screenshot |
width | number | No | 1920 | Viewport width (pixels) |
height | number | No | 950 | Viewport height (pixels) |
fullPage | boolean | No | false | Whether to capture the full page |
quality | number | No | 60 | JPEG quality (1-100) |
timeout | number | No | 60000 | Timeout in milliseconds |
wait_for_selector | string | No | - | Wait for a specific element to appear before capturing (CSS selector) |
wait_time | number | No | 2000 | Extra wait time in milliseconds |
Supports both POST and GET request methods.
POST Request Example:
bash
curl -X POST http://localhost:5000/tool/url_screenshot
-H "Content-Type: application/"
-d '{
"url": "https://www.example.com",
"width": 1024,
"height": 768,
"fullPage": true,
"quality": 90
}'
GET Request Example:
http://localhost:5000/tool/url_screenshot?url=https://www.example.com&width=1024&height=768&fullPage=true&quality=90
After the API is successfully executed, it returns a JSON object containing the screenshot status and the image URL.
{ "success": true, "imageUrl": "https://files.thinkwriter.ai/file/screenshot/xxxxxx.jpeg", "message": "Screenshot taken successfully" }
wait_for_selector
and wait_time
parameters ensure screenshots are taken after dynamic content has loaded, improving accuracy.Developers, product managers, and any businesses or individuals who need to automate or integrate webpage screenshot functionality into their services.
The page does not provide detailed pricing information or pricing models.
액세스 3.76M 가격 모델 Paid
액세스 0 가격 모델 Freemium
액세스 27.49K 가격 모델