accepting search parameters to provide specific metrics via REST API