OpenAny
Get API keyAPI Key
APIScrapersWeb

web logo
Web Screenshot API

Get Web Screenshot data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by LiteScrape, pass parameters such as full_page, url, and retrieve structured data including base64-encoded screenshot payload, captured page URL, page title, and page description for visual documentation, and layout comparisons, ready for production pipelines and AI agent automation.

Selected price
$0.00015 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Web Screenshot API

Prepare your request, then continue with your agent.

Selected price

$0.00015 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Web Screenshot API

Web Screenshot API

POST a public HTTP(S) url with optional full_page, viewport and page-readiness settings. screenshot_base64 carries the capture; page_timeout bounds browser operations but cannot extend the total timeout query budget.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs JSON body requires url; optional body fields: assert_status_code, detach_invisibles, full_page, inject_frame_script, inject_page_script, locale, page_timeout, referer, remove_overlay, respond_timing, robots_txt, set_cookies, user_agent, viewport, wait_for_selector. Optional query parameter: timeout (greater than 0, at most 90 seconds).
Selected implementation litescrape · Screenshot
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Visual documentation: Keep rendered page captures with their source URL and viewport settings.
  • Layout comparisons: Use explicit browser readiness and dimensions for comparable captures.

Returned Data

Field Meaning
screenshot_base64 Base64-encoded screenshot payload.
url Captured page URL.
full_page Whether full-page capture was requested.
title Page title when available.
description Page description when available.

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request POST \
  https://api.openany.si/v1/agent-apis/litescrape/api/web/screenshot \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{"full_page":false,"url":"https://example.com"}'

Request and Response Examples

The response example is a schema template; placeholder values are not observed records. The documented request is a calling template; inspect the returned response for the selected implementation.

Published Web Screenshot API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Take a screenshot of a web page.
Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

Response template · not a real response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
litescrapeCurrent
Screenshot · POST · View API reference
$0.00015 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · litescrapeUSD / call
Unit price
$0.00015

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0.015

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/web/screenshot
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
urlJSON request bodybodystringYes

Public HTTP(S) URL to capture, 1-8,192 characters. Include http:// or https://; bare domains are rejected. The host must be public, on port 80 or 443, without embedded credentials.

minLength: 1 · maxLength: 8192

timeoutURL query parametersquerynumberNo

Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

maximum: 90

assert_status_codeJSON request bodybodyinteger | nullNo

Expected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture.

detach_invisiblesJSON request bodybodyboolean | nullNo

Drop display:none elements from the page.

full_pageJSON request bodybodybooleanNo

Capture the full page when true. The default, false, captures the viewport.

inject_frame_scriptJSON request bodybodyarray | nullNo

POST only. 1-8 scripts (source, or a URL to a script), up to 8,192 characters each, run in every frame.

Nested fields and variants

array

Nested fields and variants

body.inject_frame_script[] · Array item · string

inject_page_scriptJSON request bodybodyarray | nullNo

POST only. 1-8 scripts (source, or a URL to a script), up to 8,192 characters each, run in the main frame.

Nested fields and variants

array

Nested fields and variants

body.inject_page_script[] · Array item · string

localeJSON request bodybodystring | nullNo

Browser locale as a language tag, 2-64 characters. Defaults to the browser's own.

page_timeoutJSON request bodybodyinteger | nullNo

Seconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout.

refererJSON request bodybodystring | nullNo

HTTP(S) URL sent as the Referer.

remove_overlayJSON request bodybodyboolean | nullNo

Remove modal and cookie-banner overlays from the page.

respond_timingJSON request bodybodystring | nullNo

Page readiness condition to reach before responding.

robots_txtJSON request bodybodystring | nullNo

User agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected.

set_cookiesJSON request bodybodyarray | nullNo

POST only. 1-100 cookies in Set-Cookie syntax (name=value; Path=/; Domain=...), one line each, up to 4,096 characters.

Nested fields and variants

array

Nested fields and variants

body.set_cookies[] · Array item · string

user_agentJSON request bodybodystring | nullNo

User-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own.

viewportJSON request bodybodyobject | nullNo

POST only. Browser viewport; width and height are required. Default: 1280 x 1280.

Nested fields and variants

Viewport

Nested fields and variants
body.viewport.device_scale_factor number | null · Optional

Parent object: body.viewport

Device pixel ratio, greater than 0 and at most 4.
body.viewport.has_touch boolean | null · Optional

Parent object: body.viewport

Emulate touch support.
body.viewport.height integer · Required

Parent object: body.viewport

Viewport height in CSS pixels, 1-4,096. Required.

minimum: 1 · maximum: 4096

body.viewport.is_landscape boolean | null · Optional

Parent object: body.viewport

Use landscape orientation.
body.viewport.is_mobile boolean | null · Optional

Parent object: body.viewport

Emulate a mobile device.
body.viewport.width integer · Required

Parent object: body.viewport

Viewport width in CSS pixels, 1-4,096. Required.

minimum: 1 · maximum: 4096

wait_for_selectorJSON request bodybodystring | array | nullNo

CSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors.

Nested fields and variants

array

Nested fields and variants

body.wait_for_selector[] · Array item · string

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • descriptionnull
  • full_pageboolean
  • screenshot_base64string
  • submit_feedback_for_this_response_herestring
  • titlenull
  • urlstring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Schema template (HTTP assumed)

Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 2

    Review these request fields before running. Keep the published provider and request method unchanged.

    timeout
    Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
    body
    Take a screenshot of a web page.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/litescrape/api/web/screenshot' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "full_page": false,
      "url": "https://example.com"
    }'
  3. Check the response

    Response template · not a real response · Configured HTTP 200; actual status is unverified.

    Response template · not a real response
    {
      "description": null,
      "full_page": false,
      "screenshot_base64": "<screenshot_base64>",
      "submit_feedback_for_this_response_here": "<submit_feedback_for_this_response_here>",
      "title": null,
      "url": "<url>"
    }

Common questions

Which URLs are accepted?

Use an explicit public HTTP(S) URL on port 80 or 443 without embedded credentials. Bare domains are rejected; url supports 1–8192 characters.

How do viewport and full-page settings differ?

full_page=false captures the viewport by default. viewport defaults to 1280×1280; a custom object requires width and height from 1 to 4096 CSS pixels, with device_scale_factor greater than 0 and at most 4 when set.

Does a successful capture guarantee a successful origin page?

No. A rendered error page can be a successful capture. Use assert_status_code, from 100 to 599, to reject an unexpected origin HTTP status.

How do I wait for the page?

Use respond_timing for a supported readiness condition or wait_for_selector for a CSS selector or list. page_timeout accepts 1–180 seconds but does not extend the query timeout’s total request budget.

Where should I set the request timeout?

Set timeout in the query string, including for POST requests. It must be greater than 0 and at most 90 seconds; page_timeout cannot extend this total execution budget.

Can I add arbitrary parameters to the JSON body?

Use the body fields exposed by this implementation. Its JSON schema rejects additional properties; query parameters such as timeout belong outside the JSON body.

Use Web Screenshot API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.