Port scan
curl --request POST \
--url https://api.ipulse.one/v2/toolbox/port-scan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"host": "example.com",
"ports": "80,443,22-25"
}
'import requests
url = "https://api.ipulse.one/v2/toolbox/port-scan"
payload = {
"host": "example.com",
"ports": "80,443,22-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({host: 'example.com', ports: '80,443,22-25'})
};
fetch('https://api.ipulse.one/v2/toolbox/port-scan', 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.ipulse.one/v2/toolbox/port-scan",
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([
'host' => 'example.com',
'ports' => '80,443,22-25'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "<string>",
"data": {
"host": "<string>",
"scan_results": [
{
"port": 123,
"status": "open",
"service": "<string>"
}
]
}
}{
"success": false,
"message": "Unauthenticated."
}{
"success": false,
"message": "This feature requires an Expert Plan subscription."
}{
"success": false,
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}Toolbox
Port scan
Scan network ports on a target host (Expert Plan required)
POST
/
v2
/
toolbox
/
port-scan
Port scan
curl --request POST \
--url https://api.ipulse.one/v2/toolbox/port-scan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"host": "example.com",
"ports": "80,443,22-25"
}
'import requests
url = "https://api.ipulse.one/v2/toolbox/port-scan"
payload = {
"host": "example.com",
"ports": "80,443,22-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({host: 'example.com', ports: '80,443,22-25'})
};
fetch('https://api.ipulse.one/v2/toolbox/port-scan', 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.ipulse.one/v2/toolbox/port-scan",
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([
'host' => 'example.com',
'ports' => '80,443,22-25'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "<string>",
"data": {
"host": "<string>",
"scan_results": [
{
"port": 123,
"status": "open",
"service": "<string>"
}
]
}
}{
"success": false,
"message": "Unauthenticated."
}{
"success": false,
"message": "This feature requires an Expert Plan subscription."
}{
"success": false,
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}This endpoint scans network ports on a target host to check for open services.
Expert Plan Required - This endpoint requires an active Expert Plan subscription for API access.
Authorizations
bearerAuthagentAuth
Body
application/json
⌘I

