curl --request GET \
--url https://api.cloudcruise.com/run/{session_id}/network \
--header 'cc-key: <api-key>'import requests
url = "https://api.cloudcruise.com/run/{session_id}/network"
headers = {"cc-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'cc-key': '<api-key>'}};
fetch('https://api.cloudcruise.com/run/{session_id}/network', 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://api.cloudcruise.com/run/{session_id}/network",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"cc-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://api.cloudcruise.com/run/{session_id}/network"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cc-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://api.cloudcruise.com/run/{session_id}/network")
.header("cc-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/run/{session_id}/network")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cc-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"session_id": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
"complete": true,
"omitted_bodies": 0,
"events": [
{
"id": "<string>",
"retry": 0,
"timestamp": "2023-11-07T05:31:56Z",
"method": "POST",
"status": 200,
"url": "https://app.example.com/api/claims",
"category": "api",
"content_type": "application/json",
"request_headers": {},
"response_headers": {},
"request_body": "<string>",
"response_body": "<string>",
"request_truncated": true,
"response_truncated": true
}
]
}Get run network traffic
Returns all network traffic recorded for a run, in one response. Traffic is recorded for runs started with debug: true and for workflows with network listening enabled, on workers with network capture.
- Events are sorted oldest first.
retryis the attempt that produced the event. - Credentials (cookies, auth headers, tokens) are redacted. Bodies are kept: JSON, HTML, text and XML bodies up to 2 MB in debug runs, all other bodies up to 100 KB.
request_truncated/response_truncatedmark a cut body. - One call returns at most 100 MB of bodies, counting only events it returns. Bodies beyond that are
null, withrequest_truncated/response_truncatedset;omitted_bodiescounts them. - If the workflow has Extract Network nodes with
full_request: true, request bodies are kept only for those nodes’ URLs;request_bodyisnullfor all other requests. completeisfalsewhile the run is still in progress; fetch again after it ends for the full traffic.- By default, noise (preflights, analytics, assets, health pings, …) is filtered out. Pass
include_noise=trueto get every captured event.
curl --request GET \
--url https://api.cloudcruise.com/run/{session_id}/network \
--header 'cc-key: <api-key>'import requests
url = "https://api.cloudcruise.com/run/{session_id}/network"
headers = {"cc-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'cc-key': '<api-key>'}};
fetch('https://api.cloudcruise.com/run/{session_id}/network', 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://api.cloudcruise.com/run/{session_id}/network",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"cc-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://api.cloudcruise.com/run/{session_id}/network"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cc-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://api.cloudcruise.com/run/{session_id}/network")
.header("cc-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/run/{session_id}/network")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cc-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"session_id": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
"complete": true,
"omitted_bodies": 0,
"events": [
{
"id": "<string>",
"retry": 0,
"timestamp": "2023-11-07T05:31:56Z",
"method": "POST",
"status": 200,
"url": "https://app.example.com/api/claims",
"category": "api",
"content_type": "application/json",
"request_headers": {},
"response_headers": {},
"request_body": "<string>",
"response_body": "<string>",
"request_truncated": true,
"response_truncated": true
}
]
}Authorizations
API key-based authentication. Provide your CloudCruise API key in the cc-key header.
Path Parameters
Unique identifier for the workflow execution session
Query Parameters
Return every captured event instead of filtering noise
Response
Network traffic successfully retrieved
All recorded network traffic of a workflow run
Unique identifier for the workflow execution session
"e5f6a7b8-9abc-4def-0123-56789abcdef0"
True once the run has ended and all traffic has been stored
true
Number of request and response bodies returned as null because this call's 100 MB body budget was used up
0
Recorded requests, oldest first
Show child attributes
Show child attributes
Was this page helpful?

