Get Stories
It contains content from the last 24 hours. Please use "page" param.)
Get WhatsApp Stories
GET
https://api.wapim.io/api/v1/whatsapp/stories
Query Parameters
Name
Type
Description
page
String
1
Headers
Name
Type
Description
Token*
YOUR_WAPIM_TOKEN
{
"data": [
{
"url": "https://cdn.wapim.io/media/videos/3A80B5B6BFF***.mp4",
"width": 480,
"height": 848,
"caption": "****",
"chat_id": "status",
"from_me": false,
"is_group": true,
"phone_id": "****",
"mime_type": "video/mp4",
"timestamp": 167635***,
"event_name": "VideoMessage",
"message_id": "3A80B5B6BFF***",
"file_length": 3946620,
"instance_id": "436e6b56-d25f-***",
"thumbnail_url": "https://cdn.wapim.io/media/videos/3A80B5B6BFF***_thumbnail.jpg",
"to_phone_number": "****",
"from_phone_number": "****"
},
{
"url": "https://cdn.wapim.io/media/images/ABB3A31F77193EE9E7AD45***.jpg",
"width": 1080,
"height": 973,
"caption": "****",
"chat_id": "status",
"from_me": false,
"is_group": true,
"phone_id": "****",
"mime_type": "image/jpeg",
"timestamp": 167634***,
"event_name": "ImageMessage",
"message_id": "ABB3A31F77193EE9E7AD45***",
"file_length": 65151,
"instance_id": "436e6b56-d25f-457b-****",
"thumbnail_url": "https://cdn.wapim.io/media/images/ABB3A31F77193EE9E7AD45***_thumbnail.jpg",
"to_phone_number": "****",
"from_phone_number": "****"
},
]
}
curl
-X GET https://api.wapim.io/api/v1/whatsapp/stories
-H 'Token: YOUR_WAPIM_TOKEN'
const axios = require('axios');
axios
.get(
'https://api.wapim.io/api/v1/whatsapp/stories',
{
headers: {
token: 'YOUR_WAPIM_TOKEN',
}
}
)
.then(response => console.log(response.data))
.catch(error => console.log(error.response.data))
Last updated