Create Images Batch
curl --request POST \
--url https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"variations": [
{
"additional_header_origins": [
"https://assets.example.com"
],
"block_consent_banners": true,
"css": "<string>",
"device_scale": 1.55,
"disable_twemoji": true,
"full_screen": true,
"google_fonts": [
"Inter",
"Roboto"
],
"headers": {},
"html": "<main>Hello</main>",
"identify_as_hcti": true,
"include_headers_on_subrequests": true,
"max_wait_ms": 5250,
"ms_delay": 5000,
"pdf_options": {
"margins": [
"<string>",
"<string>",
"<string>",
"<string>"
],
"page_height": "11in",
"page_width": "8.5in",
"print_background": true,
"scale": 1.05
},
"render_when_ready": true,
"selector": "#receipt",
"timezone": "America/New_York",
"transparent_background": true,
"url": "https://example.com",
"viewport_height": 2,
"viewport_landscape": true,
"viewport_mobile": true,
"viewport_touch": true,
"viewport_width": 3000
}
]
}
'import requests
url = "https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch"
payload = { "variations": [
{
"additional_header_origins": ["https://assets.example.com"],
"block_consent_banners": True,
"css": "<string>",
"device_scale": 1.55,
"disable_twemoji": True,
"full_screen": True,
"google_fonts": ["Inter", "Roboto"],
"headers": {},
"html": "<main>Hello</main>",
"identify_as_hcti": True,
"include_headers_on_subrequests": True,
"max_wait_ms": 5250,
"ms_delay": 5000,
"pdf_options": {
"margins": ["<string>", "<string>", "<string>", "<string>"],
"page_height": "11in",
"page_width": "8.5in",
"print_background": True,
"scale": 1.05
},
"render_when_ready": True,
"selector": "#receipt",
"timezone": "America/New_York",
"transparent_background": True,
"url": "https://example.com",
"viewport_height": 2,
"viewport_landscape": True,
"viewport_mobile": True,
"viewport_touch": True,
"viewport_width": 3000
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
variations: [
{
additional_header_origins: ['https://assets.example.com'],
block_consent_banners: true,
css: '<string>',
device_scale: 1.55,
disable_twemoji: true,
full_screen: true,
google_fonts: ['Inter', 'Roboto'],
headers: {},
html: '<main>Hello</main>',
identify_as_hcti: true,
include_headers_on_subrequests: true,
max_wait_ms: 5250,
ms_delay: 5000,
pdf_options: {
margins: ['<string>', '<string>', '<string>', '<string>'],
page_height: '11in',
page_width: '8.5in',
print_background: true,
scale: 1.05
},
render_when_ready: true,
selector: '#receipt',
timezone: 'America/New_York',
transparent_background: true,
url: 'https://example.com',
viewport_height: 2,
viewport_landscape: true,
viewport_mobile: true,
viewport_touch: true,
viewport_width: 3000
}
]
})
};
fetch('https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'variations' => [
[
'additional_header_origins' => [
'https://assets.example.com'
],
'block_consent_banners' => true,
'css' => '<string>',
'device_scale' => 1.55,
'disable_twemoji' => true,
'full_screen' => true,
'google_fonts' => [
'Inter',
'Roboto'
],
'headers' => [
],
'html' => '<main>Hello</main>',
'identify_as_hcti' => true,
'include_headers_on_subrequests' => true,
'max_wait_ms' => 5250,
'ms_delay' => 5000,
'pdf_options' => [
'margins' => [
'<string>',
'<string>',
'<string>',
'<string>'
],
'page_height' => '11in',
'page_width' => '8.5in',
'print_background' => true,
'scale' => 1.05
],
'render_when_ready' => true,
'selector' => '#receipt',
'timezone' => 'America/New_York',
'transparent_background' => true,
'url' => 'https://example.com',
'viewport_height' => 2,
'viewport_landscape' => true,
'viewport_mobile' => true,
'viewport_touch' => true,
'viewport_width' => 3000
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch"
payload := strings.NewReader("{\n \"variations\": [\n {\n \"additional_header_origins\": [\n \"https://assets.example.com\"\n ],\n \"block_consent_banners\": true,\n \"css\": \"<string>\",\n \"device_scale\": 1.55,\n \"disable_twemoji\": true,\n \"full_screen\": true,\n \"google_fonts\": [\n \"Inter\",\n \"Roboto\"\n ],\n \"headers\": {},\n \"html\": \"<main>Hello</main>\",\n \"identify_as_hcti\": true,\n \"include_headers_on_subrequests\": true,\n \"max_wait_ms\": 5250,\n \"ms_delay\": 5000,\n \"pdf_options\": {\n \"margins\": [\n \"<string>\",\n \"<string>\",\n \"<string>\",\n \"<string>\"\n ],\n \"page_height\": \"11in\",\n \"page_width\": \"8.5in\",\n \"print_background\": true,\n \"scale\": 1.05\n },\n \"render_when_ready\": true,\n \"selector\": \"#receipt\",\n \"timezone\": \"America/New_York\",\n \"transparent_background\": true,\n \"url\": \"https://example.com\",\n \"viewport_height\": 2,\n \"viewport_landscape\": true,\n \"viewport_mobile\": true,\n \"viewport_touch\": true,\n \"viewport_width\": 3000\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"variations\": [\n {\n \"additional_header_origins\": [\n \"https://assets.example.com\"\n ],\n \"block_consent_banners\": true,\n \"css\": \"<string>\",\n \"device_scale\": 1.55,\n \"disable_twemoji\": true,\n \"full_screen\": true,\n \"google_fonts\": [\n \"Inter\",\n \"Roboto\"\n ],\n \"headers\": {},\n \"html\": \"<main>Hello</main>\",\n \"identify_as_hcti\": true,\n \"include_headers_on_subrequests\": true,\n \"max_wait_ms\": 5250,\n \"ms_delay\": 5000,\n \"pdf_options\": {\n \"margins\": [\n \"<string>\",\n \"<string>\",\n \"<string>\",\n \"<string>\"\n ],\n \"page_height\": \"11in\",\n \"page_width\": \"8.5in\",\n \"print_background\": true,\n \"scale\": 1.05\n },\n \"render_when_ready\": true,\n \"selector\": \"#receipt\",\n \"timezone\": \"America/New_York\",\n \"transparent_background\": true,\n \"url\": \"https://example.com\",\n \"viewport_height\": 2,\n \"viewport_landscape\": true,\n \"viewport_mobile\": true,\n \"viewport_touch\": true,\n \"viewport_width\": 3000\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"variations\": [\n {\n \"additional_header_origins\": [\n \"https://assets.example.com\"\n ],\n \"block_consent_banners\": true,\n \"css\": \"<string>\",\n \"device_scale\": 1.55,\n \"disable_twemoji\": true,\n \"full_screen\": true,\n \"google_fonts\": [\n \"Inter\",\n \"Roboto\"\n ],\n \"headers\": {},\n \"html\": \"<main>Hello</main>\",\n \"identify_as_hcti\": true,\n \"include_headers_on_subrequests\": true,\n \"max_wait_ms\": 5250,\n \"ms_delay\": 5000,\n \"pdf_options\": {\n \"margins\": [\n \"<string>\",\n \"<string>\",\n \"<string>\",\n \"<string>\"\n ],\n \"page_height\": \"11in\",\n \"page_width\": \"8.5in\",\n \"print_background\": true,\n \"scale\": 1.05\n },\n \"render_when_ready\": true,\n \"selector\": \"#receipt\",\n \"timezone\": \"America/New_York\",\n \"transparent_background\": true,\n \"url\": \"https://example.com\",\n \"viewport_height\": 2,\n \"viewport_landscape\": true,\n \"viewport_mobile\": true,\n \"viewport_touch\": true,\n \"viewport_width\": 3000\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"images": [
{
"id": "<string>",
"url": "<string>"
}
]
}HTML/CSS to Image
Create Images Batch
Create Images Batch
POST
https://api.aisa.one
/
apis
/
v1
/
htmlcss-to-image
/
create-images-batch
Create Images Batch
curl --request POST \
--url https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"variations": [
{
"additional_header_origins": [
"https://assets.example.com"
],
"block_consent_banners": true,
"css": "<string>",
"device_scale": 1.55,
"disable_twemoji": true,
"full_screen": true,
"google_fonts": [
"Inter",
"Roboto"
],
"headers": {},
"html": "<main>Hello</main>",
"identify_as_hcti": true,
"include_headers_on_subrequests": true,
"max_wait_ms": 5250,
"ms_delay": 5000,
"pdf_options": {
"margins": [
"<string>",
"<string>",
"<string>",
"<string>"
],
"page_height": "11in",
"page_width": "8.5in",
"print_background": true,
"scale": 1.05
},
"render_when_ready": true,
"selector": "#receipt",
"timezone": "America/New_York",
"transparent_background": true,
"url": "https://example.com",
"viewport_height": 2,
"viewport_landscape": true,
"viewport_mobile": true,
"viewport_touch": true,
"viewport_width": 3000
}
]
}
'import requests
url = "https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch"
payload = { "variations": [
{
"additional_header_origins": ["https://assets.example.com"],
"block_consent_banners": True,
"css": "<string>",
"device_scale": 1.55,
"disable_twemoji": True,
"full_screen": True,
"google_fonts": ["Inter", "Roboto"],
"headers": {},
"html": "<main>Hello</main>",
"identify_as_hcti": True,
"include_headers_on_subrequests": True,
"max_wait_ms": 5250,
"ms_delay": 5000,
"pdf_options": {
"margins": ["<string>", "<string>", "<string>", "<string>"],
"page_height": "11in",
"page_width": "8.5in",
"print_background": True,
"scale": 1.05
},
"render_when_ready": True,
"selector": "#receipt",
"timezone": "America/New_York",
"transparent_background": True,
"url": "https://example.com",
"viewport_height": 2,
"viewport_landscape": True,
"viewport_mobile": True,
"viewport_touch": True,
"viewport_width": 3000
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
variations: [
{
additional_header_origins: ['https://assets.example.com'],
block_consent_banners: true,
css: '<string>',
device_scale: 1.55,
disable_twemoji: true,
full_screen: true,
google_fonts: ['Inter', 'Roboto'],
headers: {},
html: '<main>Hello</main>',
identify_as_hcti: true,
include_headers_on_subrequests: true,
max_wait_ms: 5250,
ms_delay: 5000,
pdf_options: {
margins: ['<string>', '<string>', '<string>', '<string>'],
page_height: '11in',
page_width: '8.5in',
print_background: true,
scale: 1.05
},
render_when_ready: true,
selector: '#receipt',
timezone: 'America/New_York',
transparent_background: true,
url: 'https://example.com',
viewport_height: 2,
viewport_landscape: true,
viewport_mobile: true,
viewport_touch: true,
viewport_width: 3000
}
]
})
};
fetch('https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'variations' => [
[
'additional_header_origins' => [
'https://assets.example.com'
],
'block_consent_banners' => true,
'css' => '<string>',
'device_scale' => 1.55,
'disable_twemoji' => true,
'full_screen' => true,
'google_fonts' => [
'Inter',
'Roboto'
],
'headers' => [
],
'html' => '<main>Hello</main>',
'identify_as_hcti' => true,
'include_headers_on_subrequests' => true,
'max_wait_ms' => 5250,
'ms_delay' => 5000,
'pdf_options' => [
'margins' => [
'<string>',
'<string>',
'<string>',
'<string>'
],
'page_height' => '11in',
'page_width' => '8.5in',
'print_background' => true,
'scale' => 1.05
],
'render_when_ready' => true,
'selector' => '#receipt',
'timezone' => 'America/New_York',
'transparent_background' => true,
'url' => 'https://example.com',
'viewport_height' => 2,
'viewport_landscape' => true,
'viewport_mobile' => true,
'viewport_touch' => true,
'viewport_width' => 3000
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch"
payload := strings.NewReader("{\n \"variations\": [\n {\n \"additional_header_origins\": [\n \"https://assets.example.com\"\n ],\n \"block_consent_banners\": true,\n \"css\": \"<string>\",\n \"device_scale\": 1.55,\n \"disable_twemoji\": true,\n \"full_screen\": true,\n \"google_fonts\": [\n \"Inter\",\n \"Roboto\"\n ],\n \"headers\": {},\n \"html\": \"<main>Hello</main>\",\n \"identify_as_hcti\": true,\n \"include_headers_on_subrequests\": true,\n \"max_wait_ms\": 5250,\n \"ms_delay\": 5000,\n \"pdf_options\": {\n \"margins\": [\n \"<string>\",\n \"<string>\",\n \"<string>\",\n \"<string>\"\n ],\n \"page_height\": \"11in\",\n \"page_width\": \"8.5in\",\n \"print_background\": true,\n \"scale\": 1.05\n },\n \"render_when_ready\": true,\n \"selector\": \"#receipt\",\n \"timezone\": \"America/New_York\",\n \"transparent_background\": true,\n \"url\": \"https://example.com\",\n \"viewport_height\": 2,\n \"viewport_landscape\": true,\n \"viewport_mobile\": true,\n \"viewport_touch\": true,\n \"viewport_width\": 3000\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"variations\": [\n {\n \"additional_header_origins\": [\n \"https://assets.example.com\"\n ],\n \"block_consent_banners\": true,\n \"css\": \"<string>\",\n \"device_scale\": 1.55,\n \"disable_twemoji\": true,\n \"full_screen\": true,\n \"google_fonts\": [\n \"Inter\",\n \"Roboto\"\n ],\n \"headers\": {},\n \"html\": \"<main>Hello</main>\",\n \"identify_as_hcti\": true,\n \"include_headers_on_subrequests\": true,\n \"max_wait_ms\": 5250,\n \"ms_delay\": 5000,\n \"pdf_options\": {\n \"margins\": [\n \"<string>\",\n \"<string>\",\n \"<string>\",\n \"<string>\"\n ],\n \"page_height\": \"11in\",\n \"page_width\": \"8.5in\",\n \"print_background\": true,\n \"scale\": 1.05\n },\n \"render_when_ready\": true,\n \"selector\": \"#receipt\",\n \"timezone\": \"America/New_York\",\n \"transparent_background\": true,\n \"url\": \"https://example.com\",\n \"viewport_height\": 2,\n \"viewport_landscape\": true,\n \"viewport_mobile\": true,\n \"viewport_touch\": true,\n \"viewport_width\": 3000\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"variations\": [\n {\n \"additional_header_origins\": [\n \"https://assets.example.com\"\n ],\n \"block_consent_banners\": true,\n \"css\": \"<string>\",\n \"device_scale\": 1.55,\n \"disable_twemoji\": true,\n \"full_screen\": true,\n \"google_fonts\": [\n \"Inter\",\n \"Roboto\"\n ],\n \"headers\": {},\n \"html\": \"<main>Hello</main>\",\n \"identify_as_hcti\": true,\n \"include_headers_on_subrequests\": true,\n \"max_wait_ms\": 5250,\n \"ms_delay\": 5000,\n \"pdf_options\": {\n \"margins\": [\n \"<string>\",\n \"<string>\",\n \"<string>\",\n \"<string>\"\n ],\n \"page_height\": \"11in\",\n \"page_width\": \"8.5in\",\n \"print_background\": true,\n \"scale\": 1.05\n },\n \"render_when_ready\": true,\n \"selector\": \"#receipt\",\n \"timezone\": \"America/New_York\",\n \"transparent_background\": true,\n \"url\": \"https://example.com\",\n \"viewport_height\": 2,\n \"viewport_landscape\": true,\n \"viewport_mobile\": true,\n \"viewport_touch\": true,\n \"viewport_width\": 3000\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"images": [
{
"id": "<string>",
"url": "<string>"
}
]
}Request contract
- Method and path: POST /apis/v1/htmlcss-to-image/create-images-batch
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/htmlcss-to-image/create-images-batch
{
"operationId": "htmlcss-to-image.create-images-batch",
"method": "POST",
"path": "/apis/v1/htmlcss-to-image/create-images-batch",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"default_options": {
"additionalProperties": false,
"description": "Shared render settings applied before each variation's overrides.",
"properties": {
"additional_header_origins": {
"description": "Up to 20 unique exact HTTP(S) origins that may also receive supplied headers.",
"examples": [
[
"https://assets.example.com"
]
],
"items": {
"type": "string"
},
"maxItems": 20,
"type": "array"
},
"block_consent_banners": {
"description": "Attempt to block common consent banners.",
"type": "boolean"
},
"color_scheme": {
"description": "Preferred browser color scheme.",
"enum": [
"light",
"dark"
],
"type": "string"
},
"css": {
"description": "CSS applied to HTML input or injected into a captured webpage.",
"type": "string"
},
"device_scale": {
"description": "Device scale factor from 0.1 to 3; the provider default is 2.",
"maximum": 3,
"minimum": 0.1,
"type": "number"
},
"disable_twemoji": {
"description": "Disable automatic conversion of emoji to Twemoji images.",
"type": "boolean"
},
"full_screen": {
"description": "Capture the full scrollable page instead of only the viewport.",
"type": "boolean"
},
"google_fonts": {
"description": "Google Font family names to load.",
"examples": [
[
"Inter",
"Roboto"
]
],
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"description": "HTTP headers sent to the captured page, with at most 20 case-insensitive names.",
"maxProperties": 20,
"type": "object"
},
"identify_as_hcti": {
"description": "Identify the rendering browser as HTML/CSS to Image.",
"type": "boolean"
},
"include_headers_on_subrequests": {
"description": "Also include supplied headers on page subrequests.",
"type": "boolean"
},
"max_wait_ms": {
"description": "Maximum wait from 500 to 10000 milliseconds for page loading.",
"maximum": 10000,
"minimum": 500,
"type": "integer"
},
"media_type": {
"description": "CSS media type used while rendering; the provider default is screen.",
"enum": [
"screen",
"print"
],
"type": "string"
},
"ms_delay": {
"description": "Extra render delay in milliseconds, from 0 to 10000. Zero omits the explicit delay.",
"maximum": 10000,
"minimum": 0,
"type": "integer"
},
"pdf_options": {
"additionalProperties": false,
"description": "PDF page, scale, margin, and background settings.",
"properties": {
"margins": {
"description": "PDF margins as CSS sizes in top, right, bottom, left order.",
"examples": [
[
"0.5in",
"0.5in",
"0.5in",
"0.5in"
]
],
"maxItems": 4,
"minItems": 4,
"prefixItems": [
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
}
],
"type": "array"
},
"page_height": {
"description": "PDF page height as a CSS size, such as 11in or 297mm.",
"examples": [
"11in"
],
"type": "string"
},
"page_width": {
"description": "PDF page width as a CSS size, such as 8.5in or 210mm.",
"examples": [
"8.5in"
],
"type": "string"
},
"print_background": {
"description": "Whether to include CSS backgrounds in PDF output.",
"type": "boolean"
},
"scale": {
"description": "PDF content scale from 0.1 to 2.",
"maximum": 2,
"minimum": 0.1,
"type": "number"
}
},
"type": "object"
},
"render_when_ready": {
"description": "Wait until the page signals that rendering is ready.",
"type": "boolean"
},
"selector": {
"description": "CSS selector for the element to capture.",
"examples": [
"#receipt"
],
"minLength": 1,
"type": "string"
},
"timezone": {
"description": "IANA timezone exposed to the rendered page.",
"examples": [
"America/New_York"
],
"minLength": 1,
"type": "string"
},
"transparent_background": {
"description": "Render a transparent background where supported.",
"type": "boolean"
},
"viewport_height": {
"description": "Viewport height in pixels; must be paired with viewport_width.",
"minimum": 1,
"type": "integer"
},
"viewport_landscape": {
"description": "Expose a landscape-oriented viewport to the rendered page.",
"type": "boolean"
},
"viewport_mobile": {
"description": "Expose a mobile viewport to the rendered page.",
"type": "boolean"
},
"viewport_touch": {
"description": "Expose touch input support to the rendered page.",
"type": "boolean"
},
"viewport_width": {
"description": "Viewport width in pixels; must be paired with viewport_height.",
"maximum": 6000,
"minimum": 1,
"type": "integer"
}
},
"type": "object"
},
"variations": {
"description": "One to 25 image requests; each overrides matching default_options fields.",
"items": {
"properties": {
"additional_header_origins": {
"description": "Up to 20 unique exact HTTP(S) origins that may also receive supplied headers.",
"examples": [
[
"https://assets.example.com"
]
],
"items": {
"type": "string"
},
"maxItems": 20,
"type": "array"
},
"block_consent_banners": {
"description": "Attempt to block common consent banners.",
"type": "boolean"
},
"color_scheme": {
"description": "Preferred browser color scheme.",
"enum": [
"light",
"dark"
],
"type": "string"
},
"css": {
"description": "CSS applied to HTML input or injected into a captured webpage.",
"type": "string"
},
"device_scale": {
"description": "Device scale factor from 0.1 to 3; the provider default is 2.",
"maximum": 3,
"minimum": 0.1,
"type": "number"
},
"disable_twemoji": {
"description": "Disable automatic conversion of emoji to Twemoji images.",
"type": "boolean"
},
"full_screen": {
"description": "Capture the full scrollable page instead of only the viewport.",
"type": "boolean"
},
"google_fonts": {
"description": "Google Font family names to load.",
"examples": [
[
"Inter",
"Roboto"
]
],
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"description": "HTTP headers sent to the captured page, with at most 20 case-insensitive names.",
"maxProperties": 20,
"type": "object"
},
"html": {
"description": "HTML to render. Set this or url, but not both.",
"examples": [
"<main>Hello</main>"
],
"minLength": 1,
"type": "string"
},
"identify_as_hcti": {
"description": "Identify the rendering browser as HTML/CSS to Image.",
"type": "boolean"
},
"include_headers_on_subrequests": {
"description": "Also include supplied headers on page subrequests.",
"type": "boolean"
},
"max_wait_ms": {
"description": "Maximum wait from 500 to 10000 milliseconds for page loading.",
"maximum": 10000,
"minimum": 500,
"type": "integer"
},
"media_type": {
"description": "CSS media type used while rendering; the provider default is screen.",
"enum": [
"screen",
"print"
],
"type": "string"
},
"ms_delay": {
"description": "Extra render delay in milliseconds, from 0 to 10000. Zero omits the explicit delay.",
"maximum": 10000,
"minimum": 0,
"type": "integer"
},
"pdf_options": {
"additionalProperties": false,
"description": "PDF page, scale, margin, and background settings.",
"properties": {
"margins": {
"description": "PDF margins as CSS sizes in top, right, bottom, left order.",
"examples": [
[
"0.5in",
"0.5in",
"0.5in",
"0.5in"
]
],
"maxItems": 4,
"minItems": 4,
"prefixItems": [
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
}
],
"type": "array"
},
"page_height": {
"description": "PDF page height as a CSS size, such as 11in or 297mm.",
"examples": [
"11in"
],
"type": "string"
},
"page_width": {
"description": "PDF page width as a CSS size, such as 8.5in or 210mm.",
"examples": [
"8.5in"
],
"type": "string"
},
"print_background": {
"description": "Whether to include CSS backgrounds in PDF output.",
"type": "boolean"
},
"scale": {
"description": "PDF content scale from 0.1 to 2.",
"maximum": 2,
"minimum": 0.1,
"type": "number"
}
},
"type": "object"
},
"render_when_ready": {
"description": "Wait until the page signals that rendering is ready.",
"type": "boolean"
},
"selector": {
"description": "CSS selector for the element to capture.",
"examples": [
"#receipt"
],
"minLength": 1,
"type": "string"
},
"timezone": {
"description": "IANA timezone exposed to the rendered page.",
"examples": [
"America/New_York"
],
"minLength": 1,
"type": "string"
},
"transparent_background": {
"description": "Render a transparent background where supported.",
"type": "boolean"
},
"url": {
"description": "Absolute, internet-reachable HTTP(S) webpage URL. Set this or html, but not both; use headers for authenticated pages.",
"examples": [
"https://example.com"
],
"minLength": 1,
"type": "string"
},
"viewport_height": {
"description": "Viewport height in pixels; must be paired with viewport_width.",
"minimum": 1,
"type": "integer"
},
"viewport_landscape": {
"description": "Expose a landscape-oriented viewport to the rendered page.",
"type": "boolean"
},
"viewport_mobile": {
"description": "Expose a mobile viewport to the rendered page.",
"type": "boolean"
},
"viewport_touch": {
"description": "Expose touch input support to the rendered page.",
"type": "boolean"
},
"viewport_width": {
"description": "Viewport width in pixels; must be paired with viewport_height.",
"maximum": 6000,
"minimum": 1,
"type": "integer"
}
},
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
}
},
"required": [
"variations"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. A price estimate is not currently available. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json