Web Page Content API
Get Web Page Content data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 5 implementations (Keenable, LiteScrape, Search1API and Tavily), pass parameters such as url, and retrieve structured data including content, title, author context, description, and returned published at field to search interfaces and source review, and integration reference.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / APIs
- 5 / 5
- Requests · 30d
- 6Selected implementation · last 30 days
- Success rate · 30d
- 100.00%Selected implementation · last 30 days
Web Page Content API
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- API
- Pricing
On this page
Overview
Web Fetch API
Retrieve a web page as Markdown, HTML or plain text. Provide url in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: timeout; body: body |
| Selected implementation | litescrape · Fetch |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Search interfaces and source review: Keep returned sources and query context together.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
content |
Content |
title |
Title |
description |
Description |
external.alternate.<key> |
Returned field |
external.apple-touch-icon.<key> |
Returned field |
external.canonical.<key> |
Returned field |
external.icon.<key> |
Returned field |
external.icon.<key> |
Returned field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the JSON body and supported fields shown in the request template.
- Check the HTTP response and business result before reading optional fields.
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"
}'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published Web Fetch 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
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
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 | 6 | 100.00%successP506.88s | |
| Search1API Web Crawl · POST · View API reference | $0.001 / call | —Select to load statistics | —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: 4. 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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
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 |
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. |
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.
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
Agent integration
Copy the resource contract without sharing an API key.
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 } }