# Introducing the OpenWebSearch Scraping Router

URL: https://interfaze.ai/blog/introducing-openwebsearch-scraping-router

[OpenWebSearch](https://openwebsearch.ai) now routes scraping as well as search. `POST /v1/scrape` reads any URL as Markdown through 11 providers like Exa, Tavily, Apify and TinyFish, with the same key, fallbacks and billing you already use for search.

When we [launched in August](https://interfaze.ai/blog/introducing-openwebsearch), the router found the right pages and left reading them to a separate integration. Scraping has the same problem search had: every provider is good at different sites, and each one ships its own API, its own flags for JavaScript rendering and freshness, and its own invoice.

So the bet is the same one we made on indexes. Scrapers are becoming a commodity, and which one is right depends on the page you're reading.

## No scraper reads every page

Proxyway made this case in its [Web Scraping API Report 2025](https://proxyway.com/research/web-scraping-api-report-2025). They ran 11 scraping APIs against 15 protected websites, around 6,000 URLs per site.

Only four of the 11 opened the targets more than 80% of the time. On the three hardest sites, five of the 11 failed on more than 80% of requests.

| Target | Avg. success rate at 2 req/s | APIs with over 80% failure |
| ------ | ---------------------------- | -------------------------- |
| Shein  | 21.88%                       | 5 of 11                    |
| G2     | 36.63%                       | 5 of 11                    |
| Hyatt  | 43.75%                       | 5 of 11                    |
| Amazon | 93.30%                       | 0 of 11                    |
| Zillow | 97.85%                       | 0 of 11                    |

The ranking also flips per site. G2 was too much for Oxylabs, Decodo and ScrapingBee, three of the four best performers overall, while ScraperAPI handled it.

Pages are getting harder to read by default too. Cloudflare manages traffic for about 20% of the web, and since [July 1, 2025](https://www.cloudflare.com/press/press-releases/2025/cloudflare-just-changed-how-ai-crawlers-scrape-the-internet-at-large/) it blocks AI crawlers by default on new domains.

Apify is the only one of those 11 APIs that OpenWebSearch routes to today, but the lesson carries over. If you pin one scraper, its failures become your failures.

## Your first scrape

1. Sign in at [openwebsearch.ai](https://openwebsearch.ai)
2. Create a key and save it

If you already have a key for search, it works here too. It's the same plain REST style, with a `url` in place of a `query`.

**fetch · typescript**

```typescript
const response = await fetch("https://api.openwebsearch.ai/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPENWEBSEARCH_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    provider: "exa",
    url: "https://interfaze.ai/docs",
  }),
});

const { results, provider, usage } = await response.json();

console.log(`${provider} read the page for $${usage.cost}`);
console.log(results[0]?.content);
```

**requests · python**

```python
import os
import requests

response = requests.post(
    "https://api.openwebsearch.ai/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['OPENWEBSEARCH_API_KEY']}"},
    json={
        "provider": "exa",
        "url": "https://interfaze.ai/docs",
    },
)

data = response.json()

print(f"{data['provider']} read the page for ${data['usage']['cost']}")
print(data["results"][0]["content"] if data["results"] else None)
```

**curl · bash**

```bash
curl -X POST https://api.openwebsearch.ai/v1/scrape \
  -H "Authorization: Bearer $OPENWEBSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "exa",
    "url": "https://interfaze.ai/docs"
  }'
```

## One response shape

The scrape response mirrors the search one. `url` replaces `query`, `results` holds at most one entry, and the page arrives as Markdown in `results[0].content`.

```json
{
  "id": "req-161d...",
  "provider": "exa",
  "url": "https://interfaze.ai/docs",
  "results": [
    {
      "title": "Interfaze Documentation",
      "url": "https://interfaze.ai/docs",
      "snippet": null,
      "content": "# Introduction\n\nThis guide will get you started and make your first request to Interfaze with the official Interfaze SDK...",
      "published_date": null,
      "source": "interfaze.ai",
      "raw": {}
    }
  ],
  "usage": {
    "cost": 0.001,
    "results_count": 1
  },
  "warnings": []
}
```

`raw` carries the provider's own metadata without repeating the page text. The `provider` field always names the scraper that actually read the page, including when a fallback kicked in.

## Fallbacks for pages that fight back

A LinkedIn profile is the classic case. A provider that reads a docs page without trouble can come back blocked or empty on a profile, and you only find out at request time.

Pass an ordered `providers` list instead of a single `provider` and the router walks it for you.

```json
{
  "url": "https://www.linkedin.com/in/yoeven/",
  "providers": ["exa", "apify", "tinyfish"],
  "allow_fallbacks": true
}
```

```mermaid
flowchart LR
    R[POST /v1/scrape] --> P1[exa]
    P1 -->|blocked| P2[apify]
    P2 -->|page read| O[Markdown]
    P2 -.->|empty page| P3[tinyfish]
    P3 -.-> O
```

The first provider that reads the page wins. If the first one hits a block and the second gets through, the response says so in `provider`. Trimmed for length:

```json
{
  "id": "req-8e97...",
  "provider": "apify",
  "url": "https://www.linkedin.com/in/yoeven/",
  "results": [
    {
      "title": "Yoeven D Khemlani - Interfaze (Previously JigsawStack) | LinkedIn",
      "url": "https://www.linkedin.com/in/yoeven/",
      "content": "# Yoeven D Khemlani\n\nbuild and explore\n\nSan Francisco\n\n## Experience\n\n### Interfaze (Previously JigsawStack)..."
    }
  ],
  "usage": { "cost": 0.0015, "results_count": 1 },
  "warnings": []
}
```

The rules for when the router moves on are fixed:

- **Moves to the next provider:** a timeout, a transient error, a block, an unreadable page, or an empty page.
- **Stops immediately:** an invalid request returns `400` instead of burning through your whole list.
- **Stops on a dead link:** a target `404` or `410` returns `200` with empty `results` and a `target_not_found` warning.
- **Never blends:** the Markdown always comes from one provider.

Each attempt is capped at 30 seconds and the whole request defaults to 60, so there's room for a fallback inside the default budget. Raise `timeout_seconds` up to `300` for longer chains, and expect a `502` if no provider can read the page.

## One set of configurations

Every scraper names its rendering and freshness flags differently. The router gives you one set and translates it per provider.

| Parameter           | Default    | What it does                                                        |
| ------------------- | ---------- | ------------------------------------------------------------------- |
| `only_main_content` | `true`     | Strips navigation, headers and footers                              |
| `include_links`     | `true`     | Keeps inline links in the Markdown                                  |
| `render_js`         | `false`    | Executes page JavaScript before reading                             |
| `effort`            | `standard` | `advanced` selects a provider's higher-priced extraction tier       |
| `max_age_seconds`   | `172800`   | Maximum age of a provider's stored copy. `0` asks for a fresh fetch |
| `timeout_seconds`   | `60`       | Deadline for the whole request, fallbacks included                  |
| `max_chars`         | Unlimited  | Caps the page characters returned                                   |

A JavaScript-heavy page with a stricter extraction tier looks like this:

```json
{
  "url": "https://finance.yahoo.com/quote/NVDA/",
  "providers": ["tavily", "linkup"],
  "render_js": true,
  "effort": "advanced",
  "timeout_seconds": 120
}
```

`render_js: true` and `effort: "advanced"` are always treated as requirements. If any provider the request can reach lacks one of them, you get a `400` before a single provider is called.

The other settings are best effort by default. An explicit setting that a provider can't honor is dropped and reported in `warnings`, and `strict_params: true` lets the router skip that provider instead.

## Providers

Scrape takes 11 provider slugs. The table shows how each one supports the settings that matter most on hard pages, plus the price.

| Provider    | Slug         | `render_js` | `effort`   | `max_age_seconds` | Price per 1,000 pages |
| ----------- | ------------ | ----------- | ---------- | ----------------- | --------------------- |
| Exa         | `exa`        | `emulated`  | `one_tier` | `unsupported`     | \$1                   |
| Tavily      | `tavily`     | `native`    | `native`   | `unsupported`     | \$1.60 to \$3.20      |
| You.com     | `you`        | `emulated`  | `one_tier` | `emulated`        | \$0.90                |
| Perplexity  | `perplexity` | `emulated`  | `one_tier` | `native`          | \$1                   |
| Parallel    | `parallel`   | `emulated`  | `one_tier` | `emulated`        | \$1                   |
| Apify       | `apify`      | `native`    | `one_tier` | `native`          | \$1.50                |
| Valyu       | `valyu`      | `native`    | `one_tier` | `native`          | \$1.25                |
| Octen       | `octen`      | `emulated`  | `native`   | `emulated`        | \$1 to \$2.50         |
| Linkup      | `linkup`     | `native`    | `native`   | `unsupported`     | \$1 to \$10           |
| Context.dev | `contextdev` | `emulated`  | `one_tier` | `native`          | \$2 to \$4            |
| TinyFish    | `tinyfish`   | `emulated`  | `one_tier` | `unsupported`     | \$1                   |

The support levels read like this:

- **`native`:** the provider has the setting and the router passes it straight through.
- **`emulated`:** on `render_js` the provider decides when to render, and on `max_age_seconds` the router maps your limit to the provider's fetch policy.
- **`one_tier`:** the provider has a single extraction tier, so `standard` only.
- **`unsupported`:** the provider can't honor the setting.

Two differences from search are worth knowing. Scrape has no `auto`, so you name a `provider` or a `providers` list, and the lineups differ: TinyFish only scrapes and Brave only searches.

`GET /v1/providers` is always the source of truth. It lists every scrape setting per provider under `scrape.params`, so you can build a fallback list at runtime instead of hardcoding this table.

## Provider-specific options

When you need a native feature that isn't part of the unified schema, scope it under `provider_options` and the provider's slug, same as search. Context.dev's browser actions live at `provider_options.contextdev.sharedParams.actions`, for example, and bill at \$4 per 1,000 pages.

Keys outside the documented catalog are forwarded with a `param_unrecognized` warning. Anything you set there only applies to that provider, so it stops working the moment a request falls back to another one.

## Search, then scrape

Both endpoints sit behind one key, so the full loop is two requests. Search picks the page with `auto`, then scrape reads it through a fallback list.

**fetch · typescript**

```typescript
const headers = {
  Authorization: `Bearer ${process.env.OPENWEBSEARCH_API_KEY}`,
  "Content-Type": "application/json",
};

const search = await fetch("https://api.openwebsearch.ai/v1/search", {
  method: "POST",
  headers,
  body: JSON.stringify({
    provider: "auto",
    query: "What changed in browser automation this week?",
    max_results: 5,
  }),
});

const { results } = await search.json();

const scrape = await fetch("https://api.openwebsearch.ai/v1/scrape", {
  method: "POST",
  headers,
  body: JSON.stringify({
    url: results[0].url,
    providers: ["exa", "apify", "tinyfish"],
  }),
});

const page = await scrape.json();

console.log(`${page.provider} read ${page.url} for $${page.usage.cost}`);
console.log(page.results[0]?.content);
```

**requests · python**

```python
import os
import requests

headers = {"Authorization": f"Bearer {os.environ['OPENWEBSEARCH_API_KEY']}"}

search = requests.post(
    "https://api.openwebsearch.ai/v1/search",
    headers=headers,
    json={
        "provider": "auto",
        "query": "What changed in browser automation this week?",
        "max_results": 5,
    },
).json()

page = requests.post(
    "https://api.openwebsearch.ai/v1/scrape",
    headers=headers,
    json={
        "url": search["results"][0]["url"],
        "providers": ["exa", "apify", "tinyfish"],
    },
).json()

print(f"{page['provider']} read {page['url']} for ${page['usage']['cost']}")
print(page["results"][0]["content"] if page["results"] else None)
```

Agents can skip the code. The hosted MCP server at `https://api.openwebsearch.ai/mcp` exposes `web_search` and `web_scrape` on the same key.

```json
{
  "mcpServers": {
    "openwebsearch": {
      "url": "https://api.openwebsearch.ai/mcp",
      "headers": { "Authorization": "Bearer ows_..." }
    }
  }
}
```

`web_scrape` returns up to 20,000 characters of Markdown to protect the context window. Leave `providers` out and it uses a default chain of Exa, Perplexity and Valyu.

Scrape gives you the page as Markdown. When you need typed fields from that page, like a name, a current job and a follower count, hand the URL to [Interfaze](https://interfaze.ai/docs/web/web-scraping) with a schema instead.

## Billing and usage

Scrapes are billed per page at the rate of the provider that served them, from the same prepaid balance as search. The only platform fee is still 5% on credit purchases, with nothing added on top of a request.

Every response carries `usage.cost` in USD, and for a fallback chain that includes any earlier attempts that were billable. An empty result or a fetch that ends in a `404` can still be charged, so read `usage.cost` rather than estimating from the table.

## Scraped pages are never cached

The router doesn't cache scraped pages. Every request goes straight to the provider chain, and `max_age_seconds` only controls how old a provider's own stored copy can be.

Scrape queue messages keep the URL path and strip credentials, the query string and the fragment. Each provider still applies its own retention policy to the URL it receives, so check it before you send a private or signed link.

## Takeaway

- **One scraper:** set `provider` and send a URL, get Markdown back.
- **Hard pages:** pass an ordered `providers` list and the request falls through on blocks, timeouts and empty pages.
- **One config:** `render_js`, `effort` and `max_age_seconds` mean the same thing on every provider.
- **Native features:** reach them through `provider_options`.
- **Billing:** the same prepaid balance as search, with `usage.cost` on every response.

Search finds the page and scrape reads it, and now neither one depends on a single provider staying up or staying unblocked.

- [Get an API key](https://openwebsearch.ai)
- [Read the scraping docs](https://openwebsearch.ai/docs#web-scraping)
- New to OpenWebSearch? Start with the [search launch post](https://interfaze.ai/blog/introducing-openwebsearch)
- Need structured fields instead of Markdown? See [web scraping with Interfaze](https://interfaze.ai/docs/web/web-scraping)
- Join the [Discord](https://interfaze.ai/discord)
