This guide explains how to use TraceAPI after the extension is installed.
- Open a website or web application that makes API requests.
- Click the TraceAPI extension icon.
- Click
Open Panelto open the side panel. - Click
Start Capture. - Trigger API activity on the page, such as loading data, submitting a form, or clicking an action that calls an API.
Captured requests appear live in the request list.
Click Stop Capture in the side panel. Requests triggered after capture stops are not added to the list.
Click Clear to remove captured records for the current tab.
Select a request from the list to view:
- Method, URL, status, duration, and source.
- Request headers.
- Request payload.
- Response headers.
- Response body.
- Generated Go struct when the response body is valid JSON.
For JSON request or response bodies, use:
Prettyto format JSON with indentation.Minifyto compact JSON.Treeto inspect JSON as an expandable tree.Copy JSONto copy formatted JSON.
Open a request with a valid JSON response. In the Go Struct section:
- Set the package name.
- Set the root struct name.
- Click
Copy Struct.
The generator supports nested objects, arrays, nullable fields, pointers, and omitempty tags.
The side panel includes copy actions for:
- URL.
- cURL.
- Request body.
- Response body.
- Headers.
- JSON.
- Go struct.
When copy succeeds, the button temporarily changes to Copied. If clipboard access fails, it changes to Failed.
Use the search field to find requests by URL, method, status, headers, request body, or response body.
Use filters to narrow results by:
- HTTP method.
- Status class, such as
2xx,4xx, or5xx. - MIME type, such as
jsonorhtml.
- Capture is inactive by default.
- Captured data is stored locally in memory for the extension session.
- Sensitive headers such as
Authorization,Cookie,Set-Cookie,x-api-key,api-key, andProxy-Authorizationare masked by default. - No captured data is sent to external servers.