# HAR to API Map

> Convert browser .har captures into structured API maps, JSON schemas, and integration docs without leaking credentials.

HAR to API Map is a paid AI agent skill on Agensi by Nenad Zivotic, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.1
- Last updated: 2026-10-20
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/har-to-api-map
- Tags: api, reverse-engineering, node-js, documentation, web-scraping, har

## About this skill

Reverse-engineering a private API from browser traffic is tedious and prone to security leaks. Manual extraction of JSON shapes and header requirements often results in broken integrations or accidental credential exposure.

This skill automates the transformation of `.har` browser captures into structured API maps. It identifies endpoint patterns, normalizes dynamic paths (like `/user/123` to `/user/:id`), and extracts request/response JSON schemas without ever touching sensitive data values. It provides a clean foundation for building clients, mocks, or documentation based on observed traffic.

### What it does
- **Path normalization** collapses unique URLs into logical endpoint groups using pattern matching for IDs and UUIDs.
- **Schema extraction** generates structural JSON shapes for request and response bodies, identifying keys and data types only.
- **Auth detection** identifies authentication schemes such as Bearer tokens, API keys, and session cookies from header presence.
- **Parameter mapping** catalogs query string parameters and form-urlencoded fields along with their observed scalar types.
- **Traffic analysis** provides endpoint statistics including request counts, status code distribution, and average latency.

### How it works
1. **Analyze capture** by running the provided Node script against a local `.har` file to generate `api-map.json`.
2. **Review map** to filter out third-party telemetry, analytics, and static asset noise from the target API endpoints.
3. **Generate deliverable** such as a TypeScript client, an OpenAPI spec draft, or integration documentation based on the mapped shapes.

### Frameworks & tools
Node.js 22+, DevTools HAR exports, and JSON-based schema modeling.

### Why this beats prompting it yourself
Generic prompts often hallucinate API structures or, worse, try to process raw HAR files containing live session tokens. This skill uses a local, zero-dependency script to strip all values before the LLM sees the data, ensuring security while providing perfect structural accuracy that manual prompting cannot match.

### Use cases
- Scaffold a typed SDK for a web application that lacks an official public API.
- Document internal microservice communication for legacy system migration.
- Create realistic mock servers by capturing production-like request and response shapes.
- Identify missing error handling by mapping observed 4xx and 5xx response bodies.

### Known limitations
Does not capture endpoints or parameters not exercised during the browser session. Requires Node 22+ for the local mapping script. Cannot verify API rate limits or exhaustive field requirements.

## Requires

- Node.js 22+

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the HAR to API Map skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill simplify the process of documenting private APIs?

This skill automates the reverse-engineering of browser traffic into structured API documentation and schemas, saving hours of manual extraction while ensuring sensitive session data like passwords and tokens never leave your local machine.

### What specific assets are included in this purchase?

You will receive a specialized local Node.js script for data scrubbing and normalization, the AI agent prompt for generating the final API map, and documentation on how to output TypeScript clients or OpenAPI specs.

### Is it safe to use this skill with sensitive browser captures containing session cookies?

Security is a priority; the included local script strips all actual data values and credentials from the .har file, passing only the structural shapes and keys to the AI to prevent data leaks.

### What are the technical requirements for running the mapping script?

The skill requires Node.js 22+ to run the local mapping script and a standard .har export from any modern browser (Chrome, Firefox, or Safari) as the data source.

### Can I use this skill with any AI agent or LLM?

While the script is optimized for LLMs with large context windows, the local pre-processing step collapses redundant requests and filters noise, making it compatible with most leading AI agents and chat interfaces.

### How does the skill handle dynamic URL parameters like user IDs or slugs?

The skill is designed to handle path normalization automatically, recognizing common patterns like UUIDs or numeric IDs and grouping them into single endpoints like /users/:id.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
