---
name: "xpay-ddg-search-fetch-url"
description: "Fetch and extract the main content from any URL, with customizable extraction options for text, links, and images"
version: "1.0.0"
price: "$0.01/call"
provider: "DuckDuckGo Search"
---

# Fetch Url

Fetch and extract the main content from any URL, with customizable extraction options for text, links, and images

**Provider:** DuckDuckGo Search
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to fetch and extract the main content from any url, with customizable extraction options for text, links, and images. This is part of the DuckDuckGo Search provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 3+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("ddg-search/fetch-url")`
2. **`xpay_run`** — Execute: `xpay_run("ddg-search/fetch-url", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `includeLinks` | boolean | No | Whether to include link text in the extracted content (default: true) |
| `includeImages` | boolean | No | Whether to include image alt text in the extracted content (default: true) |
| `excludeTags` | array | No | HTML tags to exclude from extraction (default: script, style, etc.) |
| `url` | string | Yes | The URL to fetch content from (must be a valid HTTP/HTTPS URL) |
| `maxLength` | integer | No | Maximum length of content to return in characters (default: 10000) |
| `extractMainContent` | boolean | No | Whether to attempt to extract main content only, filtering out navigation and ads (default: true) |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [DuckDuckGo Search (all tools)](https://xpay.tools/skills/ddg-search/SKILL.md) — 4 tools
- [Web Search](https://xpay.tools/skills/ddg-search/web-search/SKILL.md) — $0.01/call
- [Url Metadata](https://xpay.tools/skills/ddg-search/url-metadata/SKILL.md) — $0.01/call
- [Felo Search](https://xpay.tools/skills/ddg-search/felo-search/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/ddg-search/fetch-url/
- Provider: https://xpay.tools/ddg-search/
- All tools: https://xpay.tools/explore
