Microsoft Defender for Cloud Apps
Developer and API

Investigate activities using the API

In brief

The article now describes scanning and retrieving large volumes of activity data, clarifies pagination wording, and reorganizes the next-steps links under Related content.

What Defender admins need to know

No administrator action is required.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Investigate activities using the API

To scan activity data, send a POST request to the activities endpoint with scan mode enabled:

  1. Run the query on your data.
  2. If there are more records than could be listed in a single scan, the response includes nextQueryFilters. Use nextQueryFilters as the filter parameter in each subsequent query until the response returns all the results.matching activity records have been returned.

Request body parameters

print('Got {} records in total'.format(len(records)))


<a name="next-steps"></a>
## Next steps

> [!div class="nextstepaction"]
>Related content

- [Best practices for protecting your organization](best-practices.md)
If you run into any problems, we're here to help. To get assistance or support for your product issue, please [contact- [Contact Defender XDR support](/defender-xdr/contact-defender-support).