# Web Fetch

> HTTP requests (GET/POST/PUT/DELETE) to URLs. Use for API calls, endpoint testing, or basic scraping. Use when this capability is needed.

- Skill: `tomevault-io/web-fetch-5` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/web-fetch-5`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/web-fetch-5/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/web-fetch-5

---


# Web Fetch

Makes HTTP requests and returns response content.

## Usage

```bash
python ~/.copilot/skills/web-fetch/web_fetch.py <url> [options]
```

## Options

| Option | Description | Default |
|--------|-------------|---------|
| `--method` | HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD | GET |
| `-H` | Add header (repeatable) | - |
| `--data` | JSON body for POST/PUT | - |
| `--timeout` | Request timeout in seconds | 30 |
| `--pretty` | Format JSON output nicely | false |

## Output

JSON with:
- `success`: true/false
- `status_code`: HTTP status code
- `headers`: Response headers
- `content`: Response body (parsed JSON or text)
- `content_type`: "json" or "text"
- `error`: Error message if failed

## Examples

### Simple GET
```bash
python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/zen
```

### GET with Headers
```bash
python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/user \
  -H "Authorization: token YOUR_TOKEN"
```

### POST with JSON Data
```bash
python ~/.copilot/skills/web-fetch/web_fetch.py https://httpbin.org/post \
  --method POST \
  --data '{"name": "test", "value": 123}'
```

### Pretty Output
```bash
python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/repos/python/cpython --pretty
```

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/ignaciosua) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-16 -->

