code: public GroupSearch search(String text, int perPage, int page) throws JinxException {
      JinxUtils.validateParams(text);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.groups.search");
      params.put("text", text);
      if (perPage > 0) {
        params.put("per_page", Integer.toString(perPage));
      }
      if (page > 0) {
        params.put("page", Integer.toString(page));
      }
      return jinx.flickrGet(params, GroupSearch.class, false);
    }
docs: Search for groups. 18+ groups will only be returned for authenticated calls where the authenticated user is over 18.
  <br>
  This method does not require authentication.
  <br>
  
  @param text    (Required) The text to search for.
  @param perPage (Optional) Number of groups to return per page. If this argument is less than 1, it defaults to 100.
  The maximum allowed value is 500.
  @param page    (Optional) The page of results to return. If this argument is less than 1, it defaults to 1.
  @return group search results.
  @throws JinxException if required parameters are missing, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.groups.search.html">flickr.groups.search</a>