The Fuel Rats API allows you to filter search queries through the filter query parameter. For HTTP queries this is a URL encoded JSON object passed as the ?filter query parameter, for Websocket queries this is an object named 'filter' in the top level of the websocket request.
Display results where all in a list of conditions are met. Allows nested usage with other operators.
{ "and": [{ "name": "Absolver" }, { "platform": "pc" }] }
Display results where at least one in a list of conditions are met. Allows nested usage with other operators.
{ "or": [{ "name": "Absolver" }, { "name": "Arathenes" }] }
{ "rescueCount": { "or": { "lt": 10, "gt": 100 } } }
Display results where the value is greater than the given value.
{ "rescueCount": { "gt": 3 } }
Display results where the value is greater than or equal to the given value.
{ "rescueCount": { "gte": 4 } }
Display results where the value is less than the given value.
{ "rescueCount": { "lt": 11 } }
Display results where the value is less than or equal to the given value.
{ "rescueCount": { "lte": 10 } }
Display results where the value is the same as the exact value provided. Does not work for NULL, for that see the is operator.
{ "name": { "eq": "NumberPi" } }
Display results where value is anything except the exact value provided. Does not work for NULL, for that see the not operator.
{ "name": { "ne": "NumberTau" } }
Operator used for checking whether something is null, this exists sperately from the equality operators do to the behaviour of the back-end database.
{ "client": { "is": null } }
Negates the query within it.
{ "client": { "not": null } }
{ "outcome": { "not": "success" } }
Displays results where the item is within an array of provided values.
{ "outcome": { "any": ["invalid", "other"] } }
{ "outcome": { "any": ["invalid", "other"] } }
Dispalys results where the item is NOT within an array of provided values.
{ "system": { "notIn": ["NLTT 48288", "MCC 811", "ASHIMA"] } }
Displays results where the item matches a provided wildcard expression (% is the wildcard operator).
{ "system": { "like": "ALRAI SECTOR %" } }
Displays results where the item does not match a provided wildcard expression (% is the wildcard operator).
{ "system": { "notLike": "ALRAI SECTOR %" } }
Displays results where the item matches a provided wildcard expression (% is the wildcard operator). Case insensitive.
{ "system": { "iLike": "alrai sector %" } }
Displays results where the item does not match a provided wildcard expression (% is the wildcard operator). Case insensitive.
{ "system": { "notILike": "alrai sector %" } }
Displays results where the item matches is a string that starts with the provided value.
{ "name": { "startsWith": "Number" } }
Displays results where the item matches is a string that ends with the provided value.
{ "name": { "endsWith": "Pi" } }
Displays results where the item matches is a string that has the provided value somewhere within it.
{ "system": { "substring": "sector" } }
Displays results that matches a provided regular expression.
{ "name": { "regexp": "\b(num(ber)?|ninja)?(?<!rasp( |-))(?<!raspberry )(pi(-?rat)?(?!-| dhod| dimo| dimshi| disci| hydrae| mensae| pavonis| piscis| sculptoris| piscium))'?s?\b" } }
Displays results that does NOT match a provided regular expression.
{ "name": { "notRegexp": "\b(num(ber)?|ninja)?(?<!rasp( |-))(?<!raspberry )(pi(-?rat)?(?!-| dhod| dimo| dimshi| disci| hydrae| mensae| pavonis| piscis| sculptoris| piscium))'?s?\b" } }
Displays results that matches a provided regular expression (case insensitive).
{ "name": { "iRegexp": "\b(num(ber)?|ninja)?(?<!rasp( |-))(?<!raspberry )(pi(-?rat)?(?!-| dhod| dimo| dimshi| disci| hydrae| mensae| pavonis| piscis| sculptoris| piscium))'?s?\b" } }
Displays results that does NOT match a provided regular expression (case insensitive).
{ "name": { "notIRegexp": "\b(num(ber)?|ninja)?(?<!rasp( |-))(?<!raspberry )(pi(-?rat)?(?!-| dhod| dimo| dimshi| disci| hydrae| mensae| pavonis| piscis| sculptoris| piscium))'?s?\b" } }
Displays results with an array that contains the provided range of values somewhere within it.
{ "permissions": { "contains": ["rescue.write", "rescue.read"] } }
Displays results with an array that is contained by the provided range of values.
{ "permissions": { "contained": ["rescue.write", "rat.write","rescue.delete", "user.read"] } }
Displays results with an array that has overlap with the provided range of values.
{ "permissions": { "overlap": ["rescue.write", "rat.write","rescue.delete", "user.read"] } }