API Documents - GuGuData | Production-Ready APIs Built for Developers
  1. Website Tools
API Documents - GuGuData | Production-Ready APIs Built for Developers
  • GuGuData API documents
  • Metadata
    • DEMO
      • [DEMO] Global QS World University Rankings
      • [DEMO] Global University
      • [DEMO] Chinese Poem
    • Global QS World University Rankings
      GET
    • Global University
      GET
    • Chinese Poem
      GET
  • Website Tools
    • DEMO
      • [DEMO] Webpage Readable Content Extraction
      • [DEMO] Domain SSL Certificate Information Parsing
      • [DEMO] Domain DNS Information Query
      • [DEMO] Query Website Favicon and Title
      • [DEMO] Format International Phone
      • [DEMO] URL to static HTML
      • [DEMO] URL to Image
      • [DEMO] URL to Markdown
      • [DEMO] Get URL links
      • [DEMO] Website Snapshot
      • [DEMO] Domain Whois
      • [DEMO] IP Address
      • [DEMO] Article Extract
      • [DEMO] Geographic Coordinate System Converter
      • [DEMO] Extract Structured JSON from Webpage
    • Webpage Readable Content Extraction
      POST
    • Domain SSL Certificate Information Parsing
      GET
    • Domain DNS Information Query
      GET
    • Query Website Favicon and Title
      GET
    • Format International Phone
      GET
    • URL to static HTML
      POST
    • URL to Image
      GET
    • URL to Markdown
      POST
    • Get URL links
      GET
    • Website Snapshot
      POST
    • Domain Whois
      GET
    • IP Address
      GET
    • Article Extract
      POST
    • Geographic Coordinate System Converter
      GET
    • Extract Structured JSON from Webpage
      POST
  • Image Recognition
    • DEMO
      • [DEMO] HTML to PDF
      • [DEMO] Image OCR
      • [DEMO] PDF to Format
      • [DEMO] PDF Splitting
      • [DEMO] Markdown to PDF
      • [DEMO] PPT to Images
      • [DEMO] PDF to HTML
      • [DEMO] PDF Summary
      • [DEMO] Image Compress
      • [DEMO] Word to HTML
    • HTML to PDF
      POST
    • Image OCR
      POST
    • PDF to Format
      POST
    • PDF Splitting
      POST
    • Markdown to PDF
      POST
    • PPT to Images
      POST
    • PDF to HTML
      POST
    • PDF Summary
      POST
    • Image Compress
      POST
    • Word to HTML
      POST
  • QRcode and Barcode
    • DEMO
      • [DEMO] QR Code
      • [DEMO] Wifi QR Code
      • [DEMO] Bar Code
    • QR Code
    • Wifi QR Code
    • Bar Code
  • Text Tools
    • DEMO
      • [DEMO] Simplified and Traditional Chinese Converter
      • [DEMO] Text Similarity Calculator
    • Simplified and Traditional Chinese Converter
    • Text Similarity Calculator
  • healthcheck
    GET
  1. Website Tools

URL to Image

GET
https://api.gugudata.io/v1/websitetools/url2image
Last modified:2026-02-11 09:08:02
Convert Webpage to Image
Convert any webpage to high-quality image with customizable options
Method: GET
Path: /v1/websitetools/url2image
Demo: https://api.gugudata.io/v1/websitetools/url2image/demo
Request Parameters:
appkey (string, required): Obtained after payment
url (string, required): The URL of the webpage to capture
isFullPage (boolean, optional): Whether to capture the full page (true) or just viewport (false)
width (integer, optional): Image width in pixels
height (integer, optional): Image height in pixels
viewportWidth (integer, optional): Viewport width in pixels for rendering
viewportHeight (integer, optional): Viewport height in pixels for rendering
forceReload (boolean, optional): Whether to force reload the page ignoring cache
isMobile (boolean, optional): Whether to simulate mobile device
isDarkMode (boolean, optional): Whether to enable dark mode
deviceScaleFactor (integer, optional): Device scale factor for high-DPI displays (1-4)
Response Fields Count: 1
Response Field Examples:
image: PNG image file stream of the captured webpage
Key Features:
Support capturing screenshots from any publicly accessible webpage
Flexible image dimensions with customizable width and height
Full page capture or viewport-only screenshot options
Mobile device simulation for responsive design testing
Dark mode support for modern websites
Details:
https://gugudata.io/details/url2image

Request

Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.gugudata.io/v1/websitetools/url2image?appkey=sk-******&url=https://www.gugudata.io&isFullPage=true&width=1080&height=600&viewportWidth=1080&viewportHeight=1080&isMobile=false&isDarkMode=false'

Responses

⚪0
application/json
Body

Example
{
  "image": null,
  "DataStatus": {
    "StatusCode": 100,
    "StatusDescription": "OK",
    "ResponseDateTime": "2026-01-01 00:00:00",
    "DataTotalCount": 1
  }
}
Modified at 2026-02-11 09:08:02
Previous
URL to static HTML
Next
URL to Markdown
Built with