Reload
curl --request POST \
--url https://api.example.com/browser/sessions/{id}/reload \
--header 'Content-Type: application/json' \
--data '
{
"ignoreCache": true,
"waitUntil": "<string>",
"timeout": 123
}
'import requests
url = "https://api.example.com/browser/sessions/{id}/reload"
payload = {
"ignoreCache": True,
"waitUntil": "<string>",
"timeout": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ignoreCache: true, waitUntil: '<string>', timeout: 123})
};
fetch('https://api.example.com/browser/sessions/{id}/reload', 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.example.com/browser/sessions/{id}/reload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ignoreCache' => true,
'waitUntil' => '<string>',
'timeout' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/browser/sessions/{id}/reload"
payload := strings.NewReader("{\n \"ignoreCache\": true,\n \"waitUntil\": \"<string>\",\n \"timeout\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/browser/sessions/{id}/reload")
.header("Content-Type", "application/json")
.body("{\n \"ignoreCache\": true,\n \"waitUntil\": \"<string>\",\n \"timeout\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/browser/sessions/{id}/reload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ignoreCache\": true,\n \"waitUntil\": \"<string>\",\n \"timeout\": 123\n}"
response = http.request(request)
puts response.read_body{
"url": "<string>",
"pageId": "<string>"
}Browser Sessions
Reload
Reload the active tab, optionally bypassing the HTTP cache.
POST
/
browser
/
sessions
/
{id}
/
reload
Reload
curl --request POST \
--url https://api.example.com/browser/sessions/{id}/reload \
--header 'Content-Type: application/json' \
--data '
{
"ignoreCache": true,
"waitUntil": "<string>",
"timeout": 123
}
'import requests
url = "https://api.example.com/browser/sessions/{id}/reload"
payload = {
"ignoreCache": True,
"waitUntil": "<string>",
"timeout": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ignoreCache: true, waitUntil: '<string>', timeout: 123})
};
fetch('https://api.example.com/browser/sessions/{id}/reload', 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.example.com/browser/sessions/{id}/reload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ignoreCache' => true,
'waitUntil' => '<string>',
'timeout' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/browser/sessions/{id}/reload"
payload := strings.NewReader("{\n \"ignoreCache\": true,\n \"waitUntil\": \"<string>\",\n \"timeout\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/browser/sessions/{id}/reload")
.header("Content-Type", "application/json")
.body("{\n \"ignoreCache\": true,\n \"waitUntil\": \"<string>\",\n \"timeout\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/browser/sessions/{id}/reload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ignoreCache\": true,\n \"waitUntil\": \"<string>\",\n \"timeout\": 123\n}"
response = http.request(request)
puts response.read_body{
"url": "<string>",
"pageId": "<string>"
}Overview
The/browser/sessions/{id}/reload endpoint reloads the currently active tab. By default the reload reuses the HTTP cache; pass ignoreCache: true to force a full re-fetch of all resources.
The call blocks until the configured wait condition is met or the timeout elapses.
Path Parameters
string
required
Browser session ID (UUID). Create via
POST /browser/sessions.Body
All body fields are optional — the request body may be omitted entirely.boolean
default:"false"
When
true, bypasses the HTTP cache (equivalent to Ctrl+Shift+R). Re-fetches all resources from origin.string
default:"load"
When to consider the reload finished. One of
load, domcontentloaded, networkidle.integer
default:"30000"
Maximum time (ms) to wait for the reload to complete. Range
0–120000.Example Request
curl -X POST "https://api.scrapengine.io/api/v1/browser/sessions/0f2b1f6a-88ac-4d25-bc58-67a6f4b4a001/reload" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
curl -X POST "https://api.scrapengine.io/api/v1/browser/sessions/0f2b1f6a-88ac-4d25-bc58-67a6f4b4a001/reload" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ignoreCache": true,
"waitUntil": "networkidle"
}'
const response = await fetch(
"https://api.scrapengine.io/api/v1/browser/sessions/0f2b1f6a-88ac-4d25-bc58-67a6f4b4a001/reload",
{
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
ignoreCache: true,
waitUntil: "networkidle",
}),
},
);
const data = await response.json();
import requests
url = "https://api.scrapengine.io/api/v1/browser/sessions/0f2b1f6a-88ac-4d25-bc58-67a6f4b4a001/reload"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
}
payload = {
"ignoreCache": True,
"waitUntil": "networkidle",
}
response = requests.post(url, headers=headers, json=payload)
data = response.json()
Response
Success Response (200)
string
Effective URL of the active tab after reload.
string
CDP target identifier of the tab the reload applied to.
{
"url": "https://example.com/",
"pageId": "EA5E9AA71C7A91C467F8CDBB266EE5E0"
}
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — invalid or missing API key. |
404 | Session not found or not owned by the caller. |
408 | Reload did not complete before timeout elapsed. |
503 | The browser session is temporarily unreachable. |
Notes
ignoreCache: trueis equivalent toCtrl+Shift+R— re-fetches all resources bypassing the HTTP cache.- The URL of the active tab is preserved across reloads; only the document and its subresources are refetched.
Was this page helpful?