Endpoint
Authentication
| Header | Required | Value |
|---|---|---|
X-API-Key | Yes | Your API key (bun_...) |
Content-Type | Yes | application/json |
Overview
Check whether any URL is reachable and inspect its response in real time. Bunny’s URL Checker follows redirects, measures response time, extracts the page title, and returns the final URL, giving you a full picture of the link’s health.Use cases
- Validate URLs before storing them in a database
- Monitor external links in CMS content
- Build broken-link checkers for websites
- Verify redirect chains for SEO audits
Details
Follows up to 10 redirect hops.final_url contains the URL after all redirects. response_time_ms is measured from the first byte. URLs that time out after 10 seconds are returned with reachable: false.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The URL to check (must include scheme, e.g. https://) |
Example
Response
200 OK
| Field | Type | Description |
|---|---|---|
url | string | The URL that was checked |
reachable | boolean | true if the URL responded successfully |
status_code | int|null | HTTP status code returned by the URL, or null if unreachable |
final_url | string|null | The URL after following all redirects |
title | string|null | Page <title> extracted from HTML (only for text/html responses) |
redirect_count | number | Number of redirects followed |
response_time_ms | number | Total response time in milliseconds |
error | string | Error message when reachable is false |

