Looking for a simple way to collect and verify passport photos? Rostrio's API provides a seamless solution, allowing businesses to integrate a user-friendly photo upload feature directly into their platform.
Users can easily take and upload their passport photos using their smartphone, tablet, or camera. The API automatically checks if the photo meets official passport requirements, ensuring it is suitable for all types of documents.
Our API processes photos efficiently, verifying essential criteria such as lighting, contrast, and alignment. It also offers built-in background removal and brightness optimization.
The photos are automatically analyzed for potential errors, such as closed eyes, incorrect head position, or insufficient contrast.
Example API request for photo verification:
curl -X POST https://api.pasfoto.nu/v3/check \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Basic ZnJlZDpmcmVk" \
-F "age=2" \
-F "background=1" \
-F "brightness=1" \
-F "image=iVBORw0KGgoAAAANSUhEUgAAA..."
A successful request returns a JSON response with the status and any applied corrections:
{
"locale": "us",
"age": 2,
"errors": [],
"crop": "x": 143, "y": 142, "width": 692, "height": 890 ,
"rotate": 0,
"size": "width": 35, "height": 45 ,
"correction": "brightness": 0.0112
}
If errors are detected, such as an incorrect head position or reflections, the API will return them in the errors array.
All requests require a Basic Authentication Header. You can generate this easily:
echo -n "key:secret" | base64
Then, add the encoded key to your request:
-H "Authorization: Basic <encoded_key>"
The API supports up to 600 requests per minute and returns structured JSON responses, including error messages and corrections.
We keep pricing simple: $0.25 per check.
Contact us to start using the Rostrio API and integrate seamless photo verification into your platform.
Leave your email so that we can send you a discount coupon to continue later.
To maintain fair use of our service, we’ve set a limit of checks per user.
For photographers and other businesses with higher volume needs, please contact us about extended access options at hi@rostrio.com.
Thank you for your understanding!