Fetch a URL and report status, timing, and redirect info.
This GET-first endpoint downloads a public URL (HEAD+GET fallback) and returns status metadata, response headers, and optional body snippet. Useful for uptime checks and lightweight monitors.
GETPOST
/checks/status-checkParameters
Query Parameters
| Name | Type | Description |
|---|---|---|
| url | string · required | Absolute URL to fetch (http/https). |
| method | string | HTTP method to use. |
| timeout | number | Timeout in seconds (max 30). |
| max_redirects | integer | Maximum redirects to follow. |
| include_body | boolean | When true, include first 1024 bytes of body (text only). |
| dryrun | boolean | Dryrun simulates the response shape without performing network I/O. |
All helper calls accept your Dataczar key via the ak query parameter. Need one? Create or copy a key on Dataczar Connect and drop it into each request.
Responses
Status 200
Status fetched (or simulated in dryrun).
{
"ok": true,
"data": {
"url": "https://www.dataczar.com/",
"status_code": 200,
"final_url": "https://www.dataczar.com/",
"redirect_count": 0,
"duration_ms": 231,
"headers": {
"content-type": "text/html; charset=utf-8"
},
"body_preview": "<!doctype html>..."
},
"meta": {
"service": "test/status-check",
"dryrun": false,
"request_id": "req_123"
}
}Examples
Request
"GET /test/status-check?url=https://example.com&ak=demo"Response
{
"ok": true,
"data": {
"url": "https://example.com",
"status_code": 200,
"final_url": "https://example.com",
"redirect_count": 0,
"duration_ms": 180,
"headers": {
"server": "ECS"
}
},
"meta": {
"dryrun": false
}
}Request
"GET /test/status-check?url=https://example.com&dryrun=1"Response
{
"ok": true,
"data": {
"url": "https://example.com",
"status_code": 200,
"final_url": "https://example.com",
"redirect_count": 0,
"duration_ms": 0,
"headers": {}
},
"meta": {
"dryrun": true
}
}Test Contracts
[
{
"name": "reject_missing_url",
"method": "GET",
"params": {},
"expect_status": 400
},
{
"name": "dryrun_skip_fetch",
"method": "GET",
"params": {
"url": "https://example.com",
"dryrun": true
},
"expect": {
"status_code": 200
}
}
]Grab your Dataczar API key
Every helper runs with the same simple API key. Sign in (or create a free Dataczar account) at Dataczar Connect to issue keys in seconds, then drop the key into any `ak=` parameter and start shipping.
Tip: reuse the same key across these helpers, or rotate keys per project from the Connect dashboard.