Website Status Checker

/api/websitestatus 1 credit(s) per call

Check whether any website URL is up and responding.

Overview

The Website Status Checker pings any URL and reports whether the site is up and responding.

Endpoint

POST /api/websitestatus
GET /api/websitestatus/check?url=https://example.com

Request Parameters

Parameter Type Required Description
url string Yes The URL to check. If no protocol is specified, https:// is prepended automatically.

Response Fields

The response is wrapped in a standard API envelope:

Field Type Description
success boolean true on success
data.url string The URL that was checked (normalised with protocol)
data.isUp boolean true if the target responded with any HTTP status code
data.statusCode int? HTTP status code returned by the target, or null if unreachable
data.responseTimeMs int Time taken to check the URL in milliseconds
data.checkedAt string (ISO 8601) UTC timestamp of when the check was performed

Example

Check whether a website is up:

curl -X POST https://simplewebapis.com/api/websitestatus \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: swa_your_key" \
  -d '{"url": "https://github.com"}'

The response is a JSON object (Content-Type: application/json).

Try it out

Use the Playground to test this API live.