JSON2Video

App · 11 actions

Render videos from movie definitions or templates and manage your media library.

Actions

ActionWhat it does
Delete a rendered videoRemove the rendered media for the selected project.
Get a media fileRead the details and URL for an existing media file.
Get a video templateRead a saved template definition or its variables.
Get media storage usageCheck storage consumption and whether uploads are blocked.
Get video statusRead the render status and the finished download URL.
List library templatesBrowse templates supplied by JSON2Video.
List media in a folderBrowse files in a media folder.
List rendered videosList video projects created during a date range.
List video templatesList saved templates, optionally filtering by tag.
Render a videoStart a render from a movie JSON definition.
Render a video from a templateStart a render using a saved template and its variable values.

Delete a rendered video

Remove the rendered media for the selected project.

Inputs

ProjectprojecttextRequired
The project ID from Render a video.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "success": true
  }
}

Get a media file

Read the details and URL for an existing media file.

Inputs

PathpathtextRequired
The file path, such as videos/clip.mp4.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "file": {
      "folder": "example",
      "name": "example",
      "status": "example",
      "type": "example",
      "url": "example"
    },
    "success": true
  }
}

Get a video template

Read a saved template definition or its variables.

Inputs

Templatetemplate_idtextRequired
Choose the saved template.
Formatformattext
Choose a variables format, or leave empty for the movie definition.One of: make, jsonschema.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "success": true,
    "template": {
      "description": "example",
      "id": "example",
      "movie": "example",
      "name": "example",
      "variables": {}
    }
  }
}

Get media storage usage

Check storage consumption and whether uploads are blocked.

Inputs

None.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "storage": {
      "blocked": true,
      "credits_per_week": 1,
      "free_allowance": 1,
      "used_bytes": 1
    },
    "success": true
  }
}

Get video status

Read the render status and the finished download URL.

Inputs

ProjectprojecttextRequired
The project ID from Render a video.
Formatformattext
Leave empty to include the original movie JSON.One of: simple.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "movie": {
      "created_at": "example",
      "ended_at": "example",
      "message": "example",
      "project": "example",
      "status": "example",
      "url": "example"
    },
    "success": true
  }
}

List library templates

Browse templates supplied by JSON2Video.

Inputs

None.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "success": true,
    "templates": [
      {
        "description": "example",
        "id": "example",
        "movie": {},
        "name": "example"
      }
    ]
  }
}

List media in a folder

Browse files in a media folder.

Inputs

Pathpathtext
The media folder to read.
Typetypetext
The kind of media to return.One of: image, video, audio, other.
Searchsearchtext
Part of a file name.
Pagepagenumber
The page number, starting at 0.At least 0.
Page sizepage_sizenumber
Number of files per page.From 1 to 100.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "files": [
      {
        "folder": "example",
        "name": "example",
        "status": "example",
        "type": "example",
        "url": "example"
      }
    ],
    "folders": [
      "example"
    ],
    "total": 1
  }
}

List rendered videos

List video projects created during a date range.

Inputs

Start timestart_timedate and time
Start of the creation window.
End timeend_timedate and time
End of the creation window.
Limitlimitnumber
Maximum number of results to return.From 1 to 100.
Cursorcursortext
The next-page token from the previous response.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "has_next": true,
    "movies": [
      {
        "created_at": "example",
        "ended_at": "example",
        "message": "example",
        "project": "example",
        "status": "example",
        "url": "example"
      }
    ],
    "next_token": "example",
    "success": true
  }
}

List video templates

List saved templates, optionally filtering by tag.

Inputs

Tagtagtext
The template tag to match.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "success": true,
    "templates": [
      {
        "description": "example",
        "id": "example",
        "movie": {},
        "name": "example"
      }
    ]
  }
}

Render a video

Start a render from a movie JSON definition.

Inputs

MoviemovieobjectRequired
The movie definition with scenes and elements.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "project": "example",
    "success": true
  }
}

Render a video from a template

Start a render using a saved template and its variable values.

Inputs

TemplatetemplatetextRequired
Choose the template to render.
Variablesvariablesobject
Values for the template variables.

Outputs

dataobject
The response from JSON2Video.
Example output
{
  "data": {
    "project": "example",
    "success": true
  }
}

On this page