FaceSearchAI offers a powerful API for integrating image-based search and privacy protection tools into your applications.
Use the Search API to upload an image and retrieve related images along with their sources.
Endpoint: https://facesearchai.com/api/search
Method: POST
Headers:
Payload:
import requests
url = "https://facesearchai.com/api/search"
file_path = "path/to/your/image.jpg"
files = [
('file', (file_path, open(file_path, 'rb'), 'application/octet-stream'))
]
headers = {
'api-key': 'your_api_key_here',
'accept': 'application/json'
}
response = requests.post(url, headers=headers, files=files)
if response.status_code == 200:
print(response.json())
else:
print(f"Error: {response.status_code}")
{
"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"
}
]
}
Use the Profile Info API to retrieve details about your account, such as available credits and subscription information.
Endpoint: https://facesearchai.com/api/info
Method: GET
Headers:
import requests
url = "https://facesearchai.com/api/info"
headers = {
'api-key': 'your_api_key_here'
}
response = requests.get(url, headers=headers)
if response.status_code == 200:
print(response.json())
else:
print(f"Error: {response.status_code}")
{
"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"
}
Face Search AI empowers developers and users with innovative image search and privacy protection tools. Integrate today and revolutionize the way you manage and protect your images.