Try our new Setup Skill to automatically integrate Hyperspell into your project
import Hyperspell from 'hyperspell';
const client = new Hyperspell({
apiKey: process.env['HYPERSPELL_API_KEY'], // This is the default and can be omitted
});
const response = await client.integrations.webCrawler.index({ url: 'url' });
console.log(response.resource_id);{
"source": "reddit",
"resource_id": "<string>",
"status": "pending"
}Recursively crawl a website to make it available for indexed search.
import Hyperspell from 'hyperspell';
const client = new Hyperspell({
apiKey: process.env['HYPERSPELL_API_KEY'], // This is the default and can be omitted
});
const response = await client.integrations.webCrawler.index({ url: 'url' });
console.log(response.resource_id);{
"source": "reddit",
"resource_id": "<string>",
"status": "pending"
}API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.
The base URL of the website to crawl
Maximum depth of links to follow during crawling
0 <= x <= 5Maximum number of pages to crawl in total
1 <= x <= 100Successful Response
reddit, notion, slack, google_calendar, google_mail, box, dropbox, google_drive, github, vault, web_crawler, trace, microsoft_teams pending, processing, completed, failed, pending_review, skipped Was this page helpful?