1
0
-1

I want to find out how many total rows are returned for my search.  In MySQL I can use the foundrows() function to find out how many rows match the query (without the limit clause).  How can I find this information with the HTTP API?

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      In the data that you send for the query, be sure to include the calcFoundRows property.  For example, "calcFoundRows" => "Yes".  You can then find the total number of rows in the foundRows property in the results.

      An example of using the calcFoundRows property can be found in the documentation on the following page, in the section, Example of a search (using an API key):

      https://userguide.rescuegroups.org/x/RACl

       

      1. Angelina R

        Hi Richard,

        You said, "You can then find the total number of rows in the foundRows property in the results." I've been using "calcFoundRows"=>"Yes", but I don't know where to add the "foundRows" property so I can see how many total items there are. 

         

         

      CommentAdd your comment...