Skip to main content
GET
Capture website screenshot
Request example pending verification. The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (X-AISA-Cost-Mode: quote) before running it.

Request contract

  • Method and path: GET /apis/v1/web/screenshot
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/web/screenshot
  • blockAds: query; optional
  • blockCookieBanners: query; optional
  • cacheMode: query; optional
  • cacheTtl: query; optional
  • darkMode: query; optional
  • delay: query; optional
  • deviceScaleFactor: query; optional
  • format: query; optional
  • fullPage: query; optional
  • quality: query; optional
  • region: query; optional
  • response: query; optional
  • selector: query; optional
  • url: query; required
  • viewportHeight: query; optional
  • viewportWidth: query; optional
  • waitFor: query; optional
  • waitUntil: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Observed response structure

The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.
  • HTTP status / last observed: 200 / 2026-11-27

Cost and request rules

Usage-based pricing. Default request estimate: $0.028 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Response time

  • Typically returns within 10 seconds.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

blockAds
boolean

Block ads and trackers during render. Default: true.

Dismiss/block cookie consent banners. Default: true.

cacheMode
enum<string>

Cache behavior. enabled: read from cache if present, else fetch and write to cache. bypass: always fetch fresh, ignoring and not updating the cache. write_only: always fetch fresh, but write the result to cache without reading from it first. Default: enabled.

Available options:
bypass,
enabled,
write_only
Required string length: 1 - 4096
cacheTtl
integer

Requested cache lifetime in seconds, from 60 to 604800. This does not extend the lifetime of returned media links; check their returned expiration.

Required range: 60 <= x <= 604800
darkMode
boolean

Request prefers-color-scheme: dark. Default: false.

delay
integer

Extra settle delay in milliseconds after load (0–10000).

Required range: 0 <= x <= 10000
deviceScaleFactor
integer

Device scale factor (1–3). Default: 1.

Required range: 1 <= x <= 3
format
enum<string>

Output image format. Default: png.

Available options:
jpeg,
png,
webp
Required string length: 1 - 4096
fullPage
boolean

When true, capture the full scrollable page. Default: false (viewport).

quality
integer

JPEG/WebP quality 1–100. Invalid when format is png.

Required range: 1 <= x <= 100
region
string

ISO 3166-1 alpha-2 country code for the rendering location.

Required string length: 1 - 4096
response
enum<string>

Image delivery mode: url returns a downloadable image link; base64 returns inline image data when small enough. Check the returned expiration for link validity.

Available options:
base64,
url
Required string length: 1 - 4096
selector
string

CSS selector to clip the screenshot to a single element. Cannot be combined with fullPage.

Required string length: 1 - 4096
url
string
required

Web page URL to fetch.

Required string length: 1 - 4096
viewportHeight
integer

Viewport height in CSS pixels. Default: 800.

Required range: 0 <= x <= 9223372036854776000
viewportWidth
integer

Viewport width in CSS pixels. Default: 1280.

Required range: 0 <= x <= 9223372036854776000
waitFor
string

CSS selector to wait for before capturing.

Required string length: 1 - 4096
waitUntil
enum<string>

Navigation wait condition. networkidle is bounded and resolves on idle or a short cap, whichever comes first. Default: load.

Available options:
domcontentloaded,
load,
networkidle
Required string length: 1 - 4096

Response

Observed successful JSON response. This partial structure comes from successful probe or sampled requests; fields and types may vary. No field is guaranteed to be present. Last observed: 2026-11-27.

data
object
meta
object