API Support for Greater than 4,000 Results Using Pagination
Table of Contents
Expand all | Collapse all
-
- New Features October 2020
- New Features September 2020
- New Features: August 2020
- New Features: April 2020
- New Features: November 2019
- New Features: May 2019
- New Features: March 2019
- New Features: February 2019
- New Features: November 2018
- New Features: October 2018
- New Features: September 2018
- New Features: August 2018
- New Features: July 2018
- New Features: June 2018
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"