Skip to main content
GET
/
enrich
Enrich a URL
curl --request GET \
  --url https://api.prefetch.io/enrich \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": {
    "domain": "stripe.com",
    "url": "https://stripe.com",
    "colors": {
      "brand_colors": [
        {
          "color": "rgb(99,91,255)",
          "hex": "#635BFF",
          "name": "blueviolet",
          "percentage": 38,
          "source": "logo"
        }
      ],
      "screenshot_colors": [
        {
          "color": "rgb(99,91,255)",
          "hex": "#635BFF",
          "name": "blueviolet",
          "percentage": 38,
          "source": "logo"
        }
      ],
      "code_colors": {
        "css": [
          "<string>"
        ],
        "html": [
          "<string>"
        ],
        "javascript": [
          "<string>"
        ]
      }
    },
    "fonts": {
      "families": [
        "Sohne",
        "Inter"
      ],
      "google_fonts": [
        "<string>"
      ],
      "typekit": [
        "<string>"
      ]
    },
    "logos": {
      "primary": {
        "url": "https://assets.prefetch.io/logos/stripe-logo.svg",
        "source": "jsonld",
        "score": 185,
        "isSvg": true
      },
      "secondary": [
        {
          "url": "https://assets.prefetch.io/logos/stripe-logo.svg",
          "source": "jsonld",
          "score": 185,
          "isSvg": true
        }
      ],
      "favicon_url": "https://stripe.com/favicon.ico",
      "icon_url": "<string>",
      "apple_touch_icon": "<string>"
    },
    "images": {
      "og_image": "<string>",
      "twitter_image": "<string>",
      "assets": [
        "<string>"
      ],
      "screenshot_url": "<string>",
      "screenshot_colors": [
        {
          "color": "rgb(99,91,255)",
          "hex": "#635BFF",
          "name": "blueviolet",
          "percentage": 38,
          "source": "logo"
        }
      ]
    },
    "social_links": {
      "twitter": "<string>",
      "linkedin": "<string>",
      "github": "<string>",
      "facebook": "<string>",
      "instagram": "<string>",
      "youtube": "<string>"
    },
    "company": {
      "name": "Stripe, Inc.",
      "emails": [
        "support@stripe.com"
      ],
      "addresses": [
        "354 Oyster Point Blvd, South San Francisco, CA 94080"
      ],
      "sources": [
        "jsonld",
        "footer"
      ],
      "confidence": 0.92
    },
    "classification": {
      "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

/enrich is the most comprehensive endpoint. It runs brand extraction, company info extraction, and website classification in parallel and returns all results in a single response. This is equivalent to calling /brand + /company + /classify together, but more efficient because the page is only loaded once. Use /enrich when you want a complete profile of a domain.

Cost comparison

ApproachCreditsRequests
/enrich31
/brand + /company + /classify53

Example request

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

Example response

{
  "success": true,
  "data": {
    "domain": "stripe.com",
    "url": "https://stripe.com",
    "colors": {
      "brand_colors": [
        { "color": "rgb(99,91,255)", "hex": "#635BFF", "name": "blueviolet", "percentage": 38, "source": "logo" }
      ],
      "screenshot_colors": [
        { "color": "rgb(255,255,255)", "hex": "#FFFFFF", "name": "white", "percentage": 61, "source": "screenshot" }
      ]
    },
    "fonts": {
      "families": ["Sohne", "Inter"],
      "google_fonts": [],
      "typekit": []
    },
    "logos": {
      "primary": {
        "url": "https://assets.prefetch.io/logos/stripe-logo.svg",
        "source": "jsonld",
        "score": 185,
        "isSvg": true
      },
      "secondary": [],
      "favicon_url": "https://stripe.com/favicon.ico",
      "icon_url": null,
      "apple_touch_icon": null
    },
    "images": {
      "og_image": "https://stripe.com/img/v3/home/social.png",
      "twitter_image": "https://stripe.com/img/v3/home/social.png",
      "assets": [],
      "screenshot_url": "https://assets.prefetch.io/screenshots/stripe-1440x900.jpg"
    },
    "social_links": {
      "twitter": "https://twitter.com/stripe",
      "linkedin": "https://linkedin.com/company/stripe",
      "github": "https://github.com/stripe",
      "facebook": null,
      "instagram": null,
      "youtube": null
    },
    "company": {
      "name": "Stripe, Inc.",
      "emails": ["support@stripe.com"],
      "addresses": ["354 Oyster Point Blvd, South San Francisco, CA 94080"],
      "sources": ["jsonld", "footer"],
      "confidence": 0.92
    },
    "classification": {
      "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": "e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b",
    "durationMs": 5280
  }
}

All parameters

/enrich accepts the same parameters as /brand for controlling color extraction and screenshot settings:
ParameterDefaultDescription
urlrequiredWebsite URL to enrich
screenshotColorsExtract N dominant screenshot colors (2–12)
cssfalseExtract colors from CSS source
htmlfalseExtract colors from HTML source
javascriptfalseExtract colors from JavaScript source
width1440Viewport width (320–5000)
height900Viewport height (320–5000)
formatjpegScreenshot format: jpeg, png, webp
full_pagefalseCapture full scrollable height

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"

screenshotColors
integer

Extract N dominant colors from the page screenshot. Range: 2–12.

Required range: 2 <= x <= 12
css
boolean
default:false

Extract colors from CSS source code. Default: false.

html
boolean
default:false

Extract colors from HTML source code. Default: false.

javascript
boolean
default:false

Extract colors from JavaScript source code. Default: false.

width
integer
default:1440

Viewport width in pixels. Range: 320–5000. Default: 1440.

Required range: 320 <= x <= 5000
height
integer
default:900

Viewport height in pixels. Range: 320–5000. Default: 900.

Required range: 320 <= x <= 5000
format
enum<string>
default:jpeg

Image format. Default: jpeg.

Available options:
jpeg,
png,
webp
full_page
boolean
default:false

Capture full scrollable page height. Default: false.

Response

Enrichment result.

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

Combined output from brand, company, and classify extraction.

meta
object
required