Usage Limits

This document contains current API restrictions and usage limits when using the Data Loss Prevention API. For billing information, see the pricing page.

Content inspection / redaction limits

The DLP API enforces the following usage limits for inspecting and redacting content sent directly to the API as text or images:

Type of Limit Usage Limit
Maximum number of content items per request 100
Maximum total request size 8 MB
Maximum size of individual text items 1 MB
Maximum size of individual image items 4 MB
Maximum number of requests per minute 600

Storage inspection limits

The DLP API enforces the following usage limits for inspecting Google Cloud storage repositories:

Type of Limit Usage Limit
Maximum number of storage blocks per request 1
Maximum total scan size 2 TB
Maximum total request size 8 MB
Maximum size of individual text items 1 MB
Maximum number of requests per minute 600

Rounding the size of items

Items that are inspected and redacted by the DLP API have their sizes rounded up to the nearest 100 KB. For example, if you send in a text string whose actual size is 189 KB, it is treated as a 200 KB object for billing purposes.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Data Loss Prevention API