The core WireMock engine.
Embed in your test code, run as a standalone process, or deploy via Docker.
Web UI with team collaboration, OpenAPI + Swagger support, and chaos testing.
Start on the generous free-forever tier:
WireMock is a tool for building mock APIs. Create stable development environments, isolate yourself from flakey 3rd parties and simulate APIs that don't exist yet.
Test against popular 3rd-party services in a few clicks!
Browse our library of mock API templates and examples, find the API that you need, and mock it in seconds - on your local machine or in the cloud. Learn More...
WireMock frees you from dependency on unstable APIs and allows you to develop with confidence. It's easy to launch a mock API server and simulate a host of real-world scenarios and APIs - including REST, SOAP, OAuth2 and more.
Advanced request matching
Dynamic response templating
Run in your unit tests, on your laptop or in your test environment.
Fault and latency injection
Record / Playback
Java, Python, HTTP and
JSON file APIs
WireMock is available as a standalone service, Java library and integrations for modern languages and technology stacks.
Add the following to your project's pom.xml dependencies:
Then follow the next steps for JUnit 5+ or plain Java.
Add the following to your project's build.gradle:
Then follow the next steps for JUnit 5+ or plain Java.
Add the following to your project's build.gradle.kts:
Then follow the next steps for JUnit 5+ or plain Java.
Add the following to your project’s build.sbt:
Download the latest standalone JAR then run the following in a terminal:
Learn more in the running standalone guide.
Run the following in a terminal:
Learn more in the Docker guide.