HTTP requests (GET/POST/PUT/DELETE) to URLs. Use for API calls, endpoint testing, or basic scraping.
npx playbooks add skill ignaciosua/copilot-skills-repo --skill web-fetch
Makes HTTP requests and returns response content.
python ~/.copilot/skills/web-fetch/web_fetch.py <url> [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 |
JSON with:
success: true/falsestatus_code: HTTP status codeheaders: Response headerscontent: Response body (parsed JSON or text)content_type: "json" or "text"error: Error message if failedpython ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/zen
python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/user \
-H "Authorization: token YOUR_TOKEN"
python ~/.copilot/skills/web-fetch/web_fetch.py https://httpbin.org/post \
--method POST \
--data '{"name": "test", "value": 123}'
python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/repos/python/cpython --prettyWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.