Help Desk
  • Getting Started
    • ๐Ÿ™ŒWelcome to Whapi.Cloud
    • ๐Ÿ’ฐPricing
    • โ˜•Partners
    • ๐Ÿš€Getting started
    • ๐Ÿ‘จโ€๐Ÿ’ปAPI Docs
      • Developer hubs
      • Swagger environment
      • Postman collection
  • Sending
    • Introduction
    • Send text message
      • Whatsapp API send message PHP
      • Whatsapp API send message Python
      • Whatsapp API send message Node JS
      • Whatsapp API send message ะก#
      • Whatsapp API send message Java
      • API integration with VB6
      • Whatsapp API send message GO (Golang)
    • Send video, audio, image, document
    • Send Group message
    • Send post to WhatsApp Channel
    • Send message with Buttons
    • Send Emoji
    • Overview of other methods for sending
      • Send Voice message
      • Send contact (vCard)
      • Send message reactions
  • Receiving
    • Introduction
    • Webhooks
      • Our webhooks (Tracked events)
      • Where to Find the Webhook URL?
      • Set the webhook link to the channel
      • Detailed webhook settings
      • How to check the webhook?
      • Incoming webhooks format
        • Incoming message
        • Sent message
        • Chats
        • Groups
        • Account and device status
        • Other
          • Presences
          • Views of stories (statuses)
          • Story (status) from your contacts
          • Calls
      • Receive messages
        • Receive WhatsApp messages using PHP
        • Receive WhatsApp messages using Node js
        • Receive WhatsApp messages using Python
    • HTTP API
      • Retrieve a Specific User's Chat History
      • Get a full-size picture in the response
      • Get order items
      • Get a profile picture of a chat or user
    • File expiration period
  • Groups
    • Send Group message
      • Mentioning all participants in a WhatsApp group
    • Get list of group members
    • Add new member to Group
  • Channels
    • Send post to WhatsApp Channel
    • Get messages from Channels
    • Get votes from polls in the Channel
  • Communities
    • Introduction
    • Create a community
    • Add a member to a community
    • Send announcement
    • Get info on community participants
    • Add a group / Exclude a group from the community
  • Account
    • Setting "Auto Download"
    • Customizable Webhook Headers
    • How to find out the IP channel
    • How to Delete a Channel
    • Add Business Info to Invoice
  • Source code
    • WhatsApp ChatBot
      • WhatsApp Python Bot
      • WhatsApp PHP Bot
      • WhatsApp Node JS Bot
      • WhatsApp Java Bot
    • WhatsApp API Google Sheets
    • WhatsApp Phone Number Checker
    • Request Distributor (Balancer)
  • FAQ
    • Chat ID. What is it and how to get it?
    • Current status of Buttons on WhatsApp
    • How to send a paragraph (line break)
    • Inactive Links in WhatsApp Messages
    • WhatsApp Text Formatting
    • Checking if the number has Whatsapp
    • Specifics of sending messages to numbers of different countries
    • Why aren't participants being added to the group?
  • Does WhatsApp API Work with the Phone Turned Off?
  • Hints
    • Android Emulators
    • Virtual Numbers for WhatsApp
    • How to use polls as buttons?
    • How to check who blocked you in Whatsapp?
    • Setting up a WhatsApp proxy
  • Integrations
    • Make.com
      • Ready-Made Scenarios
        • WhatsApp & Whisper API: Voice-to-Text Integration
        • Automated WhatsApp Group Message Forwarding in Make.com
      • Request Scenario Setup
    • Pabbly Connect
    • Google Contacts
    • DialogFlow
    • n8n
  • Tools
    • WhatsApp Number Checker
    • Automatic warm-up module
    • WhatsApp Activity Safety Meter
    • Residential Proxies from Whapi.Cloud
  • Troubleshooting
    • Couldn't Link Device โ€“ WhatsApp QR Code or Pairing Code Fails
    • Channel status โ€œSYNC_ERRORโ€
    • Not getting a READ status on webhook
    • 429 (Too Many Requests) - Soft Ban
    • โ€œWaiting for this message. This may take a whileโ€ โ€“ WhatsApp Message Error
    • Missing push notifications after connecting to API
  • Blocking
    • How to not get Banned?
    • How to do mailings without the risk of being blocked?
    • If My Number Is Banned, Can It Be Restored?
    • Unlocking Your WhatsApp Number
    • Connecting a New WhatsApp Number After a Ban: Steps and Recommendations
    • Warming Up New Phone Numbers for WhatsApp API
  • Partner Documentation
    • Introduction
    • Partner Dashboard Overview
    • Partner Program Guidelines
      • Workflow: Step-by-Step
      • Billing for Partners
      • Allocating Days to Customer Channels: Best Practices & Guide
      • Interface for channel management
    • Partner Documentation
      • Channel creation
      • Changing channel mode
      • Channel extension
      • Channel deletion
      • Getting the list of channels
      • Notices of end of days on balance
Powered by GitBook
On this page
  • Get a contact image or chat/group picture
  • Why is it done this way?
  • How to get a profile pic if the user is not in your Contacts List
  • WhatsApp Profile Picture Retriever Script

Was this helpful?

  1. Receiving
  2. HTTP API

Get a profile picture of a chat or user

Explore this if you need to know about contact and chat avatars

PreviousGet order itemsNextFile expiration period

Last updated 7 months ago

Was this helpful?

Get a contact image or chat/group picture

Very often developers and businesses need to retrieve details about a contact, including a profile image. It is quite easy to do it via API. To get chat or profile images in requests such as , , , you need to enable the init_avatars setting in the channel and re-authorize.

curl --request PATCH \
     --url https://gate.whapi.cloud/settings \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {your_token}' \
     --header 'content-type: application/json' \
     --data '
{
  "media": {
    "init_avatars": true
  }
}
'

Setting init_avatars: true allows you to get chat avatars after channel authorization. Thus, you will need to reconnect to the channel again. Or set this setting before connecting. This setting requires only one-time activation and the channel remembers this setting.

Why is it done this way?

The fact is that uploading contacts and handling profile pictures for WhatsApp is a massive activity, as you are actively getting to know many contacts in a short period of time. To reduce the risks for new fresh numbers, we decided to introduce this setting.

This way, you will be out of risk when you connect. However, if your number is already stable with the API, you can safely automatically get profile images of all contacts and chats using this setting.

How to get a profile pic if the user is not in your Contacts List

The previous setting is only relevant for chats that are present in your app. However, you can also get this information about any contact outside of your phonebook and without corresponding with them. The cell phone user is not made aware of this!

curl --request GET \
     --url https://gate.whapi.cloud/contacts/919984351847/profile \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {your_token}'

WhatsApp Profile Picture Retriever Script

This script allows users to bulk retrieve WhatsApp profile pictures by phone numbers. It leverages the Whapi.Cloud API to automate WhatsApp interactions. After connecting your phone to the API and obtaining a token, you can use the script to download profile pictures by providing a list of phone numbers in a CSV file.

For more information and instructions, .

click here
Get Chats
Get Contacts
Get Messages
Update channel settingsWhapi Cloud - Whatsapp API for developers
Endpoint to change channel settings
Contact profileWhapi Cloud - Whatsapp API for developers
This method allows you to get profile information (description, profile image) by phone number, even if it is not in your contact list
GitHub - Whapi-Cloud/whatsapp-get-profile-pictures: WhatsApp Profile Picture API. A simple tool to fetch and download WhatsApp profile pictures by phone numberGitHub
Source code for scraper
Logo
Logo
Logo