Get Profile Picture
Get WhatsApp Profile Photo
GET https://api.wapim.io/api/v1/whatsapp/profilephoto
Query Parameters
Name
Type
Description
chat_id*
String
Phone Number or Group ID
Headers
Name
Type
Description
Token*
YOUR_WAPIM_TOKEN
{
"URL": "https://cdn.wapim.io/pp/14155238886.jpeg"
}curl
-X GET https://api.wapim.io/api/v1/whatsapp/profilephoto?chat_id=14155238886
-H 'Token: YOUR_WAPIM_TOKEN'const axios = require('axios');
const chatID = "14155238886"
axios
.get(
'https://api.wapim.io/api/v1/whatsapp/profilephoto?chat_id=' + chatID,
{
headers: {
token: 'YOUR_WAPIM_TOKEN',
}
}
)
.then(response => console.log(response.data))
.catch(error => console.log(error.response.data))Last updated