API Endpoint
GET /check
Checks if the specified URL is reachable and returns timing and status information.The target URL to check (must be http or https)
Example Request
Success Response (Reachable)
Reachability status:
"reachable" or "unreachable"Round-trip response time in milliseconds
HTTP status code returned by the target server
Cloudflare edge data center (IATA code) that served this check (only available when deployed)
Success Response (Unreachable)
Error message explaining why the site is unreachable (only present when status is
"unreachable")Error Response
Error Codes
400— Missing or invalidurlparameter (not http/https)
Use Cases
- Monitor website availability from the edge
- Measure response times from different geographic locations
- Build uptime monitoring tools
- Check if a site is down globally or just from your location
Deployment
Deploy
Follow the deployment wizard to deploy the Worker to your Cloudflare account. No additional configuration required.
Local Development
The
colo field will not be populated during local development. It only appears when deployed to Cloudflare Workers.Cloudflare Features Used
- Workers — Edge compute runtime
- Fetch API — HTTP requests with timing
- Edge Networking — Request metadata including data center location