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
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
withapplication/ problem+json, typepointing at an error code below.
POST /scan Submit a URL
curl -X POSThttps:// \ -Hxpaling. com/ api/v1/ scan ' Content- Type: application/ \ -djson' '{" url": " https:// example. com", " visibility": " public"}'
| Field | Type | Description |
|---|---|---|
url | string | Required. Scheme optional, defaults to https. |
visibility | public | unlisted | private | Default public: listed on domain, hub and sitemap pages. unlisted is reachable but not indexed; private is visible only to the submitter |
region | eu | Every observation is from the EU; optional. |
ua, referer | string | Pro: custom |
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 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 with the report it confirmed. Poll every ~3 seconds
Report — /host/{host}/rep/{id}.json, …/rep/{id}.md
Report data lives at the content URL itself, in two machine formats:
— full structured data: findings, identity, infrastructure, external dependencies, endpoints.https:// xpaling. com/ host/{host}/ rep/{id}.json — a Markdown digest for LLMs.https:// xpaling. com/ host/{host}/ rep/{id}.md
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, /tech/{name}.json, /wallet/{addr}.json, /js/{sha256}.json. A /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 — add members; the box is{" ["…"]}urls": re-analyzed. GET /cases/{id}— the result:links[](each with hosts and evidence URLs),clusters[],unlinked[],observing[]. Same as/account/ cases/{id}.json; .mdfor 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
| type | HTTP | Meaning |
|---|---|---|
invalid_json | 400 | Request body is not valid JSON. |
missing_url | 400 | The url field is missing. |
missing_urls | 400 | The urls list is missing or empty. |
empty | 400 | The url field is empty. |
invalid_url | 400 | The URL could not be parsed. |
too_long | 400 | The URL is longer than 2048 characters. |
invalid_host | 400 | Hostname is incomplete (no dot). |
| 400 | Only http and https are supported. |
private_host | 400 | Private or loopback addresses are not observed. |
excluded_host | 400 | This domain is not observed: |
unauthorized | 401 | This path needs an API key: Authorization: Bearer xp_live_…. |
login_required | 401 | Private observations need a |
not_found | 404 | The observation or box does not exist, or is not visible to you. |
| 405 | This path does not accept that method (see the Allow header). |
rate_limited_ip | 429 | Without a key, this IP address has used its 10 public observations for today. |
| 429 | This registered domain has had 5 new observations today — one count shared by everyone, signed in or not. |
quota_exceeded | 429 | |
case_limit | 429 | The |
request_failed | 500 | The request could not be completed. |
| 503 | The record store is temporarily unavailable; retry later. |
enqueue_failed | 503 | The 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
Cite as xpaling, REST API reference,