Web Page Content
Retrieve the contents of a webpage from its URL. The sample response includes URLs. Use it in developer tools or technical research. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / APIs
- 4 / 4
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Web Page Content
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
contentstringdescriptionstringexternalobjectalternateobjecthttps://go.dev/blog/feed.atomobjecttitlestringtypestring
apple-touch-iconobjecthttps://go.dev/images/favicon-gopher-plain.pngobject
canonicalobjecthttps://go.dev/blog/go1.22object
iconobjecthttps://go.dev/images/favicon-gopher.pngobjectsizesstring
https://go.dev/images/favicon-gopher.svgobjecttypestring
meobjecthttps://hachyderm.io/@golangobject
preconnectobjecthttps://www.googletagmanager.com/object
metadataobjectdescriptionstringlangstringog:descriptionstringog:imagestringog:titlestringog:urlstringtheme-colorstringtwitter:cardstringtwitter:imagestringtwitter:sitestringviewportstring
submit_feedback_for_this_response_herestringtitlestringurlstringusageobjecttokensinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
content?: string;
description?: string;
external?: {
alternate?: {
"https://go.dev/blog/feed.atom"?: {
title?: string;
type?: string;
};
};
"apple-touch-icon"?: {
"https://go.dev/images/favicon-gopher-plain.png"?: Record<string, unknown>;
};
canonical?: {
"https://go.dev/blog/go1.22"?: Record<string, unknown>;
};
icon?: {
"https://go.dev/images/favicon-gopher.png"?: {
sizes?: string;
};
"https://go.dev/images/favicon-gopher.svg"?: {
type?: string;
};
};
me?: {
"https://hachyderm.io/@golang"?: Record<string, unknown>;
};
preconnect?: {
"https://www.googletagmanager.com/"?: Record<string, unknown>;
};
};
metadata?: {
description?: string;
lang?: string;
"og:description"?: string;
"og:image"?: string;
"og:title"?: string;
"og:url"?: string;
"theme-color"?: string;
"twitter:card"?: string;
"twitter:image"?: string;
"twitter:site"?: string;
viewport?: string;
};
submit_feedback_for_this_response_here?: string;
title?: string;
url?: string;
usage?: {
tokens?: number;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Keenable Public Fetch · GET · View API reference | $0 / call | —Select to load statistics | —successP50— | |
Current Fetch · POST · View API reference | $0.00015 / call | — | —successP50— | |
| Tavily Keyless Extract · POST · View API reference | $0.008–$0.016 / 5 successful URL extractions | —Select to load statistics | —successP50— | |
| TinyFish Fetch · POST · View API reference | $0 / call | —Select to load statistics | —successP50— |
- 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: 3. Price update time: not supplied.
Total $0.015
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/web/fetch- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/web/fetch' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"respond_with": "markdown",
"url": "https://example.com"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timeout | URL query parametersquery | number | No | 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_code | JSON request bodybody | integer | null | No | Expected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture. |
base | JSON request bodybody | string | null | No | Resolve relative links against the requested URL (initial, default) or the final URL after redirects (final). |
detach_invisibles | JSON request bodybody | boolean | null | No | Drop display:none elements from the page. |
engine | JSON request bodybody | string | null | No | auto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript). |
inject_frame_script | JSON request bodybody | array | null | No | 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 variantsarrayNested fields and variants
|
inject_page_script | JSON request bodybody | array | null | No | 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 variantsarrayNested fields and variants
|
keep_img_data_url | JSON request bodybody | boolean | null | No | Keep inline data: images in Markdown. |
locale | JSON request bodybody | string | null | No | Browser locale as a language tag, 2-64 characters. Defaults to the browser's own. |
markdown | JSON request bodybody | object | null | No | POST only. Markdown formatting options.Nested fields and variantsMarkdownOptionsNested fields and variants
|
markdown_chunking | JSON request bodybody | string | null | No | true, h1-h5, structured or s1-s5: split the Markdown and return chunks. |
max_tokens | JSON request bodybody | integer | null | No | Integer 500-10,000,000. Trim content to this many tokens. |
no_gfm | JSON request bodybody | boolean | string | null | No | true, false or table: disable GitHub-flavored Markdown, or only its tables. |
page_timeout | JSON request bodybody | integer | null | No | Seconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout. |
preset | JSON request bodybody | string | null | No | Option preset. Fills only the options the request leaves unset. |
referer | JSON request bodybody | string | null | No | HTTP(S) URL sent as the Referer. |
remove_overlay | JSON request bodybody | boolean | null | No | Remove modal and cookie-banner overlays from the page. |
remove_selector | JSON request bodybody | string | array | null | No | CSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors.Nested fields and variantsarrayNested fields and variants
|
respond_timing | JSON request bodybody | string | null | No | Page readiness condition to reach before responding. |
respond_with | JSON request bodybody | string | null | No | Output format: content (default; main content as Markdown, or the whole page when extraction keeps too little), markdown (whole page as Markdown), html, text, frontmatter (content plus front matter), or a '+' combination such as markdown+frontmatter. For screenshots use /api/web/screenshot. |
retain_images | JSON request bodybody | string | null | No | Images to keep: all (default), alt (alt text only) or none. |
retain_links | JSON request bodybody | string | null | No | Links to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary). |
retain_media | JSON request bodybody | string | null | No | How video, audio and embedded video appear: none, text, link (default), image or html. |
robots_txt | JSON request bodybody | string | null | No | User agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected. |
set_cookies | JSON request bodybody | array | null | No | POST only. 1-100 cookies in Set-Cookie syntax (name=value; Path=/; Domain=...), one line each, up to 4,096 characters.Nested fields and variantsarrayNested fields and variants
|
target_selector | JSON request bodybody | string | array | null | No | CSS selector to extract, 1-2,048 characters; POST also accepts a list of 1-16 selectors. Implies waiting for the selector. Match-all selectors are rejected.Nested fields and variantsarrayNested fields and variants
|
token_budget | JSON request bodybody | integer | null | No | Integer 1-10,000,000. Reject the page when its token count exceeds the budget. |
url | JSON request bodybody | string | Yes | 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 |
user_agent | JSON request bodybody | string | null | No | User-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own. |
viewport | JSON request bodybody | object | null | No | POST only. Browser viewport; width and height are required. Default: 1280 x 1280.Nested fields and variantsViewportNested fields and variants
|
wait_for_selector | JSON request bodybody | string | array | null | No | CSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors.Nested fields and variantsarrayNested fields and variants
|
with_iframe | JSON request bodybody | boolean | string | null | No | true, false or quoted: include iframe content before extraction. |
with_images_summary | JSON request bodybody | boolean | null | No | Add an images list to the response. |
with_links_summary | JSON request bodybody | boolean | string | null | No | true, false or all: add a links list to the response. |
with_shadow_dom | JSON request bodybody | boolean | null | No | Include open shadow DOM content before extraction. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"content": "## [The Go Blog](https://go.dev/blog/)\n\nToday the Go team is thrilled to release Go 1.22, which you can get by visiting the [download page](https://go.dev/dl/).\n\nGo 1.22 comes with several important new features and improvements. Here are some of the notable changes; for the full list, refer to the [release notes](https://go.dev/doc/go1.22).\n\n## Language changes[¶](https://go.dev/blog/go1.22#language-changes)\n\nThe long-standing “for” loop gotcha with accidental sharing of loop variables between iterations is now resolved. Starting with Go 1.22, the following code will print “a”, “b”, and “c” i ?",
"description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.",
"external": {
"alternate": {
"https://go.dev/blog/feed.atom": {
"title": "The Go Blog",
"type": "application/atom+xml"
}
},
"apple-touch-icon": {
"https://go.dev/images/favicon-gopher-plain.png": {}
},
"canonical": {
"https://go.dev/blog/go1.22": {}
},
"icon": {
"https://go.dev/images/favicon-gopher.png": {
"sizes": "any"
},
"https://go.dev/images/favicon-gopher.svg": {
"type": "image/svg+xml"
}
},
"me": {
"https://hachyderm.io/@golang": {}
},
"preconnect": {
"https://www.googletagmanager.com/": {}
}
},
"metadata": {
"description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.",
"lang": "en",
"og:description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.",
"og:image": "https://go.dev/doc/gopher/gopher5logo.jpg",
"og:title": "Go 1.22 is released! - The Go Programming Language",
"og:url": "https://go.dev/blog/go1.22",
"theme-color": "#00add8",
"twitter:card": "summary",
"twitter:image": "https://go.dev/doc/gopher/runningsquare.jpg",
"twitter:site": "@golang",
"viewport": "width=device-width, initial-scale=1"
},
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token",
"title": "Go 1.22 is released! - The Go Programming Language",
"url": "https://go.dev/blog/go1.22",
"usage": {
"tokens": 811
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Web Page Content
Retrieve the contents of a webpage from its URL. The sample response includes URLs. Use it in developer tools or technical research. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
keenable · Keenable Public Fetch: https://openany.si/markets/apis/capabilities/web-page-content?offering=d842b7ba-1d8b-4150-ac0c-3d1d6deed577 · $0 / call
litescrape · Fetch: https://openany.si/markets/apis/capabilities/web-page-content?offering=a8fbac67-8c6d-446e-9d8f-4fcffef33dc3 · $0.00015 / call
tavily · Tavily Keyless Extract: https://openany.si/markets/apis/capabilities/web-page-content?offering=a64d248c-785f-4149-8116-e9c47a9c8c3c · $0.008–$0.016 / 5 successful URL extractions
tinyfish · TinyFish Fetch: https://openany.si/markets/apis/capabilities/web-page-content?offering=0bf3c77e-77a3-49c5-81ab-dd92d2c442ef · $0 / call
## Selected API contract
Documentation: https://openany.si/apis/a8fbac67-8c6d-446e-9d8f-4fcffef33dc3
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/web/fetch
Price: $0.00015 / call
Provider: litescrape
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/web/fetch' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"respond_with": "markdown",
"url": "https://example.com"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Fetch",
"endpoint": "https://api.openany.si/v1/agent-apis/litescrape/api/web/fetch",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "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.",
"location": "query",
"maximum": "90",
"name": "timeout",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Get a web page as Markdown, HTML or plain text.",
"json_schema": {
"additionalProperties": false,
"examples": [
{
"respond_with": "markdown",
"url": "https://example.com"
}
],
"properties": {
"assert_status_code": {
"anyOf": [
{
"maximum": 599,
"minimum": 100,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Expected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture.",
"examples": [
200
],
"title": "Assert Status Code",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Assert Status Code",
"summary": "Expected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture."
}
},
"base": {
"anyOf": [
{
"enum": [
"initial",
"final"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Resolve relative links against the requested URL (initial, default) or the final URL after redirects (final).",
"title": "Base",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Base",
"summary": "Resolve relative links against the requested URL (initial, default) or the final URL after redirects (final)."
}
},
"detach_invisibles": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Drop display:none elements from the page.",
"title": "Detach Invisibles",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Detach Invisibles",
"summary": "Drop display:none elements from the page."
}
},
"engine": {
"anyOf": [
{
"enum": [
"auto",
"browser",
"curl"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "auto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript).",
"title": "Engine",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Engine",
"summary": "auto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript)."
}
},
"inject_frame_script": {
"anyOf": [
{
"items": {
"maxLength": 8192,
"minLength": 1,
"type": "string"
},
"maxItems": 8,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "POST only. 1-8 scripts (source, or a URL to a script), up to 8,192 characters each, run in every frame.",
"title": "Inject Frame Script",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Inject Frame Script",
"summary": "POST only. 1-8 scripts (source, or a URL to a script), up to 8,192 characters each, run in every frame."
}
},
"inject_page_script": {
"anyOf": [
{
"items": {
"maxLength": 8192,
"minLength": 1,
"type": "string"
},
"maxItems": 8,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "POST only. 1-8 scripts (source, or a URL to a script), up to 8,192 characters each, run in the main frame.",
"title": "Inject Page Script",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Inject Page Script",
"summary": "POST only. 1-8 scripts (source, or a URL to a script), up to 8,192 characters each, run in the main frame."
}
},
"keep_img_data_url": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Keep inline data: images in Markdown.",
"title": "Keep Img Data Url",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Keep Img Data Url",
"summary": "Keep inline data: images in Markdown."
}
},
"locale": {
"anyOf": [
{
"maxLength": 64,
"minLength": 2,
"pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Browser locale as a language tag, 2-64 characters. Defaults to the browser's own.",
"examples": [
"en-US"
],
"title": "Locale",
"x-litescrape": {
"formGroup": 2,
"group": 2,
"label": "Locale",
"placeholder": "en-US",
"summary": "Browser locale as a language tag, 2-64 characters. Defaults to the browser's own."
}
},
"markdown": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"bullet_list_marker": {
"anyOf": [
{
"enum": [
"-",
"+",
"*"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Marker for bulleted list items.",
"title": "Bullet List Marker"
},
"em_delimiter": {
"anyOf": [
{
"enum": [
"_",
"*"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Delimiter for emphasis.",
"title": "Em Delimiter"
},
"heading_style": {
"anyOf": [
{
"enum": [
"setext",
"atx"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Markdown heading style: setext (underlined) or atx (# prefixed).",
"title": "Heading Style"
},
"hr": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Markdown used for horizontal rules, 1-128 characters.",
"title": "Hr"
},
"link_reference_style": {
"anyOf": [
{
"enum": [
"full",
"collapsed",
"shortcut",
"discarded"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Reference format when link_style is referenced.",
"title": "Link Reference Style"
},
"link_style": {
"anyOf": [
{
"enum": [
"inlined",
"referenced",
"discarded"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "How links are written: inlined, referenced (reference-style) or discarded.",
"title": "Link Style"
},
"strong_delimiter": {
"anyOf": [
{
"enum": [
"__",
"**"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Delimiter for strong emphasis.",
"title": "Strong Delimiter"
}
},
"title": "MarkdownOptions",
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "POST only. Markdown formatting options.",
"examples": [
{
"link_style": "referenced"
}
],
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Markdown",
"summary": "POST only. Markdown formatting options."
}
},
"markdown_chunking": {
"anyOf": [
{
"enum": [
"true",
"h1",
"h2",
"h3",
"h4",
"h5",
"structured",
"s1",
"s2",
"s3",
"s4",
"s5"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "true, h1-h5, structured or s1-s5: split the Markdown and return chunks.",
"title": "Markdown Chunking",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Markdown Chunking",
"summary": "true, h1-h5, structured or s1-s5: split the Markdown and return chunks."
}
},
"max_tokens": {
"anyOf": [
{
"maximum": 10000000,
"minimum": 500,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Integer 500-10,000,000. Trim content to this many tokens.",
"title": "Max Tokens",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Max Tokens",
"summary": "Integer 500-10,000,000. Trim content to this many tokens."
}
},
"no_gfm": {
"anyOf": [
{
"type": "boolean"
},
{
"const": "table",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "true, false or table: disable GitHub-flavored Markdown, or only its tables.",
"title": "No Gfm",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "No Gfm",
"summary": "true, false or table: disable GitHub-flavored Markdown, or only its tables."
}
},
"page_timeout": {
"anyOf": [
{
"maximum": 180,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Seconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout.",
"examples": [
30
],
"title": "Page Timeout",
"x-litescrape": {
"formGroup": 2,
"group": 2,
"kind": "number",
"label": "Page timeout",
"placeholder": "30",
"summary": "Seconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout."
}
},
"preset": {
"anyOf": [
{
"enum": [
"reader",
"index",
"research",
"agent",
"spider"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Option preset. Fills only the options the request leaves unset.",
"title": "Preset",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Preset",
"summary": "Option preset. Fills only the options the request leaves unset."
}
},
"referer": {
"anyOf": [
{
"maxLength": 8192,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "HTTP(S) URL sent as the Referer.",
"examples": [
"https://example.com"
],
"title": "Referer",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Referer",
"summary": "HTTP(S) URL sent as the Referer."
}
},
"remove_overlay": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Remove modal and cookie-banner overlays from the page.",
"title": "Remove Overlay",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Remove Overlay",
"summary": "Remove modal and cookie-banner overlays from the page."
}
},
"remove_selector": {
"anyOf": [
{
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
{
"items": {
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"maxItems": 16,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "CSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors.",
"examples": [
"nav, footer"
],
"title": "Remove Selector",
"x-litescrape": {
"formGroup": 1,
"group": 1,
"label": "Remove selector",
"placeholder": "nav, footer",
"summary": "CSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors."
}
},
"respond_timing": {
"anyOf": [
{
"enum": [
"html",
"visible-content",
"mutation-idle",
"resource-idle",
"media-idle",
"network-idle"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Page readiness condition to reach before responding.",
"examples": [
"network-idle"
],
"title": "Respond Timing",
"x-litescrape": {
"formGroup": 2,
"group": 2,
"kind": "select",
"label": "Respond timing",
"options": [
{
"label": "Default",
"value": ""
},
{
"label": "html",
"value": "html"
},
{
"label": "visible-content",
"value": "visible-content"
},
{
"label": "mutation-idle",
"value": "mutation-idle"
},
{
"label": "resource-idle",
"value": "resource-idle"
},
{
"label": "media-idle",
"value": "media-idle"
},
{
"label": "network-idle",
"value": "network-idle"
}
],
"summary": "Page readiness condition to reach before responding."
}
},
"respond_with": {
"anyOf": [
{
"maxLength": 64,
"minLength": 3,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Output format: content (default; main content as Markdown, or the whole page when extraction keeps too little), markdown (whole page as Markdown), html, text, frontmatter (content plus front matter), or a '+' combination such as markdown+frontmatter. For screenshots use /api/web/screenshot.",
"examples": [
"markdown",
"markdown+frontmatter"
],
"title": "Respond With",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"kind": "select",
"label": "Format",
"options": [
{
"label": "Default (markdown)",
"value": ""
},
{
"label": "markdown",
"value": "markdown"
},
{
"label": "html",
"value": "html"
},
{
"label": "text",
"value": "text"
}
],
"summary": "Output format: content (default; main content as Markdown, or the whole page when extraction keeps too little), markdown (whole page as Markdown), html, text, frontmatter (content plus front matter), or a '+' combination such as markdown+frontmatter. For screenshots use /api/web/screenshot."
}
},
"retain_images": {
"anyOf": [
{
"enum": [
"none",
"all",
"alt"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Images to keep: all (default), alt (alt text only) or none.",
"examples": [
"alt"
],
"title": "Retain Images",
"x-litescrape": {
"formGroup": 1,
"group": 1,
"kind": "select",
"label": "Images",
"options": [
{
"label": "Default",
"value": ""
},
{
"label": "none",
"value": "none"
},
{
"label": "all",
"value": "all"
},
{
"label": "alt",
"value": "alt"
}
],
"summary": "Images to keep: all (default), alt (alt text only) or none."
}
},
"retain_links": {
"anyOf": [
{
"enum": [
"none",
"all",
"text",
"gpt-oss"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Links to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary).",
"title": "Retain Links",
"x-litescrape": {
"formGroup": 1,
"group": 1,
"kind": "select",
"label": "Links",
"options": [
{
"label": "Default",
"value": ""
},
{
"label": "none",
"value": "none"
},
{
"label": "all",
"value": "all"
},
{
"label": "text",
"value": "text"
},
{
"label": "gpt-oss",
"value": "gpt-oss"
}
],
"summary": "Links to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary)."
}
},
"retain_media": {
"anyOf": [
{
"enum": [
"none",
"text",
"link",
"image",
"html"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "How video, audio and embedded video appear: none, text, link (default), image or html.",
"title": "Retain Media",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Retain Media",
"summary": "How video, audio and embedded video appear: none, text, link (default), image or html."
}
},
"robots_txt": {
"anyOf": [
{
"maxLength": 256,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "User agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected.",
"examples": [
"MyBot"
],
"title": "Robots Txt",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Robots Txt",
"summary": "User agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected."
}
},
"set_cookies": {
"anyOf": [
{
"items": {
"maxLength": 4096,
"minLength": 3,
"type": "string"
},
"maxItems": 100,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "POST only. 1-100 cookies in Set-Cookie syntax (name=value; Path=/; Domain=...), one line each, up to 4,096 characters.",
"examples": [
[
"session=YOUR_SESSION; Path=/; Secure; HttpOnly"
]
],
"title": "Set Cookies",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Set Cookies",
"summary": "POST only. 1-100 cookies in Set-Cookie syntax (name=value; Path=/; Domain=...), one line each, up to 4,096 characters."
}
},
"target_selector": {
"anyOf": [
{
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
{
"items": {
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"maxItems": 16,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "CSS selector to extract, 1-2,048 characters; POST also accepts a list of 1-16 selectors. Implies waiting for the selector. Match-all selectors are rejected.",
"examples": [
"article"
],
"title": "Target Selector",
"x-litescrape": {
"formGroup": 1,
"group": 1,
"label": "Target selector",
"placeholder": "article",
"summary": "CSS selector to extract, 1-2,048 characters; POST also accepts a list of 1-16 selectors. Implies waiting for the selector. Match-all selectors are rejected."
}
},
"token_budget": {
"anyOf": [
{
"maximum": 10000000,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Integer 1-10,000,000. Reject the page when its token count exceeds the budget.",
"title": "Token Budget",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Token Budget",
"summary": "Integer 1-10,000,000. Reject the page when its token count exceeds the budget."
}
},
"url": {
"description": "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.",
"examples": [
"https://example.com"
],
"maxLength": 8192,
"minLength": 1,
"title": "Url",
"type": "string",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "URL",
"placeholder": "https://ecll-litescrape-v3--site-api-web.modal.run",
"summary": "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."
}
},
"user_agent": {
"anyOf": [
{
"maxLength": 1024,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "User-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own.",
"title": "User Agent",
"x-litescrape": {
"formGroup": 2,
"group": 2,
"label": "User agent",
"placeholder": "Mozilla/5.0 …",
"summary": "User-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own."
}
},
"viewport": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"device_scale_factor": {
"anyOf": [
{
"exclusiveMinimum": 0,
"maximum": 4,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"description": "Device pixel ratio, greater than 0 and at most 4.",
"title": "Device Scale Factor"
},
"has_touch": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Emulate touch support.",
"title": "Has Touch"
},
"height": {
"description": "Viewport height in CSS pixels, 1-4,096. Required.",
"maximum": 4096,
"minimum": 1,
"title": "Height",
"type": "integer"
},
"is_landscape": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Use landscape orientation.",
"title": "Is Landscape"
},
"is_mobile": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Emulate a mobile device.",
"title": "Is Mobile"
},
"width": {
"description": "Viewport width in CSS pixels, 1-4,096. Required.",
"maximum": 4096,
"minimum": 1,
"title": "Width",
"type": "integer"
}
},
"required": [
"width",
"height"
],
"title": "Viewport",
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "POST only. Browser viewport; width and height are required. Default: 1280 x 1280.",
"examples": [
{
"height": 900,
"width": 1440
}
],
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "Viewport",
"summary": "POST only. Browser viewport; width and height are required. Default: 1280 x 1280."
}
},
"wait_for_selector": {
"anyOf": [
{
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
{
"items": {
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"maxItems": 16,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "CSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors.",
"examples": [
"main"
],
"title": "Wait For Selector",
"x-litescrape": {
"formGroup": 2,
"group": 2,
"label": "Wait for selector",
"placeholder": "main",
"summary": "CSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors."
}
},
"with_iframe": {
"anyOf": [
{
"type": "boolean"
},
{
"const": "quoted",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "true, false or quoted: include iframe content before extraction.",
"title": "With Iframe",
"x-litescrape": {
"formGroup": 1,
"group": 1,
"kind": "select",
"label": "Iframes",
"options": [
{
"label": "Default (false)",
"value": ""
},
{
"label": "true",
"value": "true"
},
{
"label": "false",
"value": "false"
},
{
"label": "quoted",
"value": "quoted"
}
],
"summary": "true, false or quoted: include iframe content before extraction."
}
},
"with_images_summary": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Add an images list to the response.",
"title": "With Images Summary",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "With Images Summary",
"summary": "Add an images list to the response."
}
},
"with_links_summary": {
"anyOf": [
{
"type": "boolean"
},
{
"const": "all",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "true, false or all: add a links list to the response.",
"title": "With Links Summary",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"label": "With Links Summary",
"summary": "true, false or all: add a links list to the response."
}
},
"with_shadow_dom": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Include open shadow DOM content before extraction.",
"title": "With Shadow Dom",
"x-litescrape": {
"formGroup": 1,
"group": 1,
"kind": "select",
"label": "Shadow DOM",
"options": [
{
"label": "Default (false)",
"value": ""
},
{
"label": "true",
"value": "true"
},
{
"label": "false",
"value": "false"
}
],
"summary": "Include open shadow DOM content before extraction."
}
}
},
"required": [
"url"
],
"title": "Request",
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "150",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": {
"respond_with": "markdown",
"url": "https://example.com"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"content": "## [The Go Blog](https://go.dev/blog/)\n\nToday the Go team is thrilled to release Go 1.22, which you can get by visiting the [download page](https://go.dev/dl/).\n\nGo 1.22 comes with several important new features and improvements. Here are some of the notable changes; for the full list, refer to the [release notes](https://go.dev/doc/go1.22).\n\n## Language changes[¶](https://go.dev/blog/go1.22#language-changes)\n\nThe long-standing “for” loop gotcha with accidental sharing of loop variables between iterations is now resolved. Starting with Go 1.22, the following code will print “a”, “b”, and “c” i ?",
"description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.",
"external": {
"alternate": {
"https://go.dev/blog/feed.atom": {
"title": "The Go Blog",
"type": "application/atom+xml"
}
},
"apple-touch-icon": {
"https://go.dev/images/favicon-gopher-plain.png": {}
},
"canonical": {
"https://go.dev/blog/go1.22": {}
},
"icon": {
"https://go.dev/images/favicon-gopher.png": {
"sizes": "any"
},
"https://go.dev/images/favicon-gopher.svg": {
"type": "image/svg+xml"
}
},
"me": {
"https://hachyderm.io/@golang": {}
},
"preconnect": {
"https://www.googletagmanager.com/": {}
}
},
"metadata": {
"description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.",
"lang": "en",
"og:description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.",
"og:image": "https://go.dev/doc/gopher/gopher5logo.jpg",
"og:title": "Go 1.22 is released! - The Go Programming Language",
"og:url": "https://go.dev/blog/go1.22",
"theme-color": "#00add8",
"twitter:card": "summary",
"twitter:image": "https://go.dev/doc/gopher/runningsquare.jpg",
"twitter:site": "@golang",
"viewport": "width=device-width, initial-scale=1"
},
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token",
"title": "Go 1.22 is released! - The Go Programming Language",
"url": "https://go.dev/blog/go1.22",
"usage": {
"tokens": 811
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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- Get a web page as Markdown, HTML or plain text.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/litescrape/api/web/fetch' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "respond_with": "markdown", "url": "https://example.com" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "content": "## [The Go Blog](https://go.dev/blog/)\n\nToday the Go team is thrilled to release Go 1.22, which you can get by visiting the [download page](https://go.dev/dl/).\n\nGo 1.22 comes with several important new features and improvements. Here are some of the notable changes; for the full list, refer to the [release notes](https://go.dev/doc/go1.22).\n\n## Language changes[¶](https://go.dev/blog/go1.22#language-changes)\n\nThe long-standing “for” loop gotcha with accidental sharing of loop variables between iterations is now resolved. Starting with Go 1.22, the following code will print “a”, “b”, and “c” i ?", "description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.", "external": { "alternate": { "https://go.dev/blog/feed.atom": { "title": "The Go Blog", "type": "application/atom+xml" } }, "apple-touch-icon": { "https://go.dev/images/favicon-gopher-plain.png": {} }, "canonical": { "https://go.dev/blog/go1.22": {} }, "icon": { "https://go.dev/images/favicon-gopher.png": { "sizes": "any" }, "https://go.dev/images/favicon-gopher.svg": { "type": "image/svg+xml" } }, "me": { "https://hachyderm.io/@golang": {} }, "preconnect": { "https://www.googletagmanager.com/": {} } }, "metadata": { "description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.", "lang": "en", "og:description": "Go 1.22 enhances for loops, brings new standard library functionality and improves performance.", "og:image": "https://go.dev/doc/gopher/gopher5logo.jpg", "og:title": "Go 1.22 is released! - The Go Programming Language", "og:url": "https://go.dev/blog/go1.22", "theme-color": "#00add8", "twitter:card": "summary", "twitter:image": "https://go.dev/doc/gopher/runningsquare.jpg", "twitter:site": "@golang", "viewport": "width=device-width, initial-scale=1" }, "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token", "title": "Go 1.22 is released! - The Go Programming Language", "url": "https://go.dev/blog/go1.22", "usage": { "tokens": 811 } }