> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Spider Cloud

> Spider's crawl, scrape, links, search and screenshot API for AI agents and RAG.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/spidercloud.svg?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=069ae815975271fc899869ce5988e148)

[Web Catalog · Scraping](https://docs.webrouter.net/data-apis.md?category=scraping)

Needs&#x20;

`SPIDER_API_KEY`

Endpoints

6

Auth

Key in header

[Vendor docs](https://spider.cloud/docs/api)

&#x20;·&#x20;

[Pricing](https://spider.cloud/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `SPIDER_API_KEY` | required | a Spider API key (spider.cloud/api-keys) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Auth is 'Authorization: Bearer \<key>'. Without a key only /scrape answers; every other route returns 402.
* Pricing is credits: \$1 buys 10,000 credits; bandwidth and compute time are billed separately.
* Spider also has /unlimited/\* routes, /transform, /unblocker (deprecated) and /ai/\* routes, not in this entry.
* Large crawls can return many pages; set limit and prefer return\_format markdown.

## Endpoints

POST

Scrape one page

Fetch a single page with no link traversal.

[Open](#spidercloud-scrape-page)

POST

Crawl a site

Follow links from a start URL and return one object per page.

[Open](#spidercloud-crawl-site)

POST

Collect a site's links

Crawl like /crawl but return the URLs found on each page instead of the content.

[Open](#spidercloud-links-collect)

POST

Search the web

Ranked results for a query; optionally fetch each result's page content.

[Open](#spidercloud-search-query)

POST

Take a screenshot

Render a page in a browser and return the image as base64, or raw bytes with binary true.

[Open](#spidercloud-screenshot-page)

GET

Get the remaining credits

Credits left on the account.

[Open](#spidercloud-account-credits)

### Scrape one page

POST

`/scrape`

`spidercloud.scrape.page`

Fetch a single page with no link traversal.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>body</td><td>The page to fetch. Example `https://example.com`</td></tr>
    <tr><td>`return_format`</td><td>string</td><td>body</td><td>Output format: raw (default, unmodified HTML), markdown, commonmark, text, html2text, xml, bytes, screenshot or empty; an array returns several. Example `markdown`</td></tr>
    <tr><td>`request`</td><td>string</td><td>body</td><td>How to fetch: http (fastest, no JS), browser (renders), or smart (default, tries http then browser). One of `smart`, `http`, `browser`, `chrome`, `headless`</td></tr>

    <tr>
      <td>
        `stealth`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        For pages that refuse plain requests; costs more.
      </td>
    </tr>

    <tr>
      <td>
        `cookies`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Cookie header value for pages needing a session.
      </td>
    </tr>

    <tr>
      <td>
        `root_selector`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        CSS selector of the subtree to extract.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_selector`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        CSS selector of content to drop.
      </td>
    </tr>

    <tr>
      <td>
        `readability`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Strip boilerplate before converting.
      </td>
    </tr>

    <tr>
      <td>
        `country_code`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        ISO country code of the proxy exit, e.g. gb.
      </td>
    </tr>

    <tr>
      <td>
        `request_timeout`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Per-request timeout in seconds, 5-255.
      </td>
    </tr>

    <tr>
      <td>
        `metadata`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Add title, description and keywords to each page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://spider.cloud/docs/api#scrape) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-fetch), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-scrape), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-llm-context), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-fetch), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-product), [Context7](https://docs.webrouter.net/data-apis/context7.md#context7-page-fetch)

```python Python theme={null}
router.call_data_api("spidercloud.scrape.page", {'url': 'https://example.com', 'return_format': 'markdown'})
```

```text MCP theme={null}
call_data_api(endpoint="spidercloud.scrape.page", params={"url": "https://example.com", "return_format": "markdown"})
```

> [!NOTE]
>
> * A read over POST: it fetches a page and changes nothing in your account.
> * This is the only route that also works without a key (rate limited).

### Crawl a site

POST

`/crawl`

`spidercloud.crawl.site`

Follow links from a start URL and return one object per page.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>body</td><td>Start URL; several can be given separated by commas. Example `https://example.com`</td></tr>
    <tr><td>`return_format`</td><td>string</td><td>body</td><td>Output format: raw (default, unmodified HTML), markdown, commonmark, text, html2text, xml, bytes, screenshot or empty; an array returns several. Example `markdown`</td></tr>
    <tr><td>`request`</td><td>string</td><td>body</td><td>How to fetch: http (fastest, no JS), browser (renders), or smart (default, tries http then browser). One of `smart`, `http`, `browser`, `chrome`, `headless`</td></tr>

    <tr>
      <td>
        `stealth`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        For pages that refuse plain requests; costs more.
      </td>
    </tr>

    <tr>
      <td>
        `cookies`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Cookie header value for pages needing a session.
      </td>
    </tr>

    <tr>
      <td>
        `root_selector`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        CSS selector of the subtree to extract.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_selector`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        CSS selector of content to drop.
      </td>
    </tr>

    <tr>
      <td>
        `readability`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Strip boilerplate before converting.
      </td>
    </tr>

    <tr>
      <td>
        `country_code`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        ISO country code of the proxy exit, e.g. gb.
      </td>
    </tr>

    <tr>
      <td>
        `request_timeout`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Per-request timeout in seconds, 5-255.
      </td>
    </tr>

    <tr>
      <td>
        `metadata`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Add title, description and keywords to each page.
      </td>
    </tr>

    <tr><td>`limit` required</td><td>integer</td><td>body</td><td>Maximum pages per site; required, since unset or 0 crawls every page found, bounded only by your credits. Example `10`</td></tr>

    <tr>
      <td>
        `depth`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Maximum crawl depth; default 25, 0 removes the limit.
      </td>
    </tr>

    <tr>
      <td>
        `subdomains`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Follow links to subdomains.
      </td>
    </tr>

    <tr>
      <td>
        `sitemap`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Add sitemap pages to the crawl.
      </td>
    </tr>

    <tr>
      <td>
        `whitelist`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Only these paths, regex allowed.
      </td>
    </tr>

    <tr>
      <td>
        `blacklist`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Skip these paths, regex allowed.
      </td>
    </tr>

    <tr>
      <td>
        `respect_robots`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Follow robots.txt; default true.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://spider.cloud/docs/api#crawl) · Same job: [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-crawl), [Decodo](https://docs.webrouter.net/data-apis/decodo.md#decodo-crawl-start), [Firecrawl](https://docs.webrouter.net/data-apis/firecrawl.md#firecrawl-crawl-start), [Olostep](https://docs.webrouter.net/data-apis/olostep.md#olostep-crawls-create), [ScrapeGraphAI](https://docs.webrouter.net/data-apis/scrapegraphai.md#scrapegraphai-crawl-start), [Search1API](https://docs.webrouter.net/data-apis/search1api.md#search1api-web-deepcrawl)

```python Python theme={null}
router.call_data_api("spidercloud.crawl.site", {'url': 'https://example.com', 'return_format': 'markdown', 'limit': 10})
```

```text MCP theme={null}
call_data_api(endpoint="spidercloud.crawl.site", params={"url": "https://example.com", "return_format": "markdown", "limit": 10})
```

> [!NOTE]
>
> * A read over POST: it fetches pages and changes nothing in your account.
> * Always set limit: with no limit it crawls every page found, bounded only by your credits.
> * Billing is by credits (bandwidth plus compute time).

### Collect a site's links

POST

`/links`

`spidercloud.links.collect`

Crawl like /crawl but return the URLs found on each page instead of the content.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>body</td><td>Start URL. Example `https://example.com`</td></tr>
    <tr><td>`return_format`</td><td>string</td><td>body</td><td>Output format: raw (default, unmodified HTML), markdown, commonmark, text, html2text, xml, bytes, screenshot or empty; an array returns several. Example `markdown`</td></tr>
    <tr><td>`request`</td><td>string</td><td>body</td><td>How to fetch: http (fastest, no JS), browser (renders), or smart (default, tries http then browser). One of `smart`, `http`, `browser`, `chrome`, `headless`</td></tr>

    <tr>
      <td>
        `stealth`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        For pages that refuse plain requests; costs more.
      </td>
    </tr>

    <tr>
      <td>
        `cookies`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Cookie header value for pages needing a session.
      </td>
    </tr>

    <tr>
      <td>
        `root_selector`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        CSS selector of the subtree to extract.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_selector`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        CSS selector of content to drop.
      </td>
    </tr>

    <tr>
      <td>
        `readability`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Strip boilerplate before converting.
      </td>
    </tr>

    <tr>
      <td>
        `country_code`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        ISO country code of the proxy exit, e.g. gb.
      </td>
    </tr>

    <tr>
      <td>
        `request_timeout`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Per-request timeout in seconds, 5-255.
      </td>
    </tr>

    <tr>
      <td>
        `metadata`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Add title, description and keywords to each page.
      </td>
    </tr>

    <tr><td>`limit` required</td><td>integer</td><td>body</td><td>Maximum pages per site; required, since unset or 0 crawls every page found, bounded only by your credits. Example `10`</td></tr>

    <tr>
      <td>
        `depth`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Maximum crawl depth; default 25, 0 removes the limit.
      </td>
    </tr>

    <tr>
      <td>
        `subdomains`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Follow links to subdomains.
      </td>
    </tr>

    <tr>
      <td>
        `sitemap`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Add sitemap pages to the crawl.
      </td>
    </tr>

    <tr>
      <td>
        `whitelist`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Only these paths, regex allowed.
      </td>
    </tr>

    <tr>
      <td>
        `blacklist`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Skip these paths, regex allowed.
      </td>
    </tr>

    <tr>
      <td>
        `respect_robots`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Follow robots.txt; default true.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://spider.cloud/docs/api#links) · Same job: [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-map), [Decodo](https://docs.webrouter.net/data-apis/decodo.md#decodo-map), [Firecrawl](https://docs.webrouter.net/data-apis/firecrawl.md#firecrawl-map-urls), [Olostep](https://docs.webrouter.net/data-apis/olostep.md#olostep-maps-create), [Search1API](https://docs.webrouter.net/data-apis/search1api.md#search1api-web-sitemap), [Supadata](https://docs.webrouter.net/data-apis/supadata.md#supadata-web-map)

```python Python theme={null}
router.call_data_api("spidercloud.links.collect", {'url': 'https://example.com', 'return_format': 'markdown', 'limit': 10})
```

```text MCP theme={null}
call_data_api(endpoint="spidercloud.links.collect", params={"url": "https://example.com", "return_format": "markdown", "limit": 10})
```

> [!NOTE]
>
> * A read over POST: it fetches pages and changes nothing in your account.

### Search the web

POST

`/search`

`spidercloud.search.query`

Ranked results for a query; optionally fetch each result's page content.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`search` required</td><td>string</td><td>body</td><td>The query (the field is named search, not query). Example `rust web crawler`</td></tr>

    <tr>
      <td>
        `num`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Most results to return.
      </td>
    </tr>

    <tr>
      <td>
        `search_limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Most results to fetch or crawl; 0 for all.
      </td>
    </tr>

    <tr>
      <td>
        `fetch_page_content`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Fetch each result's content; default false.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Result page number.
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Two-letter country code, e.g. us.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Two-letter language code, e.g. en.
      </td>
    </tr>

    <tr>
      <td>
        `location`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Origin of the search, e.g. United Kingdom.
      </td>
    </tr>

    <tr>
      <td>
        `tbs`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Time range: qdr:h, qdr:d, qdr:w, qdr:m or qdr:y.
      </td>
    </tr>

    <tr>
      <td>
        `quick_search`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Favor speed over result count; default true.
      </td>
    </tr>

    <tr><td>`return_format`</td><td>string</td><td>body</td><td>Output format: raw (default, unmodified HTML), markdown, commonmark, text, html2text, xml, bytes, screenshot or empty; an array returns several. Example `markdown`</td></tr>
  </tbody>
</table>

[Vendor docs](https://spider.cloud/docs/api#search) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-search), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-store-search), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-search), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-videos-search), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-web-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-search)

```python Python theme={null}
router.call_data_api("spidercloud.search.query", {'search': 'rust web crawler', 'return_format': 'markdown'})
```

```text MCP theme={null}
call_data_api(endpoint="spidercloud.search.query", params={"search": "rust web crawler", "return_format": "markdown"})
```

> [!NOTE]
>
> * A read over POST: it runs a search and changes nothing in your account.
> * The body is flat: search fields sit beside the usual crawl parameters.

### Take a screenshot

POST

`/screenshot`

`spidercloud.screenshot.page`

Render a page in a browser and return the image as base64, or raw bytes with binary true.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>body</td><td>The page to capture. Example `https://example.com`</td></tr>

    <tr>
      <td>
        `full_page`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Capture the full page.
      </td>
    </tr>

    <tr>
      <td>
        `binary`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Return raw image bytes instead of base64 in content.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://spider.cloud/docs/api#screenshot) · Same job: [Litescrape](https://docs.webrouter.net/data-apis/litescrape.md#litescrape-web-screenshot), [ScreenshotOne](https://docs.webrouter.net/data-apis/screenshotone.md#screenshotone-take), [Search1API](https://docs.webrouter.net/data-apis/search1api.md#search1api-web-screenshot)

```python Python theme={null}
router.call_data_api("spidercloud.screenshot.page", {'url': 'https://example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="spidercloud.screenshot.page", params={"url": "https://example.com"})
```

> [!NOTE]
>
> * A read over POST: it renders a page and changes nothing in your account.

### Get the remaining credits

GET

`/data/credits`

`spidercloud.account.credits`

Credits left on the account.

Input

No inputs.

[Vendor docs](https://spider.cloud/docs/api#credits)

```python Python theme={null}
router.call_data_api("spidercloud.account.credits")
```

```text MCP theme={null}
call_data_api(endpoint="spidercloud.account.credits")
```

> [!NOTE]
>
> * There is no GET /credits; the path is /data/credits.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.