Downloads the content of a specific file from a victim log.
Note: This endpoint returns raw text content, not JSON. Handle as plain text response.
SDKs handle this automatically.
GET
/
service
/
v2
/
victims
/
{log_id}
/
files
/
{file_id}
Get Victim File Content
Copy
curl --request GET \ --url https://oathnet.org/api/service/v2/victims/{log_id}/files/{file_id} \ --header 'x-api-key: <api-key>'
import requestsAPI_KEY = "your_api_key"log_id = "abc123def456"file_id = "f1" # From victim_tree in manifest# Get file content (returns raw text)response = requests.get( f"https://oathnet.org/api/service/v2/victims/{log_id}/files/{file_id}", headers={"x-api-key": API_KEY})# Use .text not .json() - this is plain text!content = response.textprint(content)