v1.0 • REST API
The FaceSearchAI API provides powerful face recognition and image search capabilities. Our REST API uses predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.
https://facesearchai.com/api
The FaceSearchAI API uses API key authentication. Include your API key in the api-key header:
api-key: your_api_key_here
Never expose your API key in client-side code. Make API calls from your backend server only.
Get started with a simple face search request in just a few lines of code:
curl -X POST https://facesearchai.com/api/search \
-H "api-key: your_api_key_here" \
-H "accept: application/json" \
-F "file=@/path/to/image.jpg"
API rate limits vary based on your subscription plan and usage requirements.
Rate limits depend on your specific subscription plan and usage needs. Please contact our support team to learn about the rate limits that apply to your account.
Contact Developer SupportRate limit headers are included in every response to help you track your usage.
Upload an image to search for similar faces across the web. Returns a list of matching images with their source URLs.
Parameter | Type | Description |
---|---|---|
file | file | Image file (JPG, JPEG, PNG, WebP). Max size: 10MB |
curl -X POST https://facesearchai.com/api/search \
-H "api-key: your_api_key_here" \
-H "accept: application/json" \
-F "file=@/path/to/image.jpg"
{
"UST_time": 1735498671,
"results": [
{
"adultContent": false,
"sourceUrl": "https://example.com/article1",
"imageUrl": "https://example.com/image1.png"
},
{
"adultContent": false,
"sourceUrl": "https://example.com/article2",
"imageUrl": "https://example.com/image2.jpg"
}
]
}
Retrieve your account information, including usage statistics and subscription details.
curl -X GET https://facesearchai.com/api/profile \
-H "api-key: your_api_key_here" \
-H "accept: application/json"
{
"success": true,
{
"email": "user@domain.com",
"monthly_credits": 20000,
"daily_credits": 4000,
"daily_searches_used": 1000,
"monthly_searches_used": 10000,
"subscribe_date": "2024-12-29T12:42:47.104536Z"
}
}
FaceSearchAI uses conventional HTTP response codes to indicate the success or failure of an API request.
Code | Status | Description |
---|---|---|
200 | OK | Request successful |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Invalid or missing API key |
403 | Forbidden | API key doesn't have required permissions |
413 | Payload Too Large | File size exceeds 10MB limit |
415 | Unsupported Media Type | File format not supported |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Something went wrong on our end |
{
"success": false,
"error": {
"code": "INVALID_FILE_FORMAT",
"message": "The uploaded file format is not supported. Please use JPG, JPEG, PNG, or WebP.",
"details": {
"supportedFormats": ["jpg", "jpeg", "png", "webp"],
"receivedFormat": "gif"
}
},
"timestamp": 1735498671
}
Field | Type | Description |
---|---|---|
imageUrl | string | Direct URL to the matching image |
sourceUrl | string | URL of the webpage containing the image |
adultContent | boolean | Whether the result contains adult content |
Webhooks allow you to receive real-time notifications when certain events occur in your account.
Webhook functionality is currently in development. Contact us if you're interested in early access.
Our developer support team is here to help you integrate FaceSearchAI into your applications.