***

title: SpiderSkill
slug: /reference/typescript/agents/skills/spider
description: Scrape webpage content using the Spider API.
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[add-skill]: /docs/server-sdks/reference/typescript/agents/agent-base/add-skill

Scrape webpage content using the Spider API. Extracts text or markdown from any
public URL, with optional CSS selector filtering.

**Class:** `SpiderSkill`

**Tools:** `scrape_url`

**Env vars:** `SPIDER_API_KEY`

<ParamField path="api_key" type="string" required={true} toc={true}>
  Spider API key. Falls back to the `SPIDER_API_KEY` environment variable.
</ParamField>

<ParamField path="max_content_length" type="number" default="5000" toc={true}>
  Maximum length of returned content in characters.
</ParamField>

```typescript {6-8}
import { AgentBase, SpiderSkill } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
agent.setPromptText('You are a helpful assistant.');

await agent.addSkill(new SpiderSkill({
  max_content_length: 10000,
}));

agent.run();
```