BQLQuery
is used for Urls listing and filtering to define field selection, filter to operate and sort to apply on the result.
{
"fields": Array<string>,
"sort": ?Array<BQLSort>,
"filters": ?BQLFilter
}
The fields to fetch. Default field is url
. This is equivalent to the select
clause in SQL. List of selectable fields in Analysis Datamodel.
Example:
[ "url", "http_code" ]
Requires the result to be sorted on a certain set of fields. Sort criteria are not necessarily part of the fetched fields.
Order can be either desc
or asc
.
Example:
[
{ "http_code": { "order": "desc" } }
]
Please refer to BQLFilter documentation.
Full example in List and Filter URLs documentation.