Skip to Content
Advanced FeaturesHAR Import & Export

HAR Import & Export

APXY supports the HAR 1.2 specification  for exchanging traffic data with other tools. Export your captured traffic to share with teammates or import HAR files from browser DevTools, Charles Proxy, or other tools for analysis in APXY.

Export

CLI

apxy logs export-har

Exports all captured traffic as a HAR 1.2 JSON file to stdout.

Web API

GET /traffic/export/har

Returns a HAR JSON file as an attachment download.

Import

CLI

apxy logs import-har --file ./recording.har
FlagDefaultDescription
--filePath to the HAR file to import (required)

Imported traffic is stored under a har_import session for easy identification.

Web API

POST /traffic/import/har

Accepts the HAR file as multipart form data or raw JSON body. Maximum file size: 50 MB.

Imported entries are tagged with a har_import session.

Use Cases

Share a bug reproduction

Export the traffic that demonstrates a bug and attach it to a ticket:

apxy logs export-har > bug-repro.har

Analyze browser recordings

Record traffic in Chrome DevTools (Network tab → Export HAR), then import into APXY for SQL queries and analysis:

apxy logs import-har --file chrome-recording.har apxy sql query "SELECT method, url, status_code FROM traffic_logs WHERE session = 'har_import'"

Migrate from another proxy tool

Export a HAR file from Charles Proxy, Fiddler, or mitmproxy and import it into APXY:

apxy logs import-har --file charles-export.har

See also: Export & Replay for cURL/fetch/httpie export formats.

Last updated on