Try our new Claude Code 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": "collections",
"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": "collections",
"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 <= 100Was this page helpful?