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": [
        {
          "hex": "#18E299",
          "name": "mediumspringgreen"
        }
      ],
      "logo_colors": [
        {
          "hex": "#18E299",
          "name": "mediumspringgreen"
        }
      ],
      "screenshot_colors": [
        {
          "hex": "#18E299",
          "name": "mediumspringgreen"
        }
      ],
      "css_colors": [
        {
          "hex": "#18E299",
          "name": "mediumspringgreen"
        }
      ],
      "html_colors": [
        {
          "hex": "#18E299",
          "name": "mediumspringgreen"
        }
      ],
      "javascript_colors": [
        {
          "hex": "#18E299",
          "name": "mediumspringgreen"
        }
      ]
    },
    "fonts": {
      "families": [
        "Inter",
        "Roboto"
      ]
    },
    "logos": {
      "primary": {
        "url": "https://cdn.example.com/logo.svg",
        "width": 123,
        "height": 123
      },
      "secondary": [
        {
          "url": "https://cdn.example.com/logo.svg",
          "width": 123,
          "height": 123
        }
      ],
      "favicon_url": "https://stripe.com/favicon.ico",
      "icon_url": "<string>",
      "apple_touch_icon": "<string>"
    },
    "images": {
      "og_image": "<string>",
      "twitter_image": "<string>",
      "screenshot_url": "<string>"
    },
    "social_links": {
      "twitter": "https://twitter.com/stripe",
      "linkedin": "https://linkedin.com/company/stripe"
    },
    "company": {
      "name": "Stripe, Inc.",
      "emails": [
        "[email protected]"
      ],
      "addresses": [
        "354 Oyster Point Blvd, South San Francisco, CA 94080"
      ]
    },
    "classification": {
      "url": "https://stripe.com",
      "iab_id": "IAB13-11",
      "iab_parent_id": "IAB13",
      "category": "Personal Finance",
      "subcategory": "Financial Planning",
      "description": "<string>",
      "tagline_description": "<string>",
      "long_description": "<string>",
      "stock_tickers": [
        "<string>"
      ],
      "isins": [
        "<string>"
      ]
    }
  },
  "meta": {
    "requestId": "a3f2c1d4-7b6e-4f2a-9c1d-8e3f2a1b4c5d",
    "durationMs": 1842
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.prefetch.io/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
/enrich201
/brand + /company + /classify203

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": [
        { "hex": "#635BFF", "name": "blueviolet" },
        { "hex": "#00D4FF", "name": "cyan" }
      ],
      "screenshot_colors": [
        { "hex": "#FFFFFF", "name": "white" },
        { "hex": "#0A2540", "name": "darkblue" }
      ]
    },
    "fonts": {
      "families": ["Sohne", "Inter"]
    },
    "logos": {
      "primary": {
        "url": "https://assets.prefetch.io/logos/stripe-logo.svg",
        "width": null,
        "height": null
      },
      "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",
      "screenshot_url": "https://assets.prefetch.io/screenshots/stripe-1440x900.jpg"
    },
    "social_links": {
      "twitter": "https://twitter.com/stripe",
      "linkedin": "https://linkedin.com/company/stripe"
    },
    "company": {
      "name": "Stripe, Inc.",
      "emails": ["[email protected]"],
      "addresses": ["354 Oyster Point Blvd, South San Francisco, CA 94080"]
    },
    "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.",
      "tagline_description": "Payment infrastructure for the internet.",
      "long_description": "Stripe provides payment processing infrastructure for internet businesses, enabling companies to accept payments, manage subscriptions, and handle global commerce operations.",
      "stock_tickers": [],
      "isins": []
    }
  },
  "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
screenshotWidth1440Viewport width (320–3000)
screenshotHeight900Viewport height (320–3000)
screenshotFormatjpegScreenshot format: jpeg, png, pdf
screenshotFullPagefalseCapture full scrollable height
disableAdblockerfalseDisable the built-in adblocker
filterAchromaticfalseExclude near-white, near-black, and greyscale colors

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. https:// is prepended automatically if no protocol is provided.

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 linked CSS files. Pass true to enable.

html
boolean
default:false

Extract colors from inline HTML. Pass true to enable.

javascript
boolean
default:false

Extract colors from linked JS files. Pass true to enable.

screenshotWidth
integer
default:1440

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

Required range: 320 <= x <= 3000
screenshotHeight
integer
default:900

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

Required range: 320 <= x <= 3000
screenshotFormat
enum<string>
default:jpeg

Screenshot format. Default: jpeg.

Available options:
jpeg,
png,
pdf
screenshotFullPage
boolean
default:false

Capture the full scrollable page. Pass true to enable.

disableAdblocker
boolean
default:false

Disable the built-in adblocker. Pass true to enable.

filterAchromatic
boolean
default:false

Exclude near-white, near-black, and greyscale colors from results. Pass true to enable.

Response

Enrichment result.

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

Combined output from brand, company, and classify extraction.

meta
object
required