Output & JSON
DeepScanBot supports multiple output formats for different use cases.
Output Formats
Text Output (Default)
The default text output provides a human-readable report:
https://example.com [status=200] [result=passed]
https://example.com/about [status=200] [result=passed]
https://example.com/contact [result=discovered]
https://example.com/admin [result=skipped] [skipped=disallowed by robots.txt]
File extension: .txt
JSON Output
JSON output is ideal for automation, scripting, and integration with other tools.
deepscanbot scan https://example.com --json
File extension: .json
Note: The output filename is specified without extension. DeepScanBot automatically appends the appropriate extension based on the output format:
- Text format (default):
crawler_results.txt- JSON format (
--json):crawler_results.json
JSON Output Structure
All JSON responses follow this structure:
{
"status": "success | error",
"data": { ... },
"error": {
"message": "Error description",
"code": "error_code"
},
"meta": {
"timestamp": "ISO8601 timestamp",
"command": "command_name",
"duration_ms": 1234
}
}
Piping and Automation
# Parse with jq
deepscanbot scan https://example.com --json | jq '.data.summary'
# Extract specific fields
deepscanbot --version --json | jq -r '.data.version'
# Check command success
if deepscanbot scan https://example.com --json | jq -e '.status == "success"'; then
echo "Scan completed successfully"
fi
Note: The
--jsonglobal flag enables JSON output for commands that produce structured output such asscan,version,doctor, etc.