api-tester-cn
version: "3.0.2"
by bytesagain · published 2026-03-22
$ claw add gh:bytesagain/bytesagain-api-tester-cn---
version: "3.0.2"
name: api-tester-cn
description: "Test and debug API endpoints from terminal. Use when checking endpoint status, validating JSON responses, comparing API versions, or running best-practice lints."
author: BytesAgain
homepage: https://bytesagain.com
source: https://github.com/bytesagain/ai-skills
---
# api-tester-cn
API testing and debugging toolkit — check endpoint status codes, validate JSON responses, lint for best practices (HTTPS, CORS, caching), compare two API responses, manage request templates, and export test history.
Commands
`check`
Test an API endpoint — shows HTTP status code, response time, content type, and server header.
scripts/script.sh check "https://api.github.com"`validate`
Fetch a URL and validate the JSON response. Shows structure info (keys, types, array lengths).
scripts/script.sh validate "https://jsonplaceholder.typicode.com/posts/1"`lint`
Check an API endpoint for best practices — HTTPS, CORS headers, content-type, rate limiting, and caching.
scripts/script.sh lint "https://api.example.com/v1/users"`diff`
Compare JSON responses from two API endpoints side by side.
scripts/script.sh diff "https://api.v1.example.com/data" "https://api.v2.example.com/data"`format`
Pretty-print JSON from a file or stdin.
scripts/script.sh format response.json
cat data.json | scripts/script.sh format`convert`
Convert between JSON and CSV formats.
scripts/script.sh convert json2csv data.json
scripts/script.sh convert csv2json data.csv`template`
Manage reusable request templates — save, list, and run API calls.
scripts/script.sh template list
scripts/script.sh template save "github-user" GET "https://api.github.com/users/octocat"
scripts/script.sh template run "github-user"`report`
Generate a summary report of all tests run — counts by type, recent activity.
scripts/script.sh report`recent`
Show the most recent test entries from history.
scripts/script.sh recent 20`search`
Search test history by URL or keyword.
scripts/script.sh search "github"`stats`
Show usage statistics — total requests, template count, date range.
scripts/script.sh stats`export`
Export test history in json, csv, or txt format.
scripts/script.sh export json`status`
Show tool status — version, data directory, entry count.
scripts/script.sh status`help`
scripts/script.sh help`version`
scripts/script.sh versionExamples
# Quick API health check
scripts/script.sh check "https://api.github.com"
scripts/script.sh validate "https://jsonplaceholder.typicode.com/posts"
scripts/script.sh lint "https://api.github.com"
# Compare API versions
scripts/script.sh diff "https://api.v1.example.com/data" "https://api.v2.example.com/data"
# Template workflow
scripts/script.sh template save "posts" GET "https://jsonplaceholder.typicode.com/posts"
scripts/script.sh template run "posts"Configuration
| Variable | Required | Description |
|----------|----------|-------------|
| `API_TESTER_CN_DIR` | No | Data directory (default: `~/.api-tester-cn/`) |
Data Storage
All data saved in `~/.api-tester-cn/`:
Requirements
---
*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...