Skip to content
SPECIFICTION
Get listed

MockAPI vs Mockttp

MockAPI

mockapi.io

Mockttp

github.com

Side by side

FigureMockAPIMockttp
Price from$2.92/moFree
Free planYesYes
Free trial——
Open source——
WebYesYes
Windows—Yes
macOS—Yes
Linux—Yes
APIYes—
Self-hosted—Yes
Plans published33
Spec score · API Mocking Tools8.9 (#4)7.8 (#12)

Plans

MockAPI

  • FreeFree
  • Paid monthly$5 a month
  • Paid annual$35 a year

MockAPI pricing →

Mockttp

  • HobbyistFree
  • ProfessionalPrice not published
  • TeamPrice not published

Mockttp pricing →

In their own words

MockAPI

MockAPI lets users create REST API endpoints, generate custom data, and operate on it through a RESTful interface. Each project receives a unique base URL shared by its endpoints. Users define resource schemas and field-level generators, including Faker.js functions such as lorem.sentences and datatype.boolean. Relations between resources can be configured, with endpoints generated automatically. Generated resources support GET, POST, PUT, PATCH, and DELETE operations. Listed query capabilities include pagination, sorting, filtering, data generation, and customizable responses, and OpenAPI import is supported. The service is described for prototyping, testing, and learning. Documentation covers projects, resources, data generation, code examples, filtering, pagination, and relations. The Free plan costs nothing for 1 project and 2 resources. Paid monthly access costs $5 a month, and paid annual access costs $35 a year; each paid plan allows 20 projects and 50 resources. Custom endpoints and webhooks are marked coming soon.

Visit mockapi.io

Mockttp

Mockttp is a free, open-source JavaScript library for intercepting, transforming, or testing HTTP requests and responses. It supports integration tests in Node.js and browsers, including transparent proxying and HTTPS. Its tools can stub responses, verify requests, generate self-signed certificates for HTTPS mocking, and mock traffic inside or outside the process. It can also serve as the basis for custom proxies that capture, inspect, or rewrite traffic. For parallel tests, Mockttp can automatically configure ports, mock URLs, and proxy settings. It works with promise-capable testing tools and HTTP clients; Mocha, Chai, and Superagent appear in an example but are optional. Browser tests require an admin server running outside the browser. The setup guide warns against trusting a test certificate authority system-wide or sharing its private key, because either could allow an attacker to impersonate secure connections. Mockttp supports Linux, macOS, Windows, web, and self-hosted use.

Visit github.com