跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
搜索与研究

http_request

Make HTTP requests (GET, POST, PUT, DELETE, PATCH) to any API endpoint. Use when: the user asks to call an API, test an endpoint, fetch JSON/data from a URL, or interact with a REST API. NOT for: web scraping (use web_scraper), web search (use tavily_search), or file downloads (use curl/wget).

ericwang915 · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add ericwang915/PythonClaw --skill http_request

技能说明


name: http_request description: > Make HTTP requests (GET, POST, PUT, DELETE, PATCH) to any API endpoint. Use when: the user asks to call an API, test an endpoint, fetch JSON/data from a URL, or interact with a REST API. NOT for: web scraping (use web_scraper), web search (use tavily_search), or file downloads (use curl/wget). dependencies: requests metadata: emoji: "🌐"

HTTP Request

When to Use

  • Call REST APIs (GET, POST, PUT, DELETE, PATCH)
  • Test or probe API endpoints
  • Fetch JSON or data from a URL
  • Send request bodies and custom headers

When NOT to Use

  • Web search — use tavily_search (web_search tool)
  • Scraping page content — use web_scraper
  • Simple file downloads — use curl or wget
  • GitHub operations — use github skill

Setup

Install dependency: pip install requests

Usage/Commands

python {skill_path}/request.py URL [options]
OptionDescription
`--method GETPOST
--data '{"key": "value"}'JSON request body
--header "Name: Value"Custom header (repeatable)
--timeout NTimeout in seconds
`--format textjson

Notes

  • For APIs requiring auth, use --header "Authorization: Bearer <token>"
  • JSON body must be valid; escape quotes properly for shell
  • Prefer this for structured API calls; use web_scraper for HTML extraction