POST
/
api
/
video_fromurl
Classify a video from URL
curl --request POST \
  --url https://backend.identifai.net/api/video_fromurl \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-Api-Key: <api-key>' \
  --form 'file_url=<string>' \
  --form frames=5 \
  --form key_frames=true \
  --form key_frames_method=iframe \
  --form with_morphing=true \
  --form with_tampering=true \
  --form 'webhook_url=<string>'
{
  "identifier": "8d64370a87b820cc1cf620338f5c898bab37439c9a405f32d9eaffc50c4f27b0"
}

Authorizations

X-Api-Key
string
header
required

Your API key.

Body

multipart/form-data
file_url
string
required

The URL of the video to be classified.

frames
enum<integer>

Choose to classify a maximum of 5, 10 or 30 frames.

Available options:
5,
10,
30
key_frames
boolean

If set to true extracts key frames and uses those for classification instead of fixed-time distance images. The extracted key frames may be less than the requested frames.

key_frames_method
enum<string>

Key frames identification algorithm. Possible values are iframe (default), flow and color.

  • iframes : extracts the iframes of the video;
  • color : returns the average frame, based on color, of every shot sequence. Shot sequences are group of frames that start with an iframe;
  • flow : returns the most still frame with respect of the previous frame of every shot sequence.
Available options:
iframe,
flow,
color
with_morphing
boolean

Set it to true if you also want to analyze people's faces in the image using morphing.

with_tampering
boolean

Set it to true if you also want to analyze the image for signs of tampering or manipulation, such as splicing or content alteration.

webhook_url
string

If specified, the classification result will also be automatically sent to the entered URL. Otherwise, the result can be obtained by polling the relative endpoint.

Response

The classification identifier. The format depends on the Accept header.

identifier
string
Example:

"8d64370a87b820cc1cf620338f5c898bab37439c9a405f32d9eaffc50c4f27b0"