This guide covers how to create and execute queries in Web Scanner using the Advanced Search tab, which relies on SPQL (Search and Query Language) command-line syntax. Advanced searches are suited for technical users comfortable with writing precise queries to target specific data.
Understanding SPQL Syntax
SPQL queries combine Field names, Operators, and Values, often linked with logical separators like AND or OR. For example:
domain = crypto* AND tld = onion
Field name:
domain
(the data category, e.g., final domain after redirects).Operator:
=
(equals, or use!=
,>
,<
, etc.).Value:
crypto*
(a wildcard search for domains starting with "crypto").Separator:
AND
(links conditions).Second condition:
tld = onion
(targets .onion domains).
For detailed SPQL syntax, refer to SPQL Documentation.
Create an Advanced Search
Navigate to Explore Scan Data > Web Scanner.
Select the Advanced Search tab.
Click New.
Enter a query using SPQL syntax, including spaces between elements (e.g.,
domain = crypto* AND tld = onion
).Optional) Specify a Sort order by selecting a field from the dropdown or typing it (e.g.,
scan_date
).(Optional) Click Reset to clear all parameters.
Press Enter or click the blue arrow icon to execute the query.
Example:
Query:
scan_date > now-7d AND tld = jp
Sort order:
scan_date
(descending)Result: Finds domains with Japan’s top-level domain (.jp) scanned in the last 7 days, sorted by most recent.
Edit a Search
After the query runs, parameters collapse, and results appear below.
Click the Web Scanner Search Form button to expand the query input.
Edit the SPQL query as needed.
Press Enter or click the blue arrow icon to re-run the query.
Save a Search
Enter valid SPQL parameters in the query box.
Click Save in the top right.
Enter a Name and (optionally) a Description.
Click Save to store the query for future use.