V2 Victims
Get Victim Cookie Inventory
Return value-redacted cookie metadata for one victim. This route is for browsing/filtering cookies; raw cookie values are only fetched through selected-domain inspection.
GET
https://oathnet.org/api
/
service
/
v2
/
victims
/
{log_id}
/
cookies
Get Victim Cookie Inventory
curl --request GET \
--url https://oathnet.org/api/service/v2/victims/{log_id}/cookies \
--header 'x-api-key: <api-key>'import requests
url = "https://oathnet.org/api/service/v2/victims/{log_id}/cookies"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://oathnet.org/api/service/v2/victims/{log_id}/cookies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://oathnet.org/api/service/v2/victims/{log_id}/cookies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://oathnet.org/api/service/v2/victims/{log_id}/cookies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://oathnet.org/api/service/v2/victims/{log_id}/cookies")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://oathnet.org/api/service/v2/victims/{log_id}/cookies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"log_id": "<string>",
"items": [
{
"domain": "<string>",
"cookie_domain": "<string>",
"name": "<string>",
"path": "<string>",
"expires_at": "<string>",
"expires_unix": 123,
"status": "active",
"session": true,
"secure": true,
"http_only": true,
"source_file_id": "<string>",
"source_path": "<string>",
"line_number": 123
}
],
"domains": [
{
"domain": "<string>",
"count": 123,
"active": 123,
"expired": 123,
"session": 123,
"secure": 123,
"http_only": 123,
"source_files": 123
}
],
"meta": {
"count": 123,
"total": 123,
"took_ms": 123,
"has_more": true,
"total_pages": 123,
"max_score": 123,
"filter_id": "0123456789abcdef01234567"
},
"next_cursor": "<string>",
"files_scanned": 123,
"files_matched": 123,
"truncated": true,
"values_redacted": true,
"warnings": [
"<string>"
],
"policy_redacted": true,
"upgrade_required": true,
"redaction_marker": "<string>"
}Authorizations
API key for authentication (lowercase header name)
Path Parameters
Query Parameters
Available options:
all, active, expired, session Number of results to return.
Required range:
1 <= x <= 200Cursor token from the previous response's next_cursor.
Search session ID from POST /service/search/init.
Response
200 - application/json
Raw cookie inventory response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Get Victim Cookie Inventory
curl --request GET \
--url https://oathnet.org/api/service/v2/victims/{log_id}/cookies \
--header 'x-api-key: <api-key>'import requests
url = "https://oathnet.org/api/service/v2/victims/{log_id}/cookies"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://oathnet.org/api/service/v2/victims/{log_id}/cookies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://oathnet.org/api/service/v2/victims/{log_id}/cookies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://oathnet.org/api/service/v2/victims/{log_id}/cookies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://oathnet.org/api/service/v2/victims/{log_id}/cookies")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://oathnet.org/api/service/v2/victims/{log_id}/cookies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"log_id": "<string>",
"items": [
{
"domain": "<string>",
"cookie_domain": "<string>",
"name": "<string>",
"path": "<string>",
"expires_at": "<string>",
"expires_unix": 123,
"status": "active",
"session": true,
"secure": true,
"http_only": true,
"source_file_id": "<string>",
"source_path": "<string>",
"line_number": 123
}
],
"domains": [
{
"domain": "<string>",
"count": 123,
"active": 123,
"expired": 123,
"session": 123,
"secure": 123,
"http_only": 123,
"source_files": 123
}
],
"meta": {
"count": 123,
"total": 123,
"took_ms": 123,
"has_more": true,
"total_pages": 123,
"max_score": 123,
"filter_id": "0123456789abcdef01234567"
},
"next_cursor": "<string>",
"files_scanned": 123,
"files_matched": 123,
"truncated": true,
"values_redacted": true,
"warnings": [
"<string>"
],
"policy_redacted": true,
"upgrade_required": true,
"redaction_marker": "<string>"
}