Skip to content

Docs

REST API

HTTP API for xpaling.com. The free tier needs no key: POST JSON, get 202 and a report URL. Errors are RFC 7807 problem+json. OpenAPI 3.1 · MCP

https://xpaling.com/api/v1v1 · JSON · errors as problem+json

Basics

  • Base URL: https://xpaling.com/api/v1
  • Works anonymously: 10 public observations a day per IP address. Send Authorization: Bearer xp_live_… to use your plan quota instead (Free 100 public + 10 private a day and 2,000 API calls; Pro 2,000 + 1,000 and 50,000 calls; Team 10,000 + 5,000 and 300,000 calls); create keys on /account. Every request made with a key counts as one API call. Reading pages, .md and .json without a key is not metered.
  • For everyone, signed in or not: at most 5 new observations of one registered domain a day (one shared count). A public URL observed in the last hour is returned again (200, existing: true) and does not count.
  • All errors return application/problem+json, with type pointing at an error code below.

POST /scan Submit a URL

curl -X POST https://xpaling.com/api/v1/scan \
  -H 'Content-Type: application/json' \
  -d '{"url": "https://example.com", "visibility": "public"}'
Request fields
FieldTypeDescription
urlstringRequired. Scheme optional, defaults to https.
visibilitypublic | unlisted | privateDefault public: listed on domain, hub and sitemap pages. unlisted is reachable but not indexed; private is visible only to the submitter (sign-in required).
regioneuEvery observation is from the EU; optional.
ua, refererstringPro: custom User-Agent / Referer.

Response 202 Accepted (new observation) or 200 OK (an identical public observation from the last hour is reused):

{
  "id": "emsxxzxw5r",
  "existing": false,
  "url": "https://example.com/",
  "report": "https://xpaling.com/host/example.com/rep/emsxxzxw5r",
  "status_url": "https://xpaling.com/api/v1/scan/emsxxzxw5r"
}

GET /scan/{id} Status

Returns {"id", "status", …} where status is one of queued, running, writing, done, failed. Before done the answer also carries stage and step (1–4, the step the waiting page shows), url, host, created_at. writing means the page has been observed and the report is being written into the record: its pages and .json answer 404 until then. done carries report (the same object as the report's .json); a re-check that found nothing new answers {"status": "done", "unchanged": true, "report_id", "report"} with the report it confirmed. Poll every ~3 seconds (Retry-After).

Report — /host/{host}/rep/{id}.json, …/rep/{id}.md

Report data lives at the content URL itself, in two machine formats:

  • https://xpaling.com/host/{host}/rep/{id}.json — full structured data: findings, identity, infrastructure, external dependencies, endpoints.
  • https://xpaling.com/host/{host}/rep/{id}.md — a Markdown digest for LLMs.

Lookups

Hub pages are the lookup results; append .json for data:/ip/{ip}.json, /asn/{n}.json, /ns/{slug}.json, /mail/{slug}.json, /cname/{target}.json, /thirdparty/{domain}.json, /tech/{name}.json, /wallet/{addr}.json, /js/{sha256}.json. A host's own record — the latest report in full, relations, timeline, subdomains — is at /host/{host}.json and /host/{host}.md.

Boxes — /cases

Put a batch of URLs into a box and xpaling finds the specific things they share (one analytics property, one script, one certificate, one API path…). Links are compared only inside the box; sites that match nothing are listed separately. Needs an API key; every URL counts toward your observation quota, recent observations are reused.

  • POST /cases {"name": "…", "urls": ["…"], "visibility": "private"} → 202 {"id", "url", "json", "added", "reused", "submitted", "skipped"}
  • POST /cases/{id}/members {"urls": ["…"]} — add members; the box is re-analyzed.
  • GET /cases/{id} — the result: links[] (each with hosts and evidence URLs), clusters[], unlinked[], observing[]. Same as /account/cases/{id}.json; .md for LLMs.
  • GET /cases — your boxes. DELETE /cases/{id}.

Boxes and members per box depend on the plan: Free 1 × 10 · Pro 20 × 100 · Team 100 × 1,000.

Error codes

Error codes
typeHTTPMeaning
invalid_json400Request body is not valid JSON.
missing_url400The url field is missing.
missing_urls400The urls list is missing or empty.
empty400The url field is empty.
invalid_url400The URL could not be parsed.
too_long400The URL is longer than 2048 characters.
invalid_host400Hostname is incomplete (no dot).
unsupported_scheme400Only http and https are supported.
private_host400Private or loopback addresses are not observed.
excluded_host400This domain is not observed: xpaling's own domains, the large platforms' own domains (Google, Meta, Microsoft, Apple, Amazon, X, TikTok, Telegram …) and Dutch government domains. Bulk collection counts them as skipped_excluded.
unauthorized401This path needs an API key: Authorization: Bearer xp_live_….
login_required401Private observations need a sign-in (web) or an API key.
not_found404The observation or box does not exist, or is not visible to you.
method_not_allowed405This path does not accept that method (see the Allow header).
rate_limited_ip429Without a key, this IP address has used its 10 public observations for today.
rate_limited_domain429This registered domain has had 5 new observations today — one count shared by everyone, signed in or not.
quota_exceeded429Today's plan quota is used up (observations, private observations or API calls).
case_limit429The plan's number of boxes is reached.
request_failed500The request could not be completed.
database_unavailable503The record store is temporarily unavailable; retry later.
enqueue_failed503The observation could not be queued; retry later.

Fair use

Submit only sites you own, are authorized to assess, or are checking for defensive purposes (phishing, impersonation). Reports may be cited freely with attribution to "xpaling". Site owners can ask for a correction; see Corrections.

Cite as xpaling, REST API reference, https://xpaling.com/docs/api