🧪 Web Fetch

HTTP requests (GET/POST/PUT/DELETE) to URLs. Use for API calls, endpoint testing, or basic scraping.

QUICK INSTALL
npx playbooks add skill ignaciosua/copilot-skills-repo --skill web-fetch

Web Fetch instructions

Web Fetch

Makes HTTP requests and returns response content.

Usage

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

python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/zen

GET with Headers

python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/user \
  -H "Authorization: token YOUR_TOKEN"

POST with JSON Data

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

Pretty Output

python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/repos/python/cpython --pretty

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.