Skip to main content
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 'ref_id=<string>' \
  --form frames=5 \
  --form key_frames=true \
  --form key_frames_method=iframes \
  --form with_tampering=true \
  --form with_morphing=true \
  --form 'webhook_url=<string>' \
  --form no_cache=true \
  --form prevent_c2pa_forces=true
{
"identifier": "8d64370a87b820cc1cf620338f5c898bab37439c9a405f32d9eaffc50c4f27b0"
}

Authorizations

X-Api-Key
string
header
required

Your API key.

Headers

Accept
enum<string>

Response content type. Supported: application/json, text/plain.

Available options:
application/json,
text/plain

Body

multipart/form-data
file_url
string
required

The URL of the video to be classified.

ref_id
string

An optional reference ID to associate with the classification request.

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 iframes (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:
iframes,
flow,
color
with_tampering
boolean

Set it to true if you also want to analyze the image for signs of tampering or manipulation, without the aid of a Generative AI.

with_morphing
boolean

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

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. Please note that in order to use a webhook callback URL you need to request a specific enablement, otherwise the parameter is ignored. Moreover, the system may cache the analysis results of repeated submissions, i.e. submissions of the same file with the same options: in this case the webhook won't be called and the results would be accessible only by polling the relative endpoint.

no_cache
boolean

Set it to true to force the system to reprocess the image even if it has been previously submitted with the same options. This may result in additional charges.

prevent_c2pa_forces
boolean

If true, C2PA signature does not force the origin to artificial. If false or undefined, C2PA signature will force the origin to artificial (current behaviour).

Response

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

identifier
string
Example:

"8d64370a87b820cc1cf620338f5c898bab37439c9a405f32d9eaffc50c4f27b0"