API-Mocked
API-Mocked is a free, open-source, self-hosted server for mocking APIs and serving known content, usually static.
What API-Mocked is
API-Mocked is a free, open-source, self-hosted server for mocking APIs and serving known content, usually static. It handles HTTP, HTTPS, and WebSocket traffic, matching requests by path. Configuration is written in HCL, and the project compiles to a single binary that can run directly or with a configuration file. Multiple servers can run at once, including HTTP/2-only servers. Authentication options include JWT and BasicAuth, and CORS headers are supported. Responses can be delayed, repeated, or sent on a timer, while response values can come from headers, query paths, and JWTs. WebSocket connections use Socket.IO, with a broadcast example in the README. The project also says the server sends an HPKP header. API-Mocked is licensed under the MIT License. Its scope centers on running your own configurable mock server rather than using a hosted API service, catalog, or lifecycle platform. This makes its deployment model and HCL configuration central considerations for setup.
Good
- Free and MIT-licensed
- Supports HTTP, HTTPS, and WebSockets
- Runs as a single binary
- Allows delayed and repeated responses
- Supports JWT and BasicAuth
Watch out
- Self-hosted deployment is required
- Configuration uses HCL
- Responses are usually static by design
- WebSockets use Socket.IO
Who it suits
It suits developers and teams who want to run their own configurable mock server. It is relevant when tests or integrations need HTTP, HTTPS, or WebSocket responses with authentication and dynamic values.
Verdict
API-Mocked offers a focused self-hosted approach to configurable API responses across three protocols. Its single-binary deployment and dynamic response controls suit teams comfortable managing their own mock server.
The facts
Each one read from API-Mocked's own pages, with the date it was checked.
What it does
- Authentication
- It supports JWT and BasicAuth authentication.checked 7 Oct 2026
- Configuration
- It uses HCL configuration files, and the project says it compiles to a single binary.checked 7 Oct 2026
- CORS
- It can use CORS headers.checked 7 Oct 2026
- Dynamic values
- Responses can use values from headers, query paths, and JWTs.checked 4 Oct 2026
- License
- The repository identifies the project as MIT licensed.checked 7 Oct 2026
- Protocols
- It can mock HTTP, HTTPS and WebSockets.checked 7 Oct 2026
- Purpose
- API-Mocked is a stand-alone server for mocking APIs and serving known, usually static, content.checked 7 Oct 2026
- Request data
- Responses can use values from headers, query paths and JWTs.checked 7 Oct 2026
- Response behavior
- It supports delayed responses, multiple responses, and responses sent on a timer.checked 4 Oct 2026
- Responses
- It can return multiple responses, delay responses, and send multiple responses on a timer.checked 7 Oct 2026
- Security details
- The README lists JWT and BasicAuth support and says the server sends back an HPKP header.checked 4 Oct 2026
- Server options
- It can start multiple servers at once and supports HTTP/2-only servers.checked 7 Oct 2026
- Single binary
- The project says it compiles to a single binary that can be started directly or with a config file.checked 4 Oct 2026
- WebSocket integration
- WebSocket connections are supported via Socket.IO.checked 7 Oct 2026
- WebSockets
- The README shows WebSocket connections handled via Socket.IO, including a broadcast example.checked 4 Oct 2026
Alternatives to API-Mocked
- 1
Mockzilla
Free planOpen sourceWebAPILinuxmacOS8.1From $10 a month - 2

Beeceptor
Free planWebAPILinuxmacOS7.9From $10 a month - 3
Mockfly
Free planWebAPIExtensionLinux7.4From €150 a year - 4

Microcks
Free planWebAPIExtensionLinux7.2Free plan - 5
MockAPI
Free planWebAPI7.2From $35 a year - 6
Knockout API
Free planWebAPI7.0From $10 a month
