URL to Screenshot

    POST
    https://api.peekshot.com/api/v1/screenshots
    Capture high-quality screenshots from any webpage URL programmatically using PeekShot’s URL-to-image Take Screenshot API. Provide a valid website link and instantly receive a rendered image in your chosen format and resolution — ideal for automation, previews, monitoring, and integrations.

    Headers

    NameTypeDescription
    x-api-key*
    string

    Your unique API key for authentication

    Content-Type*
    string

    Must be application/json

    Example:application/json

    Body Parameters

    NameTypeDescription
    project_id*
    string

    Unique project identifier

    Example:"1"

    url*
    string

    The website URL to capture

    Example:"https://9ethics.com"

    width
    string

    Screenshot width (default: 1280)

    Example:"1280"

    height
    string

    Screenshot height (default: 1024)

    Example:"1024"

    inject_css
    string

    Custom CSS to apply

    inject_js
    string

    Custom JavaScript to apply

    file_type
    string

    jpeg or png (default "jpeg")

    Example:"jpeg"

    retina
    string

    ”true” for high-resolution screenshots

    Example:"false"

    delay
    string

    Time (in seconds) to wait before capturing

    Example:"10"

    full_page
    string

    ”true” to capture the entire page, “false” for viewport only

    disable_javascript
    string

    ”true” to disable JavaScript execution

    emulate_device
    string

    how your website appears on different devices

    Example:"iphone 15 plus"

    disable_animations
    string

    ”true” to disable animations

    proxy_url
    string

    HTTP proxy URL (supports authentication)

    Example:"http://username:password@host:port"

    custom_header
    string

    Inject custom header into request

    element_selector
    string

    Target a specific element. Use CSS selector (e.g., “#header”) or XPath with “xpath=” prefix (e.g., “xpath=//div[@id=‘main’]“)