How to Find the API of a Website with AI

Discover how to find website APIs using Hyperbrowser’s AI or Developer Tools. This guide covers setup, scanning with AI, and manual methods for sites like retouched.ai!

Ashley Goolam

Ashley Goolam

2 July 2025

How to Find the API of a Website with AI

Want to uncover the hidden APIs powering your favorite websites? With Hyperbrowser, an AI-powered platform for web automation, you can find API endpoints in seconds—no more digging through code like a detective. I used Hyperbrowser to spot APIs on a site like retouched.ai in ~60 seconds! In this tutorial, we’ll explore how to use Hyperbrowser’s deep-crawler-bot to discover website APIs, plus a classic non-AI method using browser Developer Tools. Let’s dive into the Hyperbrowser magic!

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

What is Hyperbrowser for API Discovery?

Hyperbrowser is a platform for running headless browsers in secure, isolated containers, built for AI-driven web automation and API discovery. Its DeepCrawler tool, powered by AI, scans websites to identify API endpoints, bypassing anti-bot measures like CAPTCHAs. Key features include:

Hyperbrowser’s DeepCrawler is praised for finding APIs in under a minute, with a clean UI and mobile support. Ready to hunt APIs? Let’s go!

Why Use Hyperbrowser for API Discovery?

Hyperbrowser makes API discovery a breeze compared to manual methods:

Compared to Google Analytics’ tracking APIs, Hyperbrowser focuses on actionable endpoint discovery for developers. I found an API on a photo-editing site faster than I could brew coffee!

hyperbrowser website

How to Find the API of a Website: Step-by-Step Guide

Let’s find the API of a website like retouched.ai (e.g., for background removal) using Hyperbrowser’s deep-crawler-bot and the traditional Developer Tools method. You’ll need Node.js, a Hyperbrowser API key, and a browser. No API guru status required—follow along!

1. Prerequisites

get your api key

2. Install Hyperbrowser’s DeepCrawler

Clone the example repository:

git clone https://github.com/hyperbrowserai/hyperbrowser-app-examples.git
cd hyperbrowser-app-examples
cd deep-crawler-bot

Install dependencies:

npm install

Set up environment variables:

cp .env.example .env.local

Edit .env.local with your Hyperbrowser API key:

HYPERBROWSER_API_KEY=your_api_key_here

Run the development server:

npm run dev

Open your browser and navigate to http://localhost:3000. You’ll see the Hyperbrowser DeepCrawler interface, ready for API scanning!

deepcrawl tool

3. Find APIs with Hyperbrowser’s DeepCrawler

In the Hyperbrowser UI (http://localhost:3000):

{
  "endpoints": [
    {
      "url": "https://api.retouched.ai/v1/background-removal",
      "method": "POST",
      "headers": { "Content-Type": "application/json" },
      "description": "Handles image background removal"
    }
  ]
}

Hyperbrowser scanned retouched.ai and found the background removal API in ~50 seconds! Export to Postman via the dashboard (app.hyperbrowser.ai).

deepcrawl api response

4. Find APIs Without AI (Developer Tools)

For a non-AI approach, use browser Developer Tools:

dev tools
{
  "method": "POST",
  "url": "https://api.retouched.ai/v1/background-removal",
  "body": { "image": "base64-encoded-image" }
}
curl -X POST https://api.retouched.ai/v1/background-removal \
  -H "Content-Type: application/json" \
  -d '{"image":"base64-encoded-image"}'

This took me ~5 minutes of clicking around—way slower than Hyperbrowser!

5. Test the Discovered API

Test the API with a curl request (use an API key if required):

curl -X POST https://api.retouched.ai/v1/background-removal \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-api-key" \
  -d '{"image":"data:image/jpeg;base64,/9j/..."}'

Or use the Hyperbrowser UI:

You can also use tools like Apidog

apidog

or Python’s requests library to send requests and verify the API behavior.

import requests

url = 'https://example.com/api/data'
headers = {'Authorization': 'Bearer your_token_here'}

response = requests.get(url, headers=headers)
print(response.json())

6. Troubleshoot Common Issues

Customizing and Extending Hyperbrowser

Level up your API hunting:

const { HyperbrowserLoader } = require('langchain_hyperbrowser');
const loader = new HyperbrowserLoader({ urls: 'https://retouched.ai' });
loader.load().then(docs => console.log(docs[0]));

I exported my APIs to Apidog and felt like an API pro!

Why Hyperbrowser Beats Manual API Discovery

Hyperbrowser’s AI-driven approach outshines manual Developer Tools for speed and ease, especially on complex sites with anti-bot protections. Unlike Google Analytics’ tracking APIs, Hyperbrowser focuses on actionable endpoint discovery for developers. The only catch? You need a Hyperbrowser account, but the free tier is solid. The Hyperbrowser docs and community are gold for support.

Ready to uncover APIs with Hyperbrowser? Fire up that deep-crawler-bot and scan a site—I’m stoked to see your API wins!

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

Explore more

Cypher Alpha: What's the Free Mysterious OpenRouter API?

Cypher Alpha: What's the Free Mysterious OpenRouter API?

Learn to harness OpenRouter’s free Cypher Alpha AI model with Apidog for efficient API testing. This guide covers setup, examples, and benefits for developers.

2 July 2025

What is Claude Code Hooks and How to Use It

What is Claude Code Hooks and How to Use It

For Vibe Coders, tools like Anthropic's Claude Code are transforming how developers write, debug, and manage their projects. Claude Code acts as an "agentic coding tool" that lives in your terminal, capable of understanding your entire codebase, interacting with your file system, running commands, and even browsing the web for documentation. It excels at tasks like writing new features, fixing bugs, and refactoring code through natural language prompts. However, a core characteristic of Large L

2 July 2025

How to Run Cursor AI Code Editor on Your Phone?

How to Run Cursor AI Code Editor on Your Phone?

Learn how to run Cursor AI code editor on your phone with our complete mobile development guide. Discover features, setup instructions, workflows, and best practices for coding on mobile devices using Cursor's web and mobile agents.

2 July 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs