API Documentation
Everything you need to integrate Blur Stuff into your own application. Detect sensitive information, selectively anonymize detections, and process images, videos, and documents.
Getting started
Quick Start
The Blur Stuff API accepts files through HTTP requests and returns detection results or anonymized files.
Base URL
Example
Basics
Requests
File-processing endpoints accept
multipart/form-data
requests.
file
The file to process.
detections
JSON-encoded detection data. Required by selected anonymization
endpoints.
Responses
Detection Response
Detection endpoints return the regions identified by Blur Stuff. Each detection contains its bounding-box coordinates, confidence score, and unique detection ID. Detections are grouped by their target type.
Detection object
x1
Left coordinate of the detection bounding box.
y1
Top coordinate of the detection bounding box.
x2
Right coordinate of the detection bounding box.
y2
Bottom coordinate of the detection bounding box.
confidence
Confidence score produced by the detector.
id
Unique identifier assigned to the detection.
Image detection response
The image detection endpoint returns detections grouped by target. The target name is used as the JSON key containing its detections.
Video detection response
Video detections are returned as a list of frame results. Each result contains the frame number, timestamp, and detections found on that frame.
Document detection response
Document detections are returned as a list of page results. Each
page contains detections grouped by target and a
page
number identifying the page where the detections were found.
frame
and
timestamp
identify when the detections occurred.
Selective anonymization
Selected Detections
The
anonymize-selected
endpoints allow you to anonymize only specific detections instead of
automatically anonymizing everything detected in the file.
Anonymizes only the detections supplied by the client. The
detections are provided through the
detections
multipart form field.
target
The type of information being anonymized.
Yes
x1
Left coordinate of the detection.
Yes
y1
Top coordinate of the detection.
Yes
x2
Right coordinate of the detection.
Yes
y2
Bottom coordinate of the detection.
Yes
confidence
Optional detection confidence score.
No
id
Optional identifier for the detection.
No
Detection format
Example request
Anonymizes only the selected detections in a document. The detection format follows the same structure used by image selective anonymization.
Example detection
Example request
Detection
Detection Targets
Use the
targets
query parameter to choose what Blur Stuff should detect.
Multiple targets can be provided as a comma-separated list. If
omitted, the API defaults to
faces.
Faces
faces
License plates
plates
Text
text
Personal information
pii
Important
text
and
pii
cannot be used together.
Anonymization
Anonymization Modes
Anonymization endpoints support several ways of hiding detected
information. Use the
mode
query parameter.
Blur
Blurs the detected region.
Pixelate
Pixelates the detected region.
Solid
Covers the region with a solid block.
Noise
Replaces the region with generated noise.
Emoji
Covers the detected region with an emoji.
Inpaint
Attempts to fill the detected region.
Default:
pixelate
Anonymization
Padding
Use the
padding
query parameter to expand the detected bounding box before applying
anonymization.
float
0.0
1.0
0.2
Endpoints
Images
Detect and anonymize sensitive information in images.
Preview
Generates a preview representation of an uploaded image.
Detect
Detects sensitive information in an uploaded image and returns the detected regions.
Anonymize
Detects and anonymizes the selected targets in an uploaded image.
Anonymize selected
Anonymizes only the detections selected by the client.
Selected detections must be supplied through the
detections
form field as JSON.
Endpoints
Videos
Detect and anonymize sensitive information in video files.
Detect
Detects sensitive information throughout a video.
Anonymize
Detects and anonymizes sensitive information throughout a video.
Endpoints
Documents
Process supported documents and anonymize sensitive information.
Detect
Detects text and potentially sensitive information in a document.
Anonymize
Detects and anonymizes sensitive information in a document.
Anonymize selected
Anonymizes only the selected detections in a document.
Infrastructure
Health & Readiness
Check whether the API is running and whether its detection models are ready.
Health
Returns whether the API is running.
Readiness
Checks whether the detection models are ready to process requests.
Reference
Errors
When a request cannot be processed, the API returns an appropriate HTTP status code along with an error response.
400
Invalid request or unsupported input.
500
Failed to encode or generate the requested output.
503
Service or detection models are unavailable.