API Endpoint
GET /devtools
Perform a comprehensive inspection of a webpage by providing its URL.The URL of the webpage to inspect. Must be a valid HTTP or HTTPS URL.
Example Request
Response Structure
Indicates if the request was successful
The comprehensive inspection results
The requested URL
HTTP response status code (e.g., 200, 404, 500)
Response time in milliseconds (rounded)
HTTP response headers as key-value pairs. All header names are lowercase.
Array of Set-Cookie header values
Array of unique absolute URLs of JavaScript files loaded via
<script src="...">Array of unique absolute URLs of CSS files loaded via
<link rel="stylesheet">Array of unique absolute URLs of images from
<img src="...">Array of unique absolute URLs from
<a href="...">. Excludes anchor links (#) and javascript: links.Example Response
Error Responses
Invalid URL
Fetch Error
Deployment
Use Cases
- Performance Monitoring: Track response times and identify slow-loading resources
- Security Audits: Analyze headers, cookies, and security configurations
- Asset Analysis: Discover all external dependencies and third-party scripts
- SEO Audits: Inspect metadata and canonical URLs
- Debugging: Investigate website structure and loaded resources
- Competitive Analysis: Understand technology stack and external services used
- Compliance Checks: Verify cookie policies and header configurations
Technical Details
- Built with Hono framework
- Runs on Cloudflare Workers
- Custom User-Agent:
Cloudflare-Experiments-DevtoolsInspector/1.0 - Configurable fetch timeout
- Maximum HTML size limit to prevent memory issues
- All relative URLs resolved to absolute URLs
- Response time measured from request start to completion
Inspection Details
Headers
- All response headers are captured
- Header names are normalized to lowercase
- Includes Cloudflare-specific headers (cf-ray, cf-cache-status, etc.)
Cookies
- Extracted from Set-Cookie response headers
- Preserves all cookie attributes (Path, HttpOnly, Secure, SameSite)
- Multiple cookies are returned as separate array entries
Resources
- Scripts: Extracted from
<script src="..."> - Stylesheets: Extracted from
<link rel="stylesheet" href="..."> - Images: Extracted from
<img src="..."> - Links: Extracted from
<a href="..."> - All URLs are deduplicated and resolved to absolute URLs
Response Time
- Measured in milliseconds from request initiation to response completion
- Includes network latency and initial content download
- Rounded to the nearest millisecond