Summary

The entitiesPage() GraphQL query returns the next or previous page when querying assets across LogScale views and repositories. It requires the cursor from a previous entitiesSearch() or entitiesPage() response, as well as the direction to paginate.

API Stability Short-Term

Syntax

graphql
entitiesPage(
      input: EntitiesPageInputType!
   ): SearchResult!

Provide the cursor from a previous entitiesSearch() or entitiesPage() response and a page direction (Previous or Next). The result includes pagination state and the matching entities. See Input Parameters and Returned Values for details.

Example

Raw
graphql
query {
  entitiesPage(
     input: {direction: Next,
     cursor: "eyJlbnRpdHlU..."
    }
  ) {totalResults, hasPreviousPage, hasNextPage}
}
Mac OS or Linux (curl)
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "query {
  entitiesPage(
     input: {direction: Next,
     cursor: \"eyJlbnRpdHlU...\"
    }
  ) {totalResults, hasPreviousPage, hasNextPage}
}"
}
EOF
Mac OS or Linux (curl) One-line
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "query {
  entitiesPage(
     input: {direction: Next,
     cursor: \"eyJlbnRpdHlU...\"
    }
  ) {totalResults, hasPreviousPage, hasNextPage}
}"
}
EOF
Windows Cmd and curl
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql ^
    -H "Authorization: Bearer $TOKEN" ^
    -H "Content-Type: application/json" ^
    -d @'{"query" : "query { ^
  entitiesPage( ^
     input: {direction: Next, ^
     cursor: \"eyJlbnRpdHlU...\" ^
    } ^
  ) {totalResults, hasPreviousPage, hasNextPage} ^
}" ^
} '
Windows Powershell and curl
powershell
curl.exe -X POST 
    -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -d '{"query" : "query {
  entitiesPage(
     input: {direction: Next,
     cursor: \"eyJlbnRpdHlU...\"
    }
  ) {totalResults, hasPreviousPage, hasNextPage}
}"
}'
    "$YOUR_LOGSCALE_URL/graphql"
Perl
perl
#!/usr/bin/perl

use HTTP::Request;
use LWP;

my $TOKEN = "TOKEN";

my $uri = '$YOUR_LOGSCALE_URL/graphql';

my $query = "query {
  entitiesPage(
     input: {direction: Next,
     cursor: \"eyJlbnRpdHlU...\"
    }
  ) {totalResults, hasPreviousPage, hasNextPage}
}";
$query =~ s/\n/ /g;
my $json = sprintf('{"query" : "%s"}',$query);
my $req = HTTP::Request->new("POST", $uri );

$req->header("Authorization" => "Bearer $TOKEN");
$req->header("Content-Type" => "application/json");

$req->content( $json );

my $lwp = LWP::UserAgent->new;

my $result = $lwp->request( $req );

print $result->{"_content"},"\n";
Python
python
#! /usr/local/bin/python3

import requests

url = '$YOUR_LOGSCALE_URL/graphql'
mydata = r'''{"query" : "query {
  entitiesPage(
     input: {direction: Next,
     cursor: \"eyJlbnRpdHlU...\"
    }
  ) {totalResults, hasPreviousPage, hasNextPage}
}"
}'''

resp = requests.post(url,
                     data = mydata,
                     headers = {
   "Authorization" : "Bearer $TOKEN",
   "Content-Type" : "application/json"
}
)

print(resp.text)
Node.js
javascript
const https = require('https');

const data = JSON.stringify(
    {"query" : "query {
  entitiesPage(
     input: {direction: Next,
     cursor: \"eyJlbnRpdHlU...\"
    }
  ) {totalResults, hasPreviousPage, hasNextPage}
}"
}
);


const options = {
  hostname: '$YOUR_LOGSCALE_URL',
  path: 'graphql',
  port: 443,
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Content-Length': data.length,
    Authorization: 'BEARER ' + process.env.TOKEN,
    'User-Agent': 'Node',
  },
};

const req = https.request(options, (res) => {
  let data = '';
  console.log(`statusCode: ${res.statusCode}`);

  res.on('data', (d) => {
    data += d;
  });
  res.on('end', () => {
    console.log(JSON.parse(data).data);
  });
});

req.on('error', (error) => {
  console.error(error);
});

req.write(data);
req.end();
Example Responses
Success (HTTP Response Code 200 OK)
json
{
  "data": {
    "entitiesPage": {
      "totalResults": 15,
      "hasPreviousPage": true,
      "hasNextPage": true
    }
  },
  "extensions": {
    "preview": [
      {
        "name": "entitiesPage",
        "reason": "[PREVIEW: Under development]"
      }
    ]
  }
}

For the cursor, the actual text is very long. It has been truncated here to save space.

Input Parameters

Provide a page direction (Previous or Next) and the cursor string returned by a previous entitiesSearch() or entitiesPage() call. The cursor is an opaque token that encodes position in the result set. The parameters are described below:

Table: EntitiesPageInputType Input Datatype

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results. 
Table last updated: Oct 14, 2026 
cursorStringyes Short-Term The cursor to use for entities pages.
directionEntitiesPageDirectionyes Short-Term The direction the cursor represents. See EntitiesPageDirection.

The EntitiesPageInputType type uses EntitiesPageDirection enum values. For reference, the EntitiesPageDirection datatype table is included here:

Returned Values

The result provides the total matched count (totalResults), the list of entities for this page (data), a cursor for further pagination (cursor, nullable), and booleans indicating whether additional pages exist (hasNextPage, hasPreviousPage). The choices are listed here:

Table: SearchResult Datatype

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results. 
Table last updated: Oct 14, 2026 
cursorString  Short-Term The cursor useds for going to the next or previous page.
dataEntitySearchResultEntityyes Short-Term The results of the search. See EntitySearchResultEntity.
hasNextPageBooleanyes Short-Term Whether there is a next page. False indicates it's the last page.
hasPreviousPageBooleanyes Short-Term Whether there is a previous page. False indicates it's the first page.
totalResultsIntyes Short-Term The total number of results that matched the search query. Only pageSize elements will be returned.