API Endpoint Tester — Test Any REST API from the Command Line
Test any REST API endpoint in one command. No Postman, no curl memorization, no setup.
WHAT IT DOES
• Test any HTTP method — GET, POST, PUT, PATCH, DELETE
• JSON body support — send payloads directly from the command line
• Response inspection — status code, timing, formatted JSON output
• Error handling — clear messages with HTTP status codes
• Zero dependencies — Pure Python stdlib (urllib) only
WHAT YOU GET
• apitest.py — The tester script (Python 3, zero dependencies)
HOW TO USE
python3 apitest.py https://jsonplaceholder.typicode.com/posts/1
python3 apitest.py https://api.example.com/create --method POST --body '{"key":"val"}'
REQUIREMENTS: Python 3.7+. No pip install needed.
PERFECT FOR: Developers debugging APIs, QA engineers running smoke tests, DevOps checking endpoint health, anyone tired of opening Postman for a quick test.
KEYWORDS: API tester, REST client, command-line API tool, HTTP debugging, endpoint testing, Postman alternative