API-Referenz

API für Website-Screenshot-API

Jede Seite als Bild oder PDF auf Desktop oder Mobilgerät erfassen. Nutzen Sie diese Referenz, um den passenden Endpunkt zu wählen und genau zu sehen, was er zurückgibt.

Operationen

GET /v1/screenshot API-Referenz ansehen

GET /v1/screenshot

Operation: getScreenshotCredits und Authentifizierung: 10Authentifizierung erforderlich
GET/v1/screenshotCredits: 10

Abfrageparameter

ParameterTyperforderlich
urlstringerforderlich
devicestring
Zulässige Werte desktopmobile
Standard desktop
optional
full_pagebooleanoptional
hide_cookie_bannersboolean
Standard true
optional
formatstring
Zulässige Werte pngjpegwebppdf
Standard png
optional
outputstring
Zulässige Werte jsonbinary
Standard json
optional

Antwortfelder

FeldTyp
urlstring
final_urlstring
statusstring
reasonstring | null
checked_atstring
http_statusinteger | null
redirect_countinteger
duration_msinteger
resource_limit_reachedboolean
captureobject
capture.formatstring
capture.mime_typestring
capture.devicestring
capture.full_pageboolean
capture.widthinteger | null
capture.heightinteger | null
capture.bytesinteger
capture.format_fallbackstring | null
capture.data_base64string
forwardedobject
forwarded.header_names[]string[]
forwarded.cookie_names[]string[]
forwarded.scopestring

Beispielanfrage

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/screenshot?url=https%3A%2F%2Fexample.com&device=desktop&full_page=false&hide_cookie_banners=true&format=png&output=json"
const response = await fetch("https://domscan.net/v1/screenshot?url=https%3A%2F%2Fexample.com&device=desktop&full_page=false&hide_cookie_banners=true&format=png&output=json", {
  headers: { "X-API-Key": process.env.DOMSCAN_API_KEY },
});
const data = await response.json();
console.log(data);
import os
import requests

response = requests.get(
    "https://domscan.net/v1/screenshot?url=https%3A%2F%2Fexample.com&device=desktop&full_page=false&hide_cookie_banners=true&format=png&output=json",
    headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest(http.MethodGet, "https://domscan.net/v1/screenshot?url=https%3A%2F%2Fexample.com&device=desktop&full_page=false&hide_cookie_banners=true&format=png&output=json", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	data, err := io.ReadAll(resp.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Status, string(data))
}
require "json"
require "net/http"

uri = URI("https://domscan.net/v1/screenshot?url=https%3A%2F%2Fexample.com&device=desktop&full_page=false&hide_cookie_banners=true&format=png&output=json")
request = Net::HTTP::Get.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts JSON.pretty_generate(JSON.parse(response.body))

Beispielantwort

{
  "url": "https://example.com/",
  "final_url": "https://example.com/",
  "status": "ok",
  "reason": null,
  "checked_at": "2026-10-13T12:00:00.000Z",
  "http_status": 200,
  "redirect_count": 0,
  "duration_ms": 4210,
  "resource_limit_reached": false,
  "capture": {
    "format": "png",
    "mime_type": "image/png",
    "device": "desktop",
    "full_page": false,
    "width": 1366,
    "height": 768,
    "bytes": 182340,
    "data_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
  }
}

HTTP-Statuscodes

  • 200 OK
  • 400 Ungültige Anfrage
  • 401 Nicht autorisiert
  • 402 Zahlung erforderlich
  • 429 Zu viele Anfragen

Referenzressourcen