Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/pentest-tools-com:pentest-tools-com-scans-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: pentest-tools.com REST Scans API
version: 1.0.1.1
description: Operations done on Scans
servers:
- url: https://api.pentest-tools.com/api/v2
description: Recommended (auto-routes by API key region)
- url: https://app-us.pentest-tools.com/api/v2
description: US region (direct)
- url: https://app.pentest-tools.com/api/v2
description: Europe region (direct)
security:
- bearerAuth: []
tags:
- name: Scans
x-displayName: Scans
description: Operations done on Scans
paths:
/scans:
get:
summary: Get all scans
operationId: get_scans
tags:
- Scans
parameters:
- name: tool_id
in: query
description: ID of the tool to show scans from
required: false
schema:
type: integer
- name: workspace_id
in: query
description: ID of the workspace to show scans from. If not set, the scans from the active workspace (set in the web interface) will be returned.
required: false
schema:
type: integer
- name: target_id
in: query
description: ID of the target to show scans from
required: false
schema:
type: integer
- name: status
in: query
description: Status of the scans to be shown
required: false
schema:
type: string
enum:
- running
- finished
- failed to start
- stopped
- timed out
- waiting
- aborted
- VPN connection error
- auth failed
- connection error
readOnly: true
- name: limit
in: query
description: the maximum number of scans to return
required: false
schema:
type: integer
minimum: 1
maximum: 1000
default: 1000
- name: page
in: query
description: the page number to return
required: false
schema:
type: integer
minimum: 1
default: 1
- name: start_time
in: query
description: Start time interval of the scans to be shown
required: false
schema:
type: object
properties:
start:
type: string
format: date-time
example: '2023-01-01'
end:
type: string
format: date-time
example: 2023-01-31 12:02
responses:
200:
description: OK
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
maxItems: 1000
type: array
items:
$ref: '#/components/schemas/Scan'
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
422:
$ref: '#/components/responses/UnprocessableEntityError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
post:
summary: Start a scan
operationId: start_scan
tags:
- Scans
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Scan'
responses:
200:
description: Created
headers:
location:
schema:
type: string
pattern: /scans/[0-9]+
description: The path to the newly created scan
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
allOf:
- $ref: '#/components/schemas/CreatedResourceResponse'
- type: object
properties:
target_id:
type: integer
example: 5426912
description: the target_id of the target this scan is being run against
400:
description: Invalid parameters
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
422:
$ref: '#/components/responses/UnprocessableEntityError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
/scans/{id}:
parameters:
- name: id
in: path
description: id of scan
required: true
schema:
type: integer
get:
summary: Get scan information by ID
operationId: get_scan_status
tags:
- Scans
description: Get scan information by ID. For the output, see `/scans/{id}/output`
responses:
200:
description: OK
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Scan'
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
delete:
summary: Delete a scan
operationId: delete_scan
tags:
- Scans
description: Delete a scan.
responses:
204:
description: Deleted successfully
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
409:
description: Task not finished
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
/scans/{id}/output:
parameters:
- name: id
in: path
description: id of scan
required: true
schema:
type: integer
- name: Accept
in: header
schema:
type: string
enum:
- application/json
- application/pdf
get:
summary: Get scan output by ID
operationId: get_scan_output
tags:
- Scans
responses:
400:
description: Invalid parameters
500:
description: Internal server error
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
406:
description: Media type not supported
429:
$ref: '#/components/responses/TooManyRequestsError'
200:
description: OK
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/ScanOutput'
application/pdf:
schema:
type: string
format: binary
/scans/{id}/raw:
parameters:
- name: id
in: path
description: id of scan
required: true
schema:
type: integer
get:
summary: Get scan raw output by ID
operationId: get_scan_raw_output
tags:
- Scans
responses:
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
204:
description: No Content
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ScanRawOutput'
text/plain:
schema:
type: string
description: The raw output of the scan
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
/scans/{id}/stop:
parameters:
- name: id
in: path
description: id of the scan
required: true
schema:
type: integer
post:
summary: Stop an active scan
operationId: stop_scan
tags:
- Scans
responses:
204:
description: No Content
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
/scans/{id}/tests:
parameters:
- name: id
in: path
description: id of scan
required: true
schema:
type: integer
get:
summary: Get scan tests by ID
operationId: get_scan_tests
tags:
- Scans
description: 'Get all tests associated with a scan.
This is useful if you want to view all tests performed during a scan. Not all tests will result in a finding.'
parameters:
- name: resource_type
in: query
required: false
schema:
type: string
enum:
- scan
- finding
description: 'Useful for filtering tests based on whether they return a finding.
When set to `finding`, it returns only tests that generated findings. When set to `scan`, it returns only tests that did not result in a finding.
'
- name: resource_id
in: query
required: false
schema:
type: integer
description: Show tests for a specific scan or finding ID. When set, `resource_type` is required.
responses:
200:
description: OK
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Test'
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
description: Scan not found, or no tests match the scan or filters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
406:
description: Scan tests are not available for discovery tools
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
422:
$ref: '#/components/responses/UnprocessableEntityError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
components:
responses:
ObjectNotFoundError:
description: The object with the given ID was not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
UnauthorizedError:
description: API key is missing or invalid
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
UnprocessableEntityError:
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
ForbiddenError:
description: You can"t perform this action.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
TooManyRequestsError:
description: Too many requests made in a short period of time
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
schemas:
ScanOutput:
type: object
required:
- output_type
- output_data
properties:
output_type:
type: string
description: The type of output returned by the scan
output_data:
type: object
description: The output of the scan
discriminator:
propertyName: output_type
mapping:
subdomain_list: '#/components/schemas/FindSubdomainsOutput'
domain_list: '#/components/schemas/FindDomainsOutput'
vhost_list: '#/components/schemas/VHostsFinderOutput'
fuzzing_results: '#/components/schemas/UrlFuzzerOutput'
port_scanner: '#/components/schemas/PortScannerOutput'
finding_list: '#/components/schemas/VulnScannerOutput'
sniper_output: '#/components/schemas/SniperOutput'
waf_results: '#/components/schemas/WafDetectorOutput'
people_hunter_results: '#/components/schemas/PeopleHunterOutput'
sqli_exploits: '#/components/schemas/SQLiExploiterOutput'
ScanRawOutput:
type: object
required:
- data
properties:
data:
type: array
items:
type: string
description: The raw output of the scan
TestMetadata:
type: object
properties:
port:
type:
- integer
- 'null'
description: The port where this was found on the target
example: 4445
sniper_modules:
type: array
items:
type: string
description: The Sniper modules tested against the service
example:
- SSH AUTHENTICATED SCAN
- SSH user enumeration (CVE-2018-15473)
ErrorResponse:
type: object
additionalProperties: false
properties:
status:
type: integer
example: 401
message:
type: string
example: No API key specified
CreatedResourceResponse:
type: object
properties:
created_id:
type: integer
example: 420323
Scan:
type: object
additionalProperties: false
properties:
id:
readOnly: true
type: integer
tool_id:
type: integer
target_id:
type: integer
description: only one of `target_id` and `target_name` should be used
target_name:
type:
- string
- 'null'
writeOnly: true
description: only one of `target_id` and `target_name` should be used
workspace_id:
type:
- integer
- 'null'
writeOnly: true
description: Workspace where the scan is started. It has to match the workspace ID of the target
vpn_profile_uuid:
type:
- string
- 'null'
writeOnly: true
description: VPN profile to use for the scan. If null, there will be no VPN profile used. If not specified, the profile attached to the workspace will be used.
status_name:
type: string
enum:
- running
- finished
- failed to start
- stopped
- timed out
- waiting
- aborted
- VPN connection error
- auth failed
- connection error
readOnly: true
vpn_scan:
type: boolean
readOnly: true
max_scan_time:
type: integer
minimum: 1
maximum: 1440
default: 1440
writeOnly: true
description: 'Maximum number of minutes that the scan should run. Not supported by: Sniper, tools with short scan duration (like Website Recon or ICMP Ping).'
report_callback:
type: object
description: Send the report in a specific format to this URL when the scan finishes
writeOnly: true
properties:
url:
type: string
format: url
description: Send the report to this URL when the scan finishes
format:
type: string
description: Send the report in a specific format
default: raw_status
enum:
- raw_json
- raw_status
- pdf_report
required:
- url
progress:
type: integer
minimum: 0
maximum: 100
readOnly: true
description: Current progress of the scan
result_summary:
type:
- object
- 'null'
readOnly: true
properties:
text:
type:
- string
- 'null'
description: A text description of the summary. Present for discovery scanners
critical:
type:
- integer
- 'null'
description: Number of critical risk vulnerabilities. `null` for discovery scanners
high:
type:
- integer
- 'null'
description: Number of high risk vulnerabilities. `null` for discovery scanners
medium:
type:
- integer
- 'null'
description: Number of medium risk vulnerabilities. `null` for discovery scanners
low:
type:
- integer
- 'null'
description: Number of low risk vulnerabilities. `null` for discovery scanners
info:
type:
- integer
- 'null'
description: Number of informational findings. `null` for discovery scanners
start_time:
type: string
format: date-time
readOnly: true
end_time:
type:
- string
- 'null'
format: date-time
readOnly: true
description: End time of the scan. `null` if the scan is not finished
duration:
type: integer
readOnly: true
description: Duration of the scan in seconds
num_tests:
deprecated: true
type: integer
readOnly: true
description: 'This field is deprecated and will be removed in a future version. Use `/scans/{id}/tests` instead.
Number of tests run by the scanner. Always `1` for discovery scanners.
'
num_finished_tests:
deprecated: true
type: integer
readOnly: true
description: 'This field is deprecated and will be removed in a future version. Use `/scans/{id}/tests` instead.
Number of currently finished tests. This should be equal to `num_tests` for successfully finished scans.
'
status_message:
type:
- string
- 'null'
readOnly: true
description: Message describing the current status of the scan. This is `null` if the scan is not currently running.
info_text_lines:
type: array
items:
type: string
readOnly: true
description: Informational messages about the scan as a whole, such as a warning that the host may be down or blocked by a firewall when no open ports were found. Empty when there are no messages.
scan_original_url:
type: boolean
default: false
writeOnly: true
description: 'If `true`, the original URL is passed to the scanner, even if it redirects. If `false`, the redirected URL will be scanned instead.
'
redirect_level:
type: string
default: same_domain
enum:
- none
- check_accessibility
- same_host
- same_domain
- allow_all
writeOnly: true
description: "Possible values:\n * `none` - the target is passed directly to the scanner\n * `check_accessibility` - the target is checked for accessibility and an error is thrown on any redirect\n * `same_host` - only redirects within the same host are allowed\n * `same_domain` - redirects to subdomains are allowed\n * `allow_all` - any redirects are allowed\n"
required:
- tool_id
discriminator:
propertyName: tool_id
mapping:
20: '#/components/schemas/SubdomainFinderStarter'
30: '#/components/schemas/WhoisLookupStarter'
70: '#/components/schemas/PortScannerStarter'
90: '#/components/schemas/UrlFuzzerStarter'
160: '#/components/schemas/VHostsFinderStarter'
170: '#/components/schemas/WebsiteScannerStarter'
240: '#/components/schemas/IcmpPingStarter'
260: '#/components/schemas/SharePointScannerStarter'
270: '#/components/schemas/WordpressScannerStarter'
280: '#/components/schemas/DrupalScannerStarter'
290: '#/components/schemas/JoomlaScannerStarter'
310: '#/components/schemas/WebsiteReconStarter'
350: '#/components/schemas/NetworkScannerStarter'
380: '#/components/schemas/SQLiExploiterStarter'
390: '#/components/schemas/DomainFinderStarter'
400: '#/components/schemas/PasswordAuditorStarter'
490: '#/components/schemas/SniperStarter'
510: '#/components/schemas/APIScannerStarter'
520: '#/components/schemas/CloudScannerStarter'
530: '#/components/schemas/PeopleHunterStarter'
Test:
type: object
properties:
id:
type:
- integer
- 'null'
example: 1
uid:
type: string
description: Unique identifier of the test
example: NETSCAN-SNIPER-TESTED-MODULES
description:
type: string
example: Scanned for vulnerabilities using Sniper modules
resource_type:
type: string
enum:
- scan
- finding
description: The resource type associated with the test
example: finding
resource_id:
type:
- integer
- 'null'
description: The ID of the resource associated with the test
example: 2
metadata:
$ref: '#/components/schemas/TestMetadata'
performed_at:
type: string
format: date-time
example: '2026-01-01 12:00:00'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Use the "API key" from the [profile page](https://app.pentest-tools.com/account/api) as the token