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

Apigee vs Kong: Comprehensive Guide to Choosing the Right API Gateway

Apigee vs Kong: Comprehensive Guide to Choosing the Right API Gateway

Choosing the right API gateway can shape your app’s performance, security, and scalability. This guide breaks down Apigee vs Kong—comparing features, use cases, developer experience, and when to use each. Plus, see how Apidog fits in to streamline your API workflow from design to deployment.

1 August 2025

Web Services vs Microservices: What's the Difference

Web Services vs Microservices: What's the Difference

Explore the key differences between web services and microservices. Learn when to use each architecture, real-world examples, and how Apidog simplifies API management across both styles. Get insights and a free tool to streamline your API strategy today!

1 August 2025

Google Cloud API Gateway vs Apigee: Hands-On Guide

Google Cloud API Gateway vs Apigee: Hands-On Guide

An in-depth comparison of Google Cloud API Gateway vs Apigee. Learn when to use each, how Apidog helps you work smarter, and what makes a great API stack.

1 August 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs