Interfaze

logo

we're hiring

pricing

help

docs

blog

sign in

Introducing the OpenWebSearch Scraping Router

OpenWebSearch 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, 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. 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.

TargetAvg. success rate at 2 req/sAPIs with over 80% failure
Shein21.88%5 of 11
G236.63%5 of 11
Hyatt43.75%5 of 11
Amazon93.30%0 of 11
Zillow97.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 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
  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

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);

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.

{
  "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.

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

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:

{
  "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.

ParameterDefaultWhat it does
only_main_contenttrueStrips navigation, headers and footers
include_linkstrueKeeps inline links in the Markdown
render_jsfalseExecutes page JavaScript before reading
effortstandardadvanced selects a provider's higher-priced extraction tier
max_age_seconds172800Maximum age of a provider's stored copy. 0 asks for a fresh fetch
timeout_seconds60Deadline for the whole request, fallbacks included
max_charsUnlimitedCaps the page characters returned

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

{
  "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.

ProviderSlugrender_jseffortmax_age_secondsPrice per 1,000 pages
Exaexaemulatedone_tierunsupported$1
Tavilytavilynativenativeunsupported$1.60 to $3.20
You.comyouemulatedone_tieremulated$0.90
Perplexityperplexityemulatedone_tiernative$1
Parallelparallelemulatedone_tieremulated$1
Apifyapifynativeone_tiernative$1.50
Valyuvalyunativeone_tiernative$1.25
Octenoctenemulatednativeemulated$1 to $2.50
Linkuplinkupnativenativeunsupported$1 to $10
Context.devcontextdevemulatedone_tiernative$2 to $4
TinyFishtinyfishemulatedone_tierunsupported$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

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);

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.

{
  "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 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.

Interfaze

logo

Product

Playground

OCR

Models

Leaderboards

Pricing

OpenWebSearch

DefaultModel