← 返回
开发者工具 中文

API Endpoint Tester

CLI tool to test REST API endpoints with various HTTP methods, headers, and payloads.
支持多种HTTP方法、请求头和载荷的REST API端点测试CLI工具。
derick001
开发者工具 clawhub v1.0.1 2 版本 99872.9 Key: 无需
★ 1
Stars
📥 766
下载
💾 9
安装
2
版本
#latest

概述

API Endpoint Tester

What This Does

A simple CLI tool to send HTTP requests to REST API endpoints and validate responses. Supports GET, POST, PUT, DELETE, PATCH methods with custom headers and request bodies (JSON or form data).

When To Use

  • You need to test API endpoints manually or in scripts
  • You want to validate HTTP status codes and response formats
  • You're debugging API integrations and need quick requests
  • You need to check if an endpoint is reachable and responding correctly

Usage

Basic GET request:

python3 scripts/main.py run --url "https://api.example.com/users" --method GET

POST with JSON body:

python3 scripts/main.py run --url "https://api.example.com/users" --method POST --body '{"name": "John", "email": "john@example.com"}'

With custom headers:

python3 scripts/main.py run --url "https://api.example.com/users" --method GET --headers '{"Authorization": "Bearer token123"}'

Examples

Example 1: Simple GET request

python3 scripts/main.py run --url "https://jsonplaceholder.typicode.com/posts/1" --method GET

Output:

{
  "status": "success",
  "status_code": 200,
  "headers": {
    "content-type": "application/json; charset=utf-8"
  },
  "body": {
    "userId": 1,
    "id": 1,
    "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
    "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
  },
  "response_time_ms": 245
}

Example 2: POST with validation

python3 scripts/main.py run --url "https://jsonplaceholder.typicode.com/posts" --method POST --body '{"title": "foo", "body": "bar", "userId": 1}' --expected-status 201

Requirements

  • Python 3.x
  • requests library (install via pip if not available)

Limitations

  • This is a CLI tool, not an auto-integration plugin
  • Does not support WebSocket or streaming endpoints
  • Limited to HTTP/HTTPS protocols (no gRPC, GraphQL, etc.)
  • No built-in authentication beyond headers
  • Does not save test suites or history (single request at a time)
  • Timeouts default to 10 seconds

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-03-29 20:25 安全 安全
  • v1.0.0
    2026-03-07 01:58

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,957
security-compliance

HTTP Request Builder

derick001
从命令行界面构建、测试和保存HTTP请求,支持自定义请求头、认证、请求体、Cookie、模板、交互模式及请求历史记录。
★ 0 📥 866
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,588