Getting started

1. Install the extension

Add Placebo API from the Chrome Web Store. It works in Chrome 111 or newer and in browsers that install from the Chrome Web Store, such as Edge, Brave and Arc.

After installing, the rules page opens with a welcome card. Click Add Demo Rule & Try It: the extension adds a rule for our demo page and opens it, so you can see a mocked response straight away. You can open the rules page any time from the extension’s toolbar icon.

2. Make your own rule

  1. Click Add Rule.
  2. Pattern: part of the URL you want to change, for example /api/users. Leave Match on URL contains.
  3. Action: Override response.
  4. Status code: leave it empty to keep the real one, or enter one such as 500.
  5. Response body: the JSON (or text) the page should receive.
  6. Click Create Rule.

Now use your app. Matching fetch and XMLHttpRequest calls get your response, in every open tab, with no reload. Each override is logged in the page console as [Placebo API].

Tip: tick Serve without network call to answer without sending the request at all. That’s how you mock an endpoint that doesn’t exist yet.

3. Account or not

You don’t need an account to try it: without one you get 3 rules, 1 active at a time. A free account (an email and a 6-digit code, no password) raises that to 6 rules, 3 active. Your rules stay in your browser either way. See Plans, limits and your account.

Next

Something unclear or missing? Tell me, and I'll fix the docs.