MockFoxAdvertise

Create a mock API

Updated Free mock REST & WebSocket APIs

Paste or edit a JSON definition, click Publish, and get a live base URL. Resources become full REST endpoints; custom routes return exactly the status, headers and body you define.

✓ Valid — 2 resources, 2 custom routes, WebSocket script

How it works

  1. Start from a template (todo app, e-commerce, blog, auth errors, realtime) or describe your API to the AI.
  2. Edit resources and routes in the JSON editor — it validates as you type.
  3. Publish, then click any endpoint to try it, or copy the curl command.

What every resource gives you

RequestResult
GET /usersList; filter with ?field=value, field_gte, field_lte, field_like, q
GET /users?_page=2&_limit=10Pagination with an X-Total-Count header
GET /users?_sort=name&_order=descSorting
GET /users/1One item, or 404
GET /users/1/todosRelated items by userId
POST /users201 with the body plus the next id
PUT / PATCH / DELETE /users/1Replaced / merged item / empty object

Custom routes and templating

Routes support :params, any method, status codes, headers and delays. String values can echo the request with {{params.id}}, {{query.page}} or {{body.email}}.

{ "method": "POST", "path": "/login", "status": 401,
  "body": { "error": "invalid_credentials", "email": "{{body.email}}" },
  "delayMs": 500 }

Related tools

Frequently asked questions

Is MockFox free?

Yes. No sign-up, no API key. Fair-use rate limits keep it fast for everyone, and clearly labeled sponsors pay for the servers.

Do POST, PUT and DELETE change the data?

No. Writes return realistic responses (a created item with a new id, a merged item for PATCH) but the stored data stays the same, so every test starts from a known state.

How long does a mock last?

30 days after the last save. Saving again extends it. Keep the edit key (it's stored in your browser) to update or delete the mock.

Can I simulate errors and slow responses?

Yes — add a custom route with any status code (401, 404, 429, 500…), custom headers and a delay up to 10 seconds.

Your business here? Sponsor this tool from $16/week. See placements