Browser extension
The Requestarium extension for Chrome puts your collections in the browser side panel and turns the browser into a source of requests: save the calls a web page makes into a collection, record a tab without opening DevTools, and answer a page's API calls with your saved examples (Browser mocks). All of it works on the Free plan.
Try it here
Pick what you want to do. The walkthrough plays each step: what you click, what Chrome shows, and what ends up in Requestarium. Nothing runs here: it is a simulation.
Chrome, Edge, Brave and other Chromium browsers install from the Chrome Web Store.
Press Play, or pick a step.
What happens
4 steps. Each one shows what you see in Chrome and what ends up in Requestarium.
- (nothing yet)
Install and sign in
- Open Requestarium in the Chrome Web Store and click Add to Chrome. Edge, Brave and other Chromium browsers install from the same page.
- Pin the icon: the puzzle icon in the toolbar → Requestarium → pin.
- Click the icon and choose Sign in. Approve access in the Requestarium tab that opens. The extension gets its own API token; revoke it in Settings → API tokens.
Click the icon again to open your collections in the side panel. Requests are sent from the browser, with its cookies and network.
Self-hosted Requestarium
If your company runs its own Requestarium, point the extension at it before you sign in:
- In the side panel, click Change server under Sign in (or right-click the toolbar icon → Options).
- Choose Self-hosted Requestarium and enter the address you open in the browser, for example
https://requestarium.example.com. - Click Save and allow access to that address. The extension checks that a Requestarium server answers there.
- Sign in. The consent page opens on your own server.
If your API is on a different address than the web app, open The API is on a different address and enter both. Changing the server signs the extension out, because each server has its own accounts. To go back, choose Requestarium Cloud.
Save a page's calls to a collection
- On the site, open DevTools (F12, or ⌥⌘I on a Mac) and the Requestarium tab, then use the page. Every
fetchand XHR call is listed. - Tick the calls you want, or filter the list and click Select all shown.
- Pick a collection and folder, or + New collection…, and click Save.
The save form keeps the collection tidy:
- Calls that differ only by an id (
/orders/41,/orders/42) become one request,GET /orders/{id}. - Calls the collection already has are skipped, so saving again later adds only what is new.
- Group into folders by path puts
/api/v1/orders/…in anordersfolder when there are two or more of them. - Use a {{baseUrl}} collection variable puts the host in a variable, so one edit points the whole collection at staging or production.
- Save responses as examples keeps each response. Examples power mock servers and Browser mocks.
- Bearer tokens become
{{token}}unless you tick Keep bearer tokens. Settokenin an environment.
Open DevTools before you use the page: Chrome does not keep the response body of calls made before the tab opened.
Record a tab without DevTools
Click the Requestarium icon to open the side panel and switch to the Record tab. Click Record, use the page, and its API calls appear in the list with the same save form. While a recording runs, Chrome shows a bar that Requestarium is debugging the browser, and the icon shows REC. Click Stop to end it. The panel records the tab that was active when you clicked Record, and keeps its list when you switch tabs.
For a bigger window, right-click the Requestarium icon and choose Record API requests on this tab.
Recording is Chrome only.
Browser mocks
Browser mocks answer a page's fetch and XHR calls with the saved examples of a collection. There is no proxy and nothing to change in the app: useful when the backend is not ready, is down, or you need an error state on demand.
- In DevTools → Requestarium, pick a collection in the Browser mocks bar and click Mock this tab.
- Allow access to the site when Chrome asks. Mocks run only on sites you allowed and only while they are on.
- Reload the page once. From then on, calls that match a saved request get its example; every other call goes to the network.
Matching is the same as on mock servers: method and path, with :id, {id} and {{id}} segments matching any value. If the request's URL has a host, only calls to that host are answered. Mocked responses carry an X-Requestarium-Mock header with the example's name, and a page can ask for an example with the x-mock-response-name or x-mock-response-code request header.
Click Requests to change the answers while the page is open, no reload needed:
- Replace the response (default): the example you pick, or the default one. Add steps with + Step for a scenario: call 1 gets a 503, call 2 goes to the real server (From the server), call 3 and later get the 200 example. Restart scenarios starts again from step 1.
- Headers only: the call goes to the server and the example's headers are laid over the real response.
- Mock the request body: the call goes to the server with the body you type instead of the page's.
- Off: this request is not mocked.
- Delay slows every mocked answer down, to check loading states.
Not mocked: synchronous XHR, WebSocket, server-sent events, navigator.sendBeacon, form posts, and calls from workers or iframes. Turn off sends everything to the network again.