App Logo
web.whatsapp.com

WhatsApp — Download media

Download the media of a WhatsApp message (image, document, audio/voice) by chat name + message id (the `id` from get_conversation / search_messages), returned as base64 plus filename, mimeType and size. Documents come back byte-for-byte — a file sent by send_message round-trips identically — and carry the filename WhatsApp itself saves them under. Images are read from the inline blob, which is WhatsApp's own rendition and may be smaller than a large original, so imageWidth/Height are reported rather than implying full fidelity. Audio/voice notes use the same path as documents but are unverified for lack of a fixture.

Input

id required

WhatsApp message id — the data-id from send_media's messageId, or from get_conversation/search_messages.

name required

Exact chat/contact/group name containing the message (the name field from get_inbox).

Output

size required

Byte size of the returned media.

base64 required
filename required
mimeType required
kind optional
imageWidth optional

Natural width of the rendition returned. For a large photo WhatsApp's inline blob can be smaller than the original upload.

imageHeight optional

Start building not clicking