Defender API limit

New Contributor

Hi All,


Using logic app i need to pull defender data and need to push it to sentinel work space.  but Defender API support only 10k rows per call and I am having nearly 20K result. is there is anyway to pull all the data using logic app,


thanks in advance

3 Replies
best response confirmed by Tomer Brand (Microsoft)
Hi @abensabu28,

10k rows per call is only in "Advanced Hunting" within the portal.

For the API's, these are the max rows per call:

"The results will include a maximum of 100,000 rows."

Microsoft 365 Defender APIs license and terms of use

"The results will include a maximum of 100,000 rows."

Advanced hunting API

Export software vulnerabilities assessment (JSON response)

"Maximum page size is 200,000."

If you still run into the limits, review:
Advanced hunting query best practices

A couple of options for you to consider:

Microsoft 365 Defender integration with Microsoft Sentinel

M365D Streaming API

MDE Raw Data Streaming API

Yong Rhee - MSFT

@Yong Rhee 


Actually what i am looking for is. to send the CVE data from defender to sentinel. current connector is not supporting the vulnerability data to sentinel. so what i planned is through API call run the query then push the data to sentinel.  but every time when i run the query i am getting the below error

"message""Query execution has exceeded the allowed result size. Optimize your query by limiting the amount of results and try again"

optimizing query didn't work because the table in defender doesn't support the time.

Do you have any solution for this 

Hello @abensabu28,
Please open a Microsoft CSS support ticket.
In parallel, submit "Give feedback" option within the M365D portal (
Yong Rhee - MSFT