Filters (REST) v1
Urchin recognizes two types of filters: metric and dimension.
Metric filters allow the following operations:
-
">" - greater than
-
">=" - greater then or equal to
-
"<" - less then
-
"<=" - less then or equal to
- "=" - equal
Dimension filters use POSIX Extended Regular Expression syntax and are case insensitive.
- "=~" - contains a substring matching the regular expression
- "!~" - does not contain a substring matching the regular expression
The equals sign will need to be escaped in query strings as %3D. The > and < signs need to be escaped as %3E and %3C respectively.
For the Urchin Data API v1, one regex and one numeric filter is supported per each call. e.g. for all records where browser is firefox and number of hits is more than ten:
filters=u:browser_base%3D~Firefox,u:hits%3E10