cURL
curl --request POST \ --url https://api.z-api.io/instances/{instanceId}/token/{token}/search-newsletter \ --header 'Client-Token: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "limit": 123, "filters": { "countryCodes": [ {} ] } } '
{ "id": "<string>", "creationTime": 123, "state": "<string>", "name": "<string>", "description": "<string>", "subscribersCount": "<string>", "inviteLink": "<string>", "verification": "<string>", "picture": "<string>", "preview": "<string>", "viewMetadata": { "mute": "<string>", "role": "<string>" } }
Search channels through filters
Show Properties
{ "limit": 50, "view": "TRENDING", "filters": { "countryCodes": ["BR", "AF", "CA"] }, "searchText": "Z-API" }
[ { "id": "999999999999999999@newsletter", "creationTime": 1695124988, "state": "ACTIVE", "name": "Channel name", "description": "Description", "subscribersCount": "150", "inviteLink": "https://whatsapp.com/channel/...", "verification": "VERIFIED", "picture": "https://...", "preview": "https://...", "viewMetadata": { "mute": "OFF", "role": "OWNER" } } ]