Check if a URL is reachable
Send a request to any URL and instantly see if it's up, what status it returns, where it ultimately resolves, and how long it took.
GET /api/url-check
Try it
{
"reachable": true,
"status": 200,
"final_url": "https://vercel.com/",
"response_time_ms": 123,
"error": null
}What it returns
- •reachable - whether the URL responded without a network error
- •status - the HTTP status code of the final response
- •final_url - the URL after following all redirects
- •response_time_ms - total time for the request in milliseconds
- •error - error code if the request failed, null otherwise
Use cases
- •Validate user-submitted URLs before saving them
- •Monitor webhooks and integrations for uptime
- •Clean scraped datasets by filtering broken links
- •Check if an API endpoint is responding before sending requests
- •Verify redirect chains are behaving correctly
Quick API examples
curl
curl "https://tinyutils.dev/api/url-check?url=https://vercel.com"
JavaScript (fetch)
const res = await fetch( "https://tinyutils.dev/api/url-check?url=https://vercel.com" ); const data = await res.json(); console.log(data.reachable, data.status, data.response_time_ms);
Batch endpoint
Check up to 10 URLs in a single request using POST /api/url-check/batch.
curl -X POST "https://tinyutils.dev/api/url-check/batch" \
-H "Content-Type: application/json" \
-d '{"urls":["https://example.com","https://openai.com"]}'