Get a range of records
To get a range of records, use an HTTP GET method with the records
API endpoint specifying the database name, the layout, and additional information to specify a starting record and the number of records. Optionally, you can specify the sort order of the records. You can also specify portal information to limit the number of related records that are returned.
HTTP method |
GET |
URL |
Format 1 (returns up to the first 100 records): Format 2 (returns a range of records): Format 3 (returns a sorted range of records): Format 4 (includes a range of records with a limited range of related records): version – the FileMaker Data API version requested can use
database-name – the name of the hosted database layout-name – the name of the layout to use as the context for getting the record For For For the For portals:
Other optional URL parameters:
|
HTTP header |
Authorization: Bearer session-token, where session-token is the unique X-FM-Data-Access-Token value for the database session |
Parameters | None |
Response |
The record data in JSON format and a messages array showing an error code of 0. Copy
See Error responses. |
Notes
-
You can use optional parameters to specify omit requests, the sort order (
_sort
), starting record (_offset
), number of records (_limit
), and portals for limiting the number of related records that are returned. The_offset
,_limit
, and_sort
parameters work on records found in the layout's table and not related portal records. To restrict the number of records and rows to display in a related set, specify the_offset.portal-name-n
and_limit.portal-name-n
parameters. -
If you omit the
_offset
and_limit
values, the default offset is 1 and the default limit for records is 100:_offset=1&_limit=100
-
If you omit the
sortOrder
keyword, the default isascend
. For example,&_sort=[{ "fieldName": "recordId" }]
is treated as:&_sort=[{ "fieldName": "recordId", "sortOrder": "ascend" }]