# TinyFish Fetch

Get Web Page Content data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by Tinyfish, pass parameters such as format, per_url_timeout_ms, urls, and retrieve structured data including text, title, description, returned final url field, and returned format field to search interfaces and source review, and integration reference.

Documentation: https://openany.si/web/web-page-content/0bf3c77e-77a3-49c5-81ab-dd92d2c442ef/
API ID: 0bf3c77e-77a3-49c5-81ab-dd92d2c442ef
Provider: tinyfish
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/tinyfish/
Page update time: 2026-12-03T02:53:42.008Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:53:40.968Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Web TinyFish Fetch API

Retrieve content from 1 to 10 known webpage URLs as Markdown, HTML, or a document tree. Provide urls in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## 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 |
| --- | --- |
| `results[].text` | Text |
| `results[].title` | Title |
| `results[].description` | Description |
| `results[].final_url` | Returned final url field |
| `results[].format` | Returned format field |
| `results[].language` | Returned language field |
| `results[].url` | Returned URL |
| `errors` | Returned errors field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TinyFish Fetch request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "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",
      "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."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "errors": {
      "type": "array",
      "items": {}
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "final_url": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example (abridged)
```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/"
  ]
}'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide urls in body (array). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- keenable: https://openany.si/web/web-page-content/d842b7ba-1d8b-4150-ac0c-3d1d6deed577/
- litescrape: https://openany.si/web/web-page-content/a8fbac67-8c6d-446e-9d8f-4fcffef33dc3/
- search1api: https://openany.si/web/web-page-content/22de11e2-d576-49f9-a842-b8f750785097/
- tavily: https://openany.si/web/web-page-content/a64d248c-785f-4149-8116-e9c47a9c8c3c/
- tinyfish: https://openany.si/web/web-page-content/0bf3c77e-77a3-49c5-81ab-dd92d2c442ef/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
