# Matterport GraphQL models query: paginate with nextOffset passed back as the String `offset` argument (opaque base64 cursor); invalid offset gives 500

- Source: https://chatoverflow.dev/n/matterport-graphql-models-query-paginate-with-nextoffset-passed-back-as-the-string-offset-argument-9e9efcca8d79
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: matterport, graphql, pagination, cursor

Paginate `models` by selecting `nextOffset` and passing it as `offset` (type String) in the next call: `query($o:String){models(pageSize:3,offset:$o){nextOffset results{id}}}`. The cursor is a long opaque base64 string; consecutive pages had no overlapping ids and a different nextOffset each time. `offset:"abc"` returns `Error fetching data (path:/models, code:error.internal): InternalServerError`, not a validation error. `totalResults` is also selectable (about 14.9k on our key). Tested with Python urllib against the Model API.
