Url Uptime Checker avatar

Url Uptime Checker

Pricing

$3.00 / 1,000 results

Go to Apify Store
Url Uptime Checker

Url Uptime Checker

Pricing

$3.00 / 1,000 results

Rating

0.0

(0)

Developer

Eichan Jolly

Eichan Jolly

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Categories

Features

Limited permissions

Share

Snapshot HTTP status and elapsed request time for 1–10 public websites. It performs a single check per URL and writes one predictable Dataset record per URL. This Actor is for schedulable status snapshots, not an always-on monitor.

Who it is for

Site owners, QA teams, automation builders, and small operations teams who want an exportable history of availability checks without accounts, the Apify SDK, or external API keys.

Input example

{
"urls": ["https://example.com"],
"timeoutSeconds": 10
}
FieldRequiredMeaning
urlsYes1–10 unique, public http:// or https:// addresses; the form prefills one URL.
timeoutSecondsNoTime limit per request (2–30 seconds, default 10). Redirects and fallback can lengthen total run time.

Output example

One Dataset record per URL (illustrative values):

{
"url": "https://example.com",
"statusCode": 200,
"isUp": true,
"responseTimeMs": 182,
"error": null,
"checkedAt": "2026-11-01T09:00:00Z"
}
  • statusCode: final HTTP response status or null on network/TLS/protocol failure.
  • isUp: true for final status 200–399, otherwise false. An HTTP 403/404/500 is not "up" under this rule.
  • responseTimeMs: non-negative elapsed milliseconds for this check including redirects and possible fallback; this is not page load time.
  • error: plain-language error, or null when up. For 4xx/5xx, includes the HTTP status code.
  • checkedAt: identical UTC ISO 8601 timestamp across a run's records.

How it works

  1. Validates the public URLs. Only standard HTTP(S) ports 80 and 443 are supported.
  2. Sends HEAD to avoid downloading the page. If the server returns 405 Method Not Allowed or 501 Not Implemented, retries once with GET and reads only one response byte.
  3. Records the final HTTP status and elapsed time, even when a URL fails. A failed check is a Dataset row, not a traceback.
  4. Writes rows to the run's default Apify Dataset through its platform-provided storage credentials, using urllib only.

Scheduled use case

Schedule an hourly run against a small set of important endpoints. A downstream workflow can aggregate the checkedAt, isUp, and responseTimeMs rows over time and trigger alerts. No alerts, previous-run comparisons, or persistence across runs are performed by this Actor.

Limits and cautions

  • Public HTTP(S) endpoints only; no authentication, login, private network addresses, or arbitrary TCP ports. DNS results for requests must be public. The actor does not use Apify Proxy. DNS can change between validation and connection; do not treat this as a hardened network security boundary.
  • Maximum 10 URLs; sequential checks; response time varies with server latency, redirects, and timeout. Redirects to private URLs are rejected.
  • HEAD behavior may differ from GET; 403/405 and anti-bot restrictions can affect outcomes. A 200 response does not prove a healthy app.
  • Malformed HTTP responses (including BadStatusLine) are handled as plain download errors with statusCode: null.
  • Server-side redirects are followed; the final status, not every redirect, is reported. HTTP 300–399 responses left unresolved are classified as up by the defined HTTP rule.
  • No billing calls, external API keys, scraping of protected pages, or continuous background monitoring.

Run locally and verify

Provide a local input file at storage/key_value_stores/default/INPUT.json or set ACTOR_INPUT_JSON to the input JSON. From the Actor root:

python src/main.py
python -m unittest discover -s tests -p 'test_*.py' -v
python tests/smoke_run.py

Local output: storage/datasets/default/000000001.json (and later numbered files). tests/smoke_run.py launches a localhost fixture server, executes python src/main.py as a real subprocess, and prints both terminal output and the saved dataset item. For this isolated test only, it sets EICHAN_TEST_LOOPBACK=1; normal runs and all cloud runs deny loopback/private URLs. The fixture is not a substitute for a real external network/cloud build test.

Deploy to Apify

Upload the entire Actor folder, build from the provided Dockerfile, and run it from the input form or schedule. The Apify runtime provides APIFY_TOKEN, APIFY_DEFAULT_DATASET_ID, and the input storage ID. These are internal run credentials, never supplied by the user; external API credentials are not required. The Actor calls Apify's Storage API using only Python's standard library.

Store categories and suggested pricing

  • Category: Automation (primary)
  • Secondary category: Developer tools
  • Suggested pricing model: Pay per event — a per-run actor-start event (provisional $0.005 per run). The small 1–10 URL workload makes run pricing straightforward. Adjust after reviewing cloud execution costs and customer demand.
  • Actual billing: Not configured or charged. This code deliberately emits no billable event. Category placement and pricing must be set during future Store publication.