: API Support for Greater than 4,000 Results Using Pagination
Focus
Focus

API Support for Greater than 4,000 Results Using Pagination

Table of Contents

API Support for Greater than 4,000 Results Using Pagination

The AutoFocus™ API now allows you to get search results of up to 200,000 samples or sessions (normally 4,000) using pagination. When you enable pagination, each response contains a new page of results until the search is complete. To enable pagination, include the optional
type
parameter and set it to
scan
. You can change the size of each page using the optional
size
parameter, which defaults to 50 results. This feature is not available with STIX, and the
from
and
sort
parameters are also not available with pagination.
Example:
curl -X POST -H "Content-Type: application/json" -d '{ "apiKey":"apikey", "query":{ "operator":"all", "children":[ { "field":"sample.malware", "operator":"is", "value":1 } ] }, "size":50, "type": "scan", "scope":"public" }' "https://autofocus.paloaltonetworks.com/api/v1.0/samples/search"

Recommended For You