get
https://www.virustotal.com/api/v3/ddw_communication_channels//previous_communications/
Fetches the previous chronological records in a Communication Channel, using a provided Communication ID as the reference point. This endpoint returns a list of Communication objects.
Examples
Retrieve the content and content_translated attributes for the 10 communications immediately preceding ID 5f5c625e-c262-440e-8d11-54f96fc78f96 within channel f0fb347760e42d9177466ae0429f2dfb72d53597bd253655c78dfb16fddb1504
import requests
id = "f0fb347760e42d9177466ae0429f2dfb72d53597bd253655c78dfb16fddb1504"
communication_id = "5f5c625e-c262-440e-8d11-54f96fc78f96"
attributes = "content,content_translated"
limit = 10
url = f"https://www.virustotal.com/api/v3/ddw_communication_channels/{id}/previous_communications/{communication_id}?attributes={attributes}&limit={limit}"
headers = {
"accept": "application/json",
"x-apikey": <api-key>
}
response = requests.get(url, headers=headers)