public function search($query, $sort = 'time', $page = 0)
    {
        $this->validateSortArgument($sort, ['viral', 'top', 'time']);

        return $this->get('gallery/search/' . $sort . '/' . (int) $page, ['q' => $query]);
    }