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

# Web Crawler

> Get answers from websites

# Overview

The Web Crawler integration allows you to extract information from websites. While the integration offers both Live Search (Live search uses AI to search your integrations native APIs in real-time. This is slower than indexed search and often not as accurate, but does not store any data on Hyperspell's servers and is always up to date.) and Indexed  Search (Indexed search uses advanced semantic, hybrid, and graph search methods to find the most relevant results. It's very fast and accurate, but requires upfront indexing of data.), we highly recommend indexing a website first before you query it: larger websites can take several minutes to index, and the live search will be limited to the front page.

## Authentication

The Web Crawler integration does not require any authentication and is available to all users.

## Search Options

Following options are available for the `options` parameter of `web_crawler`:

**url** `string` *required*

The URL of the website to crawl. Trailing slashes are ignored.

**max\_depth** `number` (default: 0)

The maximum depth of the website to crawl. 0 means only the root page will be queried, 1 means the root page and all pages linked from it will be queried, and so on.

## Resources

The Web Crawler integration returns `Website` resources:

**Website Schema**

**resource\_id** `string` *required*

The unique identifier of the website, typically the URL.

**source** `string` *required*

The provider that fetched the website, which is `web_crawler` if this integration is used to query or index it.

**url** `string` *required*

The URL of the website

**title** `string`

The title of the website, extracted from the HTML title tag.

**description** `string`

The description of the website, extracted from the HTML meta description tag or Open Graph descriptions.

**image\_url** `string`

The image URL of the website, extracted from the HTML meta description tag or Open Graph images.

**language** `string`

The language of the website, extracted from the HTML meta language tag.

**favicon** `string`

The favicon URL of the website, extracted from the HTML head.

**summary** `text`

A summary of the document that can be fed directly into LLMs. When retrieved from the `/query` endpoint, this may summarize only the sections of the document returned as highlights (i.e., parts relevant to your query). Otherwise, it will summarize the entire document.

**data** `elements[]`

A structured representation of the website's content. This field is only returned if the resource is returned from the `/documents/get` endpoint. If the website is returned from the `/query` endpoint, this field will be empty and the `highlights` field will contain the relevant sections of the website.

**highlights** `highlight[]`

A list of highlights from the website relevant to the query. This field is only returned if the resource is returned from the `/query` endpoint.

## Additional Endpoints

### Index a website before querying it

`GET /integrations/web_crawler/index`

Call this endpoint to index a website for indexed search. The website will be crawled recursively and added to the search index.

**parameters**

**url** `string` *required*

**max\_depth** `number` (default: 2)

The maximum depth of the website to crawl. 0 means only the root page will be queried, 1 means the root page and all pages linked from it will be queried, and so on.

**max\_pages** `number` (default: 50)

The maximum number of pages to crawl.


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