Skip to main content
GET
/
classify
Classify a website
curl --request GET \
  --url https://api.prefetch.io/classify \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": {
    "url": "https://stripe.com",
    "iab_id": "IAB13-11",
    "iab_parent_id": "IAB13",
    "category": "Personal Finance",
    "subcategory": "Financial Planning",
    "description": "Stripe provides payment processing infrastructure for internet businesses."
  },
  "meta": {
    "requestId": "a3f2c1d4-7b6e-4f2a-9c1d-8e3f2a1b4c5d",
    "durationMs": 1842
  }
}

Documentation Index

Fetch the complete documentation index at: https://prefetch.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

/classify analyzes a website’s content and assigns it an IAB Content Taxonomy category. It returns:
  • IAB category — parent category (e.g. “Technology & Computing”)
  • IAB subcategory — more specific classification (e.g. “Software”)
  • Description — a 1–2 sentence summary of what the site does
This endpoint uses a hybrid approach: it first attempts a fast static fetch, falling back to headless Chrome only if the page requires JavaScript to render meaningful content.

Example request

curl "https://api.prefetch.io/classify?url=https://stripe.com" \
  -H "X-API-Key: $PREFETCH_API_KEY"

Example response

{
  "success": true,
  "data": {
    "url": "https://stripe.com",
    "iab_id": "IAB13-11",
    "iab_parent_id": "IAB13",
    "category": "Personal Finance",
    "subcategory": "Financial Planning",
    "description": "Stripe provides payment processing infrastructure for internet businesses, enabling companies to accept payments, manage subscriptions, and handle their online commerce operations globally."
  },
  "meta": {
    "requestId": "a3f2c1d4-7b6e-4f2a-9c1d-8e3f2a1b4c5d",
    "durationMs": 1842
  }
}

IAB taxonomy

The iab_id field follows the IAB Content Taxonomy 3.0 format:
  • IAB13 — parent category ID
  • IAB13-11 — subcategory ID (parent ID + hyphen + number)
Common parent categories include IAB19 (Technology & Computing), IAB3 (Business), IAB4 (Careers), and IAB13 (Personal Finance).

Authorizations

X-API-Key
string
header
required

Your Prefetch API key. Obtain one from the dashboard.

Query Parameters

url
string
required

The website URL to process. http:// is prepended automatically if no protocol is provided. Maximum 2048 characters.

Example:

"https://stripe.com"

Response

Classification result.

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required