Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added explicit example for rowcount

  • Loading branch information...
1 parent c5f02f5 commit fe8366e5963189075aab10a02a47fc0aae366d80 @twbell twbell committed
Showing with 5 additions and 1 deletion.
  1. +5 −1
@@ -102,7 +102,7 @@ You can specify more than one sort, and the results will be sorted with the firs
$res = $factual->fetch("places", $query);
-## Limit and Offset
+## Paging: Limit and Offset
You can use limit and offset to support basic results paging. For example:
@@ -150,6 +150,10 @@ To help with debugging, we provide in the response object metadata about the que
// Get http status code returned by Factual
return $res->getCode();
+ //get the total number of results
+ //must be explicitly requested in advance of request using Query::includeRowCount()
+ return $res->getRowCount();
# Read API
## All Top Level Query Parameters

0 comments on commit fe8366e

Please sign in to comment.
Something went wrong with that request. Please try again.