Skip to main content
POST
/
observe
Analyze a video
const response = await fetch("https://api.mocra.io/observe", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR API KEY>",
    "Content-Type": "application/json",
    "Accept": "application/json",
  },
  body: JSON.stringify({
    videoUrl: "<YOUR VIDEO URL>",
    customCriteria: [],
    removeCriteria: [],
  }),
});

const result = await response.json();
console.log(result);
{
  "severity": 50.5,
  "criteria": [
    {
      "name": "<string>",
      "score": 50.5
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body detailing what URL and criteria to use for the analysis.

videoUrl
string
required

URL of the video to analyze.

customCriteria
object[]

A list of extra custom criteria to be analyzed.

removeCriteria
enum<string>[]

A list of names of default criteria that should not be used for this analysis

Available options:
UNNATURAL PHYSICS,
MORPHING,
FLICKERING,
ARTIFACTING,
TEXT ISSUES

Response

Score of the given video with the specified criteria.

Scores detailing the result of the analysis performed by the Mocra API

severity
number
required

Overall score assigned for the given video

Required range: 1 <= x <= 100Must be a multiple of 0.01
criteria
object[]
required

Per-criterion breakdown of scores