Skip to main content

Resource Hints

developer
GET/v1/domain/resource-hints

Discovers resource hints (preconnect, prefetch, preload, dns-prefetch) configured on a webpage. Reveals third-party dependencies and performance optimization strategies.

What It Does

Parses HTML for link rel="preconnect", "prefetch", "preload", and "dns-prefetch" tags. Identifies which external domains are prioritized, what resources are preloaded, and analyzes the performance optimization strategy.

Why It's Useful

Resource hints reveal critical third-party dependencies and performance priorities. They expose which services a site relies on and provide insights into their performance optimization approach.

Use Cases

Performance Engineer

Performance Analysis

Analyze resource hints to understand performance optimization strategy.

Learn from competitor performance optimizations.

Security Analyst

Third-Party Discovery

Identify critical third-party dependencies from preconnect hints.

Map supply chain dependencies for security assessment.

SEO Specialist

SEO Audit

Verify resource hints are properly configured for Core Web Vitals.

Optimize page performance for better search rankings.

Parameters

NameTypeRequiredDescription
domainstringRequiredThe domain to analyze resource hints forExample: example.com

Response Fields

FieldTypeDescription
domainstringThe analyzed domain
preconnectarrayDomains with preconnect hints
prefetcharrayResources marked for prefetch
preloadarrayResources marked for preload
dnsPrefetcharrayDomains with DNS prefetch
prerenderarrayPages marked for prerender
totalCountnumberTotal resource hints found
recommendationsarrayOptimization suggestions

Code Examples

cURL
curl "https://api.edgedns.dev/v1/domain/resource-hints" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d "domain=example.com"
JavaScript
const response = await fetch(
  'https://api.edgedns.dev/v1/domain/resource-hints?domain=example.com',
  {
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  }
);

const data = await response.json();
console.log(data);
Python
import requests

response = requests.get(
    'https://api.edgedns.dev/v1/domain/resource-hints',
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    params={
    'domain': 'example.com'
    }
)

data = response.json()
print(data)

Read the full Resource Hints guide

Why it matters, real-world use cases, parameters, response fields, and how to call it from Claude, ChatGPT, or Gemini via MCP.

Read the guide →

Related Endpoints

External References

Learn more about the standards and protocols behind this endpoint.

Try This Endpoint

Test the Resource Hints endpoint live in the playground.