Back to skills
SKILL.md
Krouter Web Fetch
BSecurityFetch URL → markdown / text / HTML via kRouter /v1/web/fetch using Firecrawl / Jina Reader / Tavily Extract / Exa Contents. Use when the user wants to scrape a webpage, extract URL content, read article, or convert a URL to markdown.
- 34 stars
- 0 votes
- 0 copies
- 2 views
- Added October 4, 2026
Works with
Security analysis
88/100- Exfiltrates credentials via HTTP — exact pattern from Snyk ToxicSkills study
npx -y skills add sifxprime/krouter --skill krouter-web-fetch --agent claude-codeAre you the author of Krouter Web Fetch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sifxprime-krouter-web-fetch)---
name: krouter-web-fetch
description: Fetch URL → markdown / text / HTML via kRouter /v1/web/fetch using Firecrawl / Jina Reader / Tavily Extract / Exa Contents. Use when the user wants to scrape a webpage, extract URL content, read article, or convert a URL to markdown.
---
# kRouter — Web Fetch
Requires `KROUTER_URL`, plus `KROUTER_KEY` unless kRouter runs on this machine outside Docker with **Require API key** off. See https://raw.githubusercontent.com/sifxprime/krouter/refs/heads/main/skills/krouter/SKILL.md for setup.
## Discover
```bash
curl $KROUTER_URL/v1/models/web | jq '.data[] | select(.kind=="webFetch") | .id'
# Per-provider params
curl "$KROUTER_URL/v1/models/info?id=firecrawl/fetch"
```
IDs end in `/fetch` (e.g. `firecrawl/fetch`). Send only the part before `/fetch` as `model` (`firecrawl`); the full id is rejected as `Unknown provider`. One exception: Jina Reader is listed as `jina/fetch`, but `jina` is the Jina embeddings provider, so send `jina-reader`. A combo such as `fetch-combo` chains providers with auto-fallback; send its name as is.
## Endpoint
`POST $KROUTER_URL/v1/web/fetch`
| Field | Required | Notes |
|---|---|---|
| `model` (or `provider`) | yes | `/v1/models/web` id without `/fetch` (e.g. `firecrawl`, `jina-reader`), or a combo name |
| `url` | yes | URL to extract |
| `format` | no | `markdown` (default) / `text` / `html`. Only `firecrawl` converts, and only to `markdown` or `html` (Firecrawl has no `text` format); the others return their native text and echo the format |
| `max_characters` | no | truncate output; `0` or omitted = no limit |
## Examples
### Jina Reader
```bash
curl -X POST $KROUTER_URL/v1/web/fetch \
-H "Authorization: Bearer $KROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"jina-reader","url":"https://krouter.kodelyth.com","format":"markdown"}'
```
### Exa
```bash
curl -X POST $KROUTER_URL/v1/web/fetch \
-H "Authorization: Bearer $KROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"exa","url":"https://example.com","format":"markdown","max_characters":0}'
```
### Firecrawl
```bash
curl -X POST $KROUTER_URL/v1/web/fetch \
-H "Authorization: Bearer $KROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"firecrawl","url":"https://example.com","format":"markdown","max_characters":0}'
```
### Tavily
```bash
curl -X POST $KROUTER_URL/v1/web/fetch \
-H "Authorization: Bearer $KROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"tavily","url":"https://example.com","format":"markdown","max_characters":0}'
```
JS:
```js
const r = await fetch(`${process.env.KROUTER_URL}/v1/web/fetch`, {
method: "POST",
headers: { "Authorization": `Bearer ${process.env.KROUTER_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ model: "fetch-combo", url: "https://example.com", format: "markdown", max_characters: 5000 }),
});
const page = await r.json(); // top-level object, no `data` wrapper
console.log(page.title, page.content.length);
```
## Response shape
```json
{
"provider": "jina-reader",
"url": "...",
"title": "...",
"content": { "format": "markdown", "text": "...", "length": 1234 },
"metadata": { "author": null, "published_at": null, "language": null },
"usage": { "fetch_cost_usd": 0 },
"metrics": { "response_time_ms": 850, "upstream_latency_ms": 700 }
}
```
## Provider quirks
| Provider | Auth | Best for |
|---|---|---|
| `firecrawl` | Bearer | JS-rendered pages, `format=markdown/html` |
| `jina-reader` | Bearer (optional) | Free tier (~1M chars/mo); fastest plain markdown |
| `tavily` | Bearer | Bulk extract; Tavily's `raw_content` becomes `content.text` |
| `exa` | `x-api-key` | Pre-indexed pages; fast text extraction |
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.