Xpersona
A

API Tester Pro

CLAWHUB · Unverified

API测试 - 构建/发送HTTP请求,验证响应状态码/�?体,性能基准(延迟/吞吐�?,支持REST和GraphQL Skill: API Tester Pro Owner: 534422530 Summary: API测试 - 构建/发送HTTP请求,验证响应状态码/�?体,性能基准(延迟/吞吐�?,支持REST和GraphQL Tags: api:2.0.0, development:1.0.0, http:2.0.0, latest:2.0.0, pro:2.0.0, rest:2.0.0, testing:2.0.0 Version history: v2.0.0 | 2026-05-29T23:31:22.710Z | auto Version 2.0.0 - Added hub.json to support skill hub integration. - Updated SKILL.md: new "badge: premium" field and minor edits. - Incremented version to 2

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s170k9770tgh0506hw0dwtb6pd83kwyq:laosi-api-tester
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-534422530-laosi-api-tester/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

22,404 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
badge: premium
name: api-tester
version: 2.0.0
description: API测试 - 构建/发送HTTP请求,验证响应状态码/�?体,性能基准(延迟/吞吐�?,支持REST和GraphQL
tags: [api, testing, http, rest, graphql, development]
author: laosi
source: original
---

# API Tester - API接口测试

> 激活词: 测试API / api test / 接口测试

## 功能

- 发�?GET/POST/PUT/DELETE 请求
- 自定义请求头、Body (JSON/Form/Text)
- 响应状态码、头、体验证
- GraphQL 查询支持
- 延迟测量和性能基准
- 测试结果持久�?
## Python 实现

```python
import json, time, urllib.request, urllib.error
from datetime import datetime
from typing import Dict, Any, Optional, List
from dataclasses import dataclass, field, asdict

@dataclass
class APIRequest:
    method: str = "GET"
    url: str = ""
    headers: Dict[str, str] = field(default_factory=dict)
    body: Optional[str] = None
    content_type: str = "application/json"
    timeout: int = 10
    
    def to_urllib_request(self) -> urllib.request.Request:
        """转换为urllib请求对象"""
        data = None
        if self.body and self.method in ("POST", "PUT", "PATCH"):
            data = self.body.encode("utf-8") if isinstance(self.body, str) else self.body
            if "Content-Type" not in self.headers:
                self.headers["Content-Type"] = self.content_type
        
        req = urllib.request.Request(
            self.url,
            data=data,
            headers=self.headers,
            method=self.method
        )
        return req

@dataclass
class APIResponse:
    status: int = 0
    headers: Dict[str, str] = field(default_factory=dict)
    body: str = ""
    body_json: Optional[Dict] = None
    latency_ms: float = 0.0
    error: Optional[str] = None

class APITester:
    def __init__(self):
        self.history: List[Dict] = []
        self.history_file = os.path.join(
            os.path.dirname(__file__), "api_tests.json"
        )
        os.makedirs(os.path.dirname(self.history_file), exist_ok=True)
    
    def send(self, request: APIRequest) -> APIResponse:
        """发送单个API请求"""
        resp = APIResponse()
        start = time.time()
        
        try:
            req = request.to_urllib_request()
            with urllib.request.urlopen(req, timeout=request.timeout) as conn:
                resp.status = conn.status
                resp.headers = dict(conn.headers)
                resp.body = conn.read().decode("utf-8", errors="replace")
                try:
                    resp.body_json = json.loads(resp.body)
                except json.JSONDecodeError:
                    pass
        except urllib.error.HTTPError as e:
            resp.status = e.code
            resp.headers = dict(e.headers)
            resp.body = e.read().decode("utf-8", errors="replace")
            resp.error = f"HTTP {e.code}: {e.reason}"
        except urllib.error.URLError as e:
            resp.error = f"URL Error: {e.reason}"
        except Exception as e:
            resp.error = str(e)
        
        resp.latency_ms = round((time.time() - start) * 1000, 1)
        
        # 保存历史
        entry = {
            "meth

_meta.json

{
  "ownerId": "kn71pk44ca87scz3pstt90r66n80xhaa",
  "slug": "laosi-api-tester",
  "version": "2.0.0",
  "publishedAt": 1780097482710
}

skill-card.md

## Description:

API Tester Pro helps agents construct and send HTTP, REST, and GraphQL requests, validate status codes, headers, response bodies, and latency, and summarize benchmark results.

This skill is ready for commercial/non-commercial use.

## Publisher:

[534422530](https://clawhub.ai/user/534422530)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to exercise APIs after deployment, generate request examples, check service health, validate API contracts, and compare basic latency measurements.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can send user-directed HTTP requests from the agent environment to arbitrary URLs, including sensitive internal or cloud-metadata addresses.

Mitigation: Use it only with trusted endpoints and apply host or network controls that block internal, loopback, link-local, and cloud-metadata ranges when appropriate.

Risk: The implementation saves tested URLs and request history to api_tests.json, which may expose sensitive endpoints or query parameters.

Mitigation: Avoid placing secrets in URLs, prefer protected headers for credentials, and remove or protect api_tests.json after testing sensitive systems.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/534422530/skills/laosi-api-tester)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown with Python code blocks, request examples, validation rules, and structured result summaries]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [The bundled implementation may create api_tests.json containing tested URLs, status values, latency, errors, and timestamps.]

## Skill Version(s):

2.0.0 (source: server release metadata and skill frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

hub.json

{
    "description":  "Premium version with full implementation, examples, and enterprise support",
    "minOpenClawVersion":  "1.2.0",
    "version":  "2.0.0",
    "tags":  [
                 "api",
                 "testing",
                 "http",
                 "rest",
                 "pro"
             ],
    "author":  "laosi",
    "name":  "api-tester",
    "pricing":  {
                    "price":  1900,
                    "model":  "one-time"
                },
    "license":  "MIT",
    "displayName":  "API Tester Pro"
}

Sponsored

Ads related to API Tester Pro and adjacent AI workflows.