Self-host httpbin
v0.6.1HTTP request echo service for testing API clients
docker run -p 80:80 kennethreitz/httpbin- Stars
- 13 637
- Port
- 80 (HTTP service inside the container (gunicorn binds 0.0.0.0:80))
kennethreitz/httpbinWhat is httpbin?
httpbin is a small Python + Flask service that echoes HTTP requests back to the caller, which makes it handy for exercising HTTP clients and debugging API integrations. Point a request at it and the response describes what was received; it can also reply with a status code you choose, issue redirects, set and clear cookies, return images and different data formats, generate random or dynamic payloads, and expose endpoints for exercising authentication schemes. The public site doubles as an interactive endpoint reference for the whole surface. Self-hosting is one command: pull kennethreitz/httpbin and run the container with a port mapped to 80, where it starts gunicorn serving the Flask app (the container image declares version 0.9.2). The code is ISC-licensed and lives on GitHub under Postman Labs, but its newest git tag is from 2017 and the repository saw no pushes after May 2024, which is why the packaging ecosystem has picked up a separate fork.
httpbin alternatives
WebHook TesterSelf-hosted, open-source tool for testing and debugging webhooks with customizable responses, WebSocket notifications, and multiple storage backends.CompareWebHook Tester with httpbin
WebhixWebhix is a self-hosted, open-source webhook inspector capturing HTTP requests locally with live UI, replay, custom responses, and CLI forwarding in a single Go binary.CompareWebhix with httpbin
Insomnia MockbinSource-visible HTTP mock server that powers Insomnia's API mocks; run it self-hosted with Docker, Compose or Kubernetes plus Redis for HAR-based mock responses.CompareInsomnia Mockbin with httpbin
Request BasketsSelf-hosted HTTP requests collector for testing webhooks, notifications, and REST clients. Provides RESTful API and simple web UI, replacing RequestBin service.CompareRequest Baskets with httpbin
httplaceholderHttPlaceholder is a self-hosted, open-source HTTP stub server for mocking web services with YAML stubs, REST API, web UI, and multiple storage backends.Comparehttplaceholder with httpbin
docker-hello-worldA minimal Docker image that serves HTTP responses on port 8000, designed for fast testing feedback loops. Self-hosted via Docker, open-source, under 2 MB.Comparedocker-hello-world with httpbin
JS BinJS Bin is an open-source, self-hosted playground for collaborative JavaScript, HTML and CSS debugging with live preview, CodeCast and remote rendering, run via npm.CompareJS Bin with httpbin
bytebinSelf-hosted pastebin for any binary data with HTTP API, web UI, in-memory caching, and gzip compression. Runs as a standalone Java app via Docker.Comparebytebin with httpbin
Should you self-host httpbin?
httpbin scores 65/100 on selfhost.directory (how scoring works) and ranks #4 of 10 in Testing. It has 13 637 GitHub stars, +2 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is ISC-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is Locust (78/100, 28 270 stars). It scores higher overall, so compare the two before you pick. See httpbin vs Locust side by side.
Features
- Auth scheme endpoints
- Catch-all anything endpoint
- Cookie handling
- Dynamic data generation
- HTML form test page
- HTTP verb testing
- Image responses
- Redirect responses
- Request Inspection
- Response format options
- Response inspection
- Status code generation
httpbin README
A Kenneth Reitz Project.
This project does not publish releases or Docker images. To run your own copy, build it from this repository:
More in Testing
InbucketSelf-hosted disposable webmail server for testing email functionality, with built-in SMTP, POP3, and REST interfaces — no external database required.
Insomnia MockbinSource-visible HTTP mock server that powers Insomnia's API mocks; run it self-hosted with Docker, Compose or Kubernetes plus Redis for HAR-based mock responses.
KeployOpen-source record-and-replay testing tool that turns live API, database and queue traffic into runnable tests and mocks; self-hosted via a CLI agent.
krakenKraken CI is a self-hosted, open-source CI/CD system for massive-scale testing with hardware testing support, cloud autoscaling, and detailed test analytics.
LocustOpen-source, self-hosted load-testing tool: scenarios are plain Python, driven from a web UI on port 8089, headless for CI, or across distributed master/worker nodes.
mailcueMailCue is a self-hosted, open-source email testing server with Postfix, Dovecot, DKIM, DMARC, SpamAssassin, REST API, and React UI in one Docker container.
MailHogOpen-source SMTP testing tool: capture outgoing mail in a web UI or JSON API, release it to a real server. Runs self-hosted as a single binary or Docker image.
MailpitAn open-source SMTP mail catcher for developers: a self-hosted single binary or Docker image with a web UI, REST API, POP3 server and HTML, link and spam checks.
MQTTX WebOpen-source MQTT 5.0 client toolbox: desktop app, CLI and a Docker-deployable web client for pub/sub testing, scripting, simulation and broker benchmarks.
pixeleyePixeleye is a self-hosted, open-source visual testing platform for reviewing UI changes across browsers and devices with testing framework integrations.
Request BasketsSelf-hosted HTTP requests collector for testing webhooks, notifications, and REST clients. Provides RESTful API and simple web UI, replacing RequestBin service.
RocketshipRocketship is an open-source, self-hosted QA testing framework for coding agents to write and run end-to-end web tests using declarative YAML and plugins.
0 comments