Try our new Claude Code Skill to automatically integrate Hyperspell into your project
import Hyperspell from 'hyperspell';
const client = new Hyperspell({
apiKey: 'My API Key',
});
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: 'My API Key',
});
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 <= 100Successful Response
collections, vault, web_crawler, notion, slack, google_calendar, reddit, box, google_drive, airtable, algolia, amplitude, asana, ashby, bamboohr, basecamp, bubbles, calendly, confluence, clickup, datadog, deel, discord, dropbox, exa, facebook, front, github, gitlab, google_docs, google_mail, google_sheet, hubspot, jira, linear, microsoft_teams, mixpanel, monday, outlook, perplexity, rippling, salesforce, segment, todoist, twitter, zoom pending, processing, completed, failed Was this page helpful?