Conditional Operators
Conditional operators can be used to narrow down the result set when querying the /report/{group} API.
All values passed in the optional filters must be URL encoded (/api/v1/report/account?query=<URL encoded>). In the table below, the Example column shows queries for the account group.
Operator Notation |
Description |
Example |
$eq |
Exact string |
?query={"accountID" : {"$eq" : "101202692754"}} |
$sw |
Starts with |
?query={"accountID" : {"$sw" : "1012"}} |
$ew |
Ends with |
?query={"accountID" : {"$ew" : "7058"}} |
$con |
Contains |
?query={"accountID" : {"$con" : "2692"}} |
$in |
Multiple values |
?query={"accountID" : {"$in" : ["101202692754", "101098417058"]}} |