<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kalil</title>
    <description>The latest articles on DEV Community by Kalil (@kalil0321).</description>
    <link>https://dev.to/kalil0321</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2921399%2Fe5401e27-4ec1-4431-b2ee-7028245e5909.jpg</url>
      <title>DEV Community: Kalil</title>
      <link>https://dev.to/kalil0321</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kalil0321"/>
    <language>en</language>
    <item>
      <title>Reverse-engineering undocumented APIs with Claude</title>
      <dc:creator>Kalil</dc:creator>
      <pubDate>Wed, 31 Dec 2025 11:12:32 +0000</pubDate>
      <link>https://dev.to/kalil0321/reverse-engineering-undocumented-apis-with-claude-1l33</link>
      <guid>https://dev.to/kalil0321/reverse-engineering-undocumented-apis-with-claude-1l33</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvm5jiboxjzqd27dm7iep.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvm5jiboxjzqd27dm7iep.gif" alt="reverse-api-engineer demo" width="600" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;Project:&lt;/strong&gt; &lt;a href="https://github.com/kalil0321/reverse-api-engineer" rel="noopener noreferrer"&gt;https://github.com/kalil0321/reverse-api-engineer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Many websites expose public APIs, but they’re often undocumented, poorly documented, or intentionally hard to find.&lt;/p&gt;

&lt;p&gt;I’m currently building &lt;strong&gt;Stapply Map&lt;/strong&gt;, a job aggregator that shows jobs on a map (&lt;a href="https://map.stapply.ai" rel="noopener noreferrer"&gt;https://map.stapply.ai&lt;/a&gt;), and I needed data. Most ATS platforms &lt;em&gt;do&lt;/em&gt; have public APIs, but discovering how to use them usually means digging through network requests and reverse-engineering things manually.&lt;/p&gt;

&lt;p&gt;So I started doing what many of us do:&lt;br&gt;
open DevTools → inspect network → copy requests → paste them into Claude → manually turn them into a usable API client.&lt;/p&gt;

&lt;p&gt;That worked, but it felt very repetitive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if I automated this?&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;I started building &lt;strong&gt;reverse-api-engineer&lt;/strong&gt;: a tool that helps reverse-engineer APIs using Claude.&lt;/p&gt;

&lt;p&gt;The initial flow was simple:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You enter a query&lt;/li&gt;
&lt;li&gt;A browser opens with HAR recording enabled&lt;/li&gt;
&lt;li&gt;You navigate the website manually&lt;/li&gt;
&lt;li&gt;The HAR file is saved&lt;/li&gt;
&lt;li&gt;Claude Code analyzes it and generates an API client&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This already worked well but I wanted to push the automation further.&lt;/p&gt;




&lt;h2&gt;
  
  
  Adding an agent mode
&lt;/h2&gt;

&lt;p&gt;So I started experimenting with an &lt;strong&gt;agent mode&lt;/strong&gt;, where an agent controls the browser directly and performs actions on your behalf.&lt;/p&gt;

&lt;p&gt;I first tried:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;browser-use&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stagehand&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They worked, but weren’t ideal for this use case:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;they rely on external libraries&lt;/li&gt;
&lt;li&gt;native HAR recording support is missing for browser-use&lt;/li&gt;
&lt;li&gt;integration was not clean for programmatic reverse-engineering, we had to do a 2 step pipeline (har recording with automation framework, then codegen with Claude)&lt;/li&gt;
&lt;li&gt;the network requests could be unsufficient for the engineer to build the API client&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Moving to Playwright MCP
&lt;/h2&gt;

&lt;p&gt;At that point, I realized that &lt;strong&gt;Playwright MCP&lt;/strong&gt; was actually a very good foundation and the only missing piece was HAR recording.&lt;/p&gt;

&lt;p&gt;So I forked Playwright MCP and added it.&lt;/p&gt;

&lt;p&gt;👉 I published this as &lt;strong&gt;v0.2.9&lt;/strong&gt;, with built-in HAR support, and the results were already much better.&lt;/p&gt;

&lt;p&gt;Now the flow looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Claude (or another agent) controls the browser via MCP&lt;/li&gt;
&lt;li&gt;Actions are executed automatically (search, click, paginate, filter)&lt;/li&gt;
&lt;li&gt;Network traffic is recorded as HAR&lt;/li&gt;
&lt;li&gt;Claude analyzes the requests&lt;/li&gt;
&lt;li&gt;A structured API client is generated&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  What it can extract today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;public but undocumented API endpoints&lt;/li&gt;
&lt;li&gt;query parameters &amp;amp; payloads&lt;/li&gt;
&lt;li&gt;pagination logic&lt;/li&gt;
&lt;li&gt;filters and search behavior&lt;/li&gt;
&lt;li&gt;required headers&lt;/li&gt;
&lt;li&gt;request dependencies&lt;/li&gt;
&lt;li&gt;session patterns&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This works especially well for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;job boards&lt;/li&gt;
&lt;li&gt;ATS platforms&lt;/li&gt;
&lt;li&gt;dashboards&lt;/li&gt;
&lt;li&gt;internal tools&lt;/li&gt;
&lt;li&gt;search-heavy web apps&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Roadmap
&lt;/h2&gt;

&lt;p&gt;Here’s what I’m planning next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;collector mode (ie send a complex query and get the data directly + code) &lt;/li&gt;
&lt;li&gt;a registry of apis to make it easier to discover already reverse-engineered APIs (users can opt-in) &lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;🔗 &lt;strong&gt;Project:&lt;/strong&gt; &lt;a href="https://github.com/kalil0321/reverse-api-engineer" rel="noopener noreferrer"&gt;https://github.com/kalil0321/reverse-api-engineer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback, ideas, and suggestions are very welcome!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>api</category>
      <category>python</category>
    </item>
  </channel>
</rss>
