API Endpoint
The base URL for the Scam.AI API is:
https://www.scam.ai/api/process/image
Authentication
To authenticate your requests, you need to include your API key in the header of your API calls. The key is passed via the x-api-key
header.
Making a Request
To process an image using our API, send a POST
request to the endpoint with the image file attached.
Here’s an example using cURL
:
Example cURL
Request
curl --location 'https://www.scam.ai/api/process/image' \ --header 'x-api-key: YOUR_API_KEY' \ --form 'file=@"/path/to/your/image.jpg"'
Request Parameters
- x-api-key: Your unique API key.
- file: The image file you want to verify.
Replace YOUR_API_KEY
with your actual API key and /path/to/your/image.jpg
with the path to the image you wish to process.
Response
If the request is successful, the API will return a JSON object with the verification results.
{ "fakeness":0.118923893 }