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 / 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 / call
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
errorsunknown[]resultsobject[]descriptionstringfinal_urlstringformatstringlanguagestringtextstringtitlestringurlstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
errors?: Array<unknown>;
results?: Array<{
description?: string;
final_url?: string;
format?: string;
language?: string;
text?: string;
title?: string;
url?: string;
}>;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Keenable Public Fetch · GET · View API reference | $0 / call | —Select to load statistics | —successP50— | |
| Fetch · POST · View API reference | $0.00015 / 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— | |
Current TinyFish Fetch · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
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
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/tinyfish/- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/tinyfish/' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"format": "markdown",
"per_url_timeout_ms": 90000,
"urls": [
"https://www.tinyfish.ai/"
]
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
exclude_selectors | JSON request bodybody | array | No | Array of CSS selectors (1-20 entries, each 1-1000 characters) for elements to remove before extraction — applied before `include_selectors` scopes what remains, so it also prunes inside selected regions. Entries may themselves use CSS comma-grouping. Entries that match nothing are a no-op, never an error, but URLs that resolve to direct PDF/CSV downloads fail with `selector_unsupported`. Invalid CSS selector syntax is rejected with a 422. Applied post-fetch: caching and routing are unchanged. minItems: 1 · maxItems: 20 Nested fields and variants
|
format | JSON request bodybody | string | No | Output format for extracted content. "markdown" (default) is ideal for LLM consumption. "html" returns cleaned semantic HTML. "json" returns a structured document tree. enum: "markdown", "html", "json" |
if_modified_since | JSON request bodybody | string | No | Last-Modified validator from a prior fetch of this URL, forwarded verbatim as the If-Modified-Since header on the origin request. Only valid with a single URL — combining with a batch of URLs returns a 400. tf-fetch does not persist validators; the caller owns replaying them. minLength: 1 |
if_none_match | JSON request bodybody | string | No | ETag validator from a prior fetch of this URL, forwarded verbatim as the If-None-Match header on the origin request. Only valid with a single URL — combining with a batch of URLs returns a 400. tf-fetch does not persist validators; the caller owns replaying them. minLength: 1 |
iframe_links | JSON request bodybody | boolean | No | Extract the src URLs of <iframe> elements on each page. Useful when a page embeds its main content in a frame (job boards, booking widgets, document viewers): fetch the returned URL to read the embedded content. Iframe links are returned as absolute, deduplicated URLs in the iframe_links array of each result. Script-injected iframes are only present when the page was rendered in a browser. |
image_links | JSON request bodybody | boolean | No | Extract all image URLs (<img src>) from each page. Useful for finding visual content or media assets. Image links are returned as absolute URLs in the image_links array of each result. |
include_etag_and_last_modified | JSON request bodybody | boolean | No | Opt-in to receiving `etag` / `last_modified` validators (and `not_modified` detection) on each result. Defaults to false — tf-fetch omits these fields unless requested. Independent of `if_none_match` / `if_modified_since`: works with a single URL or a batch. |
include_selectors | JSON request bodybody | array | No | Array of CSS selectors (1-20 entries, each 1-1000 characters) that scope extracted content (`text`, `links`, `image_links`) to elements matching ANY entry, concatenated in document order. Tag selectors cover semantic sections (`main`, `article`, `nav`); entries may themselves use CSS comma-grouping. Selected content is returned verbatim in the requested format (scripts/styles stripped) — automatic boilerplate removal is bypassed. Page-level metadata (`title`, `description`, `language`, `author`, `published_date`) still comes from the full document. When some entries match and others do not, the URL still succeeds and the misses are reported in the result's `unmatched_selectors`. When no entry matches anything, that URL fails with the per-URL error code `selector_not_matched` (carrying `unmatched_selectors` and `candidate_selectors` retry hints) — never a silent full-page fallback. URLs that resolve to direct PDF/CSV downloads fail with `selector_unsupported`. Invalid CSS selector syntax is rejected with a 422. Applied post-fetch: caching and routing are unchanged. minItems: 1 · maxItems: 20 Nested fields and variants
|
links | JSON request bodybody | boolean | No | Extract all outbound links (<a href>) from each page. Useful for discovering related pages or navigating to specific content. Links are returned as absolute URLs in the links array of each result. |
page_metadata | JSON request bodybody | boolean | No | Return page-head metadata for each page in the page_metadata object of each result: canonical URL, favicon, robots directive, generator, viewport, keywords, all Open Graph (og), Twitter card (twitter), and article tags, and remaining named meta tags under `other`. Useful for SEO/technical audits and link-preview generation. |
per_url_timeout_ms | JSON request bodybody | integer | No | Wall-clock timeout budget in milliseconds applied independently to each URL. If one URL exceeds this budget, it returns a per-URL timeout error while other URLs in the same request continue. minimum: 1 · maximum: 110000 |
purpose | JSON request bodybody | string | No | Why these URLs are being fetched — the underlying goal or task the content will be used for. Used to better tailor fetching and extraction to your intent. minLength: 1 · maxLength: 2000 · pattern: \S |
ttl | JSON request bodybody | integer | No | Caller freshness tolerance in seconds for the cached entry. Omit (default) for unlimited tolerance — any cached entry is acceptable. Set to 0 to prefer a live fetch; a cached entry is still served if the origin's Cache-Control: max-age covers its age, or the host is in the small allowlist of operator-pinned never-expire domains. Set to N > 0 to accept a cached entry whose age is below N; the upstream Cache-Control: max-age and the never-expire allowlist may extend (never shorten) this tolerance. minimum: 0 |
urls | JSON request bodybody | array | Yes | Array of URLs to fetch (1-10). All URLs are fetched in parallel. Each URL is processed independently — if one fails, others still return successfully. Errors are reported per-URL in the errors array. minItems: 1 · maxItems: 10 Nested fields and variants
|
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.
{
"errors": [],
"results": [
{
"description": "TinyFish provides enterprise infrastructure for AI web agents.",
"final_url": "https://www.tinyfish.ai/",
"format": "markdown",
"language": "en",
"text": "# TinyFish | Enterprise Web Agent Infrastructure\n\nTinyFish provides enterprise infrastructure for AI web agents...\n",
"title": "TinyFish | Enterprise Web Agent Infrastructure",
"url": "https://www.tinyfish.ai/"
}
]
}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/0bf3c77e-77a3-49c5-81ab-dd92d2c442ef
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/tinyfish/
Price: $0 / call
Provider: tinyfish
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/tinyfish/' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"format": "markdown",
"per_url_timeout_ms": 90000,
"urls": [
"https://www.tinyfish.ai/"
]
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "TinyFish Fetch",
"endpoint": "https://api.openany.si/v1/agent-apis/tinyfish/",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Fetch content from 1 to 10 known webpage URLs as Markdown, HTML, or a document tree. Each URL is processed independently; inspect both results and errors.",
"json_schema": {
"additionalProperties": false,
"allOf": [
{
"if": {
"anyOf": [
{
"required": [
"if_none_match"
]
},
{
"required": [
"if_modified_since"
]
}
]
},
"then": {
"properties": {
"urls": {
"maxItems": 1
}
}
}
}
],
"properties": {
"exclude_selectors": {
"description": "Array of CSS selectors (1-20 entries, each 1-1000 characters) for elements to remove before extraction — applied before `include_selectors` scopes what remains, so it also prunes inside selected regions. Entries may themselves use CSS comma-grouping. Entries that match nothing are a no-op, never an error, but URLs that resolve to direct PDF/CSV downloads fail with `selector_unsupported`. Invalid CSS selector syntax is rejected with a 422. Applied post-fetch: caching and routing are unchanged.",
"example": [
".comments",
".newsletter-signup"
],
"items": {
"maxLength": 1000,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"type": "array"
},
"format": {
"default": "markdown",
"description": "Output format for extracted content. \"markdown\" (default) is ideal for LLM consumption. \"html\" returns cleaned semantic HTML. \"json\" returns a structured document tree.",
"enum": [
"markdown",
"html",
"json"
],
"example": "markdown",
"type": "string"
},
"if_modified_since": {
"description": "Last-Modified validator from a prior fetch of this URL, forwarded verbatim as the If-Modified-Since header on the origin request. Only valid with a single URL — combining with a batch of URLs returns a 400. tf-fetch does not persist validators; the caller owns replaying them.",
"example": "Wed, 21 Oct 2015 07:28:00 GMT",
"minLength": 1,
"type": "string"
},
"if_none_match": {
"description": "ETag validator from a prior fetch of this URL, forwarded verbatim as the If-None-Match header on the origin request. Only valid with a single URL — combining with a batch of URLs returns a 400. tf-fetch does not persist validators; the caller owns replaying them.",
"example": "W/\"abc123\"",
"minLength": 1,
"type": "string"
},
"iframe_links": {
"default": false,
"description": "Extract the src URLs of <iframe> elements on each page. Useful when a page embeds its main content in a frame (job boards, booking widgets, document viewers): fetch the returned URL to read the embedded content. Iframe links are returned as absolute, deduplicated URLs in the iframe_links array of each result. Script-injected iframes are only present when the page was rendered in a browser.",
"example": false,
"type": "boolean"
},
"image_links": {
"default": false,
"description": "Extract all image URLs (<img src>) from each page. Useful for finding visual content or media assets. Image links are returned as absolute URLs in the image_links array of each result.",
"example": false,
"type": "boolean"
},
"include_etag_and_last_modified": {
"description": "Opt-in to receiving `etag` / `last_modified` validators (and `not_modified` detection) on each result. Defaults to false — tf-fetch omits these fields unless requested. Independent of `if_none_match` / `if_modified_since`: works with a single URL or a batch.",
"example": true,
"type": "boolean"
},
"include_selectors": {
"description": "Array of CSS selectors (1-20 entries, each 1-1000 characters) that scope extracted content (`text`, `links`, `image_links`) to elements matching ANY entry, concatenated in document order. Tag selectors cover semantic sections (`main`, `article`, `nav`); entries may themselves use CSS comma-grouping. Selected content is returned verbatim in the requested format (scripts/styles stripped) — automatic boilerplate removal is bypassed. Page-level metadata (`title`, `description`, `language`, `author`, `published_date`) still comes from the full document. When some entries match and others do not, the URL still succeeds and the misses are reported in the result's `unmatched_selectors`. When no entry matches anything, that URL fails with the per-URL error code `selector_not_matched` (carrying `unmatched_selectors` and `candidate_selectors` retry hints) — never a silent full-page fallback. URLs that resolve to direct PDF/CSV downloads fail with `selector_unsupported`. Invalid CSS selector syntax is rejected with a 422. Applied post-fetch: caching and routing are unchanged.",
"example": [
"article"
],
"items": {
"maxLength": 1000,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"type": "array"
},
"links": {
"default": false,
"description": "Extract all outbound links (<a href>) from each page. Useful for discovering related pages or navigating to specific content. Links are returned as absolute URLs in the links array of each result.",
"example": false,
"type": "boolean"
},
"page_metadata": {
"default": false,
"description": "Return page-head metadata for each page in the page_metadata object of each result: canonical URL, favicon, robots directive, generator, viewport, keywords, all Open Graph (og), Twitter card (twitter), and article tags, and remaining named meta tags under `other`. Useful for SEO/technical audits and link-preview generation.",
"example": false,
"type": "boolean"
},
"per_url_timeout_ms": {
"description": "Wall-clock timeout budget in milliseconds applied independently to each URL. If one URL exceeds this budget, it returns a per-URL timeout error while other URLs in the same request continue.",
"example": 45000,
"maximum": 110000,
"minimum": 1,
"type": "integer"
},
"purpose": {
"description": "Why these URLs are being fetched — the underlying goal or task the content will be used for. Used to better tailor fetching and extraction to your intent.",
"example": "Compare pricing tiers across vendors for a procurement report",
"maxLength": 2000,
"minLength": 1,
"pattern": "\\S",
"type": "string"
},
"ttl": {
"description": "Caller freshness tolerance in seconds for the cached entry. Omit (default) for unlimited tolerance — any cached entry is acceptable. Set to 0 to prefer a live fetch; a cached entry is still served if the origin's Cache-Control: max-age covers its age, or the host is in the small allowlist of operator-pinned never-expire domains. Set to N > 0 to accept a cached entry whose age is below N; the upstream Cache-Control: max-age and the never-expire allowlist may extend (never shorten) this tolerance.",
"example": 0,
"minimum": 0,
"type": "integer"
},
"urls": {
"description": "Array of URLs to fetch (1-10). All URLs are fetched in parallel. Each URL is processed independently — if one fails, others still return successfully. Errors are reported per-URL in the errors array.",
"example": [
"https://example.com",
"https://example.org"
],
"items": {
"format": "uri",
"pattern": "^[Hh][Tt][Tt][Pp][Ss]?://",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
}
},
"required": [
"urls"
],
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example (abridged)",
"request": {
"body": {
"format": "markdown",
"per_url_timeout_ms": 90000,
"urls": [
"https://www.tinyfish.ai/"
]
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"errors": [],
"results": [
{
"description": "TinyFish provides enterprise infrastructure for AI web agents.",
"final_url": "https://www.tinyfish.ai/",
"format": "markdown",
"language": "en",
"text": "# TinyFish | Enterprise Web Agent Infrastructure\n\nTinyFish provides enterprise infrastructure for AI web agents...\n",
"title": "TinyFish | Enterprise Web Agent Infrastructure",
"url": "https://www.tinyfish.ai/"
}
]
}
}
]
}
```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 (abridged)
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 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Fetch content from 1 to 10 known webpage URLs as Markdown, HTML, or a document tree. Each URL is processed independently; inspect both results and errors.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/tinyfish/' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "format": "markdown", "per_url_timeout_ms": 90000, "urls": [ "https://www.tinyfish.ai/" ] }'Check the response
Sample response · Documented HTTP 200
Sample response{ "errors": [], "results": [ { "description": "TinyFish provides enterprise infrastructure for AI web agents.", "final_url": "https://www.tinyfish.ai/", "format": "markdown", "language": "en", "text": "# TinyFish | Enterprise Web Agent Infrastructure\n\nTinyFish provides enterprise infrastructure for AI web agents...\n", "title": "TinyFish | Enterprise Web Agent Infrastructure", "url": "https://www.tinyfish.ai/" } ] }