API Reference

Build with the Resolver API

One endpoint, clean JSON, no key needed yet. The base URL is wherever this site is served from.

POST /api/resolve Live

Turn a DiskWala share link into structured file metadata.

Request body

{ "url": "https://www.diskwala.com/app/6aaf568817fa9fcfda4c128a" }

Response · 200 OK

{
  "share_id":   "6aaf568817fa9fcfda4c128a",
  "title":      "video_1080p.mkv",
  "size":        2846400512,
  "size_human":  "2.65 GB",
  "mime":        "video/x-matroska",
  "extension":   "mkv",
  "thumbnail":   "https://…",
  "uploader":    { "id": "…", "name": "…", "avatar": "https://…" },
  "stream_url":   null,   // direct URLs — coming soon
  "download_url": null,
  "session_active": true
}

Errors

400Not a DiskWala share link, or the link is dead/private.
422Malformed request body (missing/oversized url) — FastAPI's standard {"detail":[…]} shape.
429Rate limited — 10 requests/min per IP.
502Upstream (DiskWala) unreachable or misbehaving.
503sign_error — the signing oracle is down. Check the status page.

Example

curl -X POST https://<this-host>/api/resolve \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.diskwala.com/app/6aaf568817fa9fcfda4c128a"}'
GET /api/health Live

Service heartbeat — also powers the status page.

{
  "status":         "ok",
  "oracle_mode":    "cdp",      // request-signing oracle mode
  "oracle_ready":   true,
  "session_active": true,
  "uptime_s":       4021.7,
  "cache_entries":  17
}

Planned

GET /api/stream/{share_id} coming soon
GET /api/download/{share_id} coming soon

Direct video URLs — these unlock in-browser watch and one-click download. They return 501 until then.

Internal — not a public API

POST /api/phone/resolve
GET /api/phone/status/{job_id}
GET /api/phone/file/{job_id}

Worker-device job queue (single worker, one job at a time). Unstable and subject to change without notice — don't build on these.

Rate limits

10

requests / min / IP

500

requests / min global

5 min

metadata cache TTL