Case Study · Web Application

KRYPT WA-PIC DOWNLOADER

WhatsApp profile-picture lookup by phone number. Built and tested locally — not deployed, not published, not on GitHub. No live or source links exist.

← Back to Projects

Overview

Enter a phone number with country code. The tool fetches and previews the profile picture where it is publicly accessible, and downloads the retrieved image. One page: an input, a fetch button, a preview area, a download button — with validation and loading states.

Problem

WhatsApp has no public API for fetching another person's profile picture — the official Cloud API only reads a business's own photo. Any lookup tool depends on a third-party provider, and has to be honest about what happens when no provider is available instead of faking a result.

Process

The project went through three builds. First, an OpenData provider. Then a rebuild on Baileys (@whiskeysockets/baileys) as a persistent Node server — profilePictureUrl lookups, an onWhatsApp check, QR and pairing-code linking, multi-file session. Finally, a rebuild to run entirely on Vercel (v2.1): serverless functions replaced the persistent server, the QR requirement was removed, and lookups run through OpenData get-avatar with a CheckLeaked fallback.

Technologies used

Node.jsVercel Serverless FunctionsOpenData API (get-avatar)CheckLeaked fallback

Provider keys stay server-side. No secrets in frontend code.

Main features

  • Phone-number validation with country-code support
  • Loading states during lookup
  • Preview area for the retrieved profile picture
  • Download of the actual retrieved image
  • Honest error states — no provider key means a 501, and no fake or mock pictures are ever shown

Technical decisions

Serverless over a persistent server. The Baileys build needed a persistent host and a linked WhatsApp session. The final build runs as Vercel Serverless Functions on provider APIs instead — no persistent server, no QR linking.

Honest error states over faked results. With no provider configured, the lookup returns a 501 — never a substitute image or a simulated success.

Challenges encountered

  • No fully official, free, reliable option exists for this lookup — the provider comparison reached the same conclusion
  • The development sandbox blocks raw WebSocket connections, so no QR could be issued during the Baileys build — linking had to wait for a deployed host
  • OpenData's per-lookup price is unknown — the docs say “temporarily unavailable”, so cost must be confirmed in the provider dashboard before relying on it

What was learned

The provider comparison's conclusion: there is no fully official, free, reliable way to fetch another person's WhatsApp profile picture. The best no-QR option is OpenData get-avatar — a two-step userHash flow with a 24-hour cache — with CheckLeaked as fallback, both using server-side keys only. The final serverless build is based on that conclusion.

Status

  • BuildBuilt and tested locally — 7/7 tests passed
  • DeploymentNot deployed · Not published
  • GitHubNot on GitHub
  • Live demoNone
  • Source codeNot public