JSON2Video
App · 11 actions
Render videos from movie definitions or templates and manage your media library.
Actions
| Action | What it does |
|---|---|
| Delete a rendered video | Remove the rendered media for the selected project. |
| Get a media file | Read the details and URL for an existing media file. |
| Get a video template | Read a saved template definition or its variables. |
| Get media storage usage | Check storage consumption and whether uploads are blocked. |
| Get video status | Read the render status and the finished download URL. |
| List library templates | Browse templates supplied by JSON2Video. |
| List media in a folder | Browse files in a media folder. |
| List rendered videos | List video projects created during a date range. |
| List video templates | List saved templates, optionally filtering by tag. |
| Render a video | Start a render from a movie JSON definition. |
| Render a video from a template | Start a render using a saved template and its variable values. |
Delete a rendered video
Remove the rendered media for the selected project.
Inputs
- Project
projecttextRequired - 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
- Path
pathtextRequired - 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
- Template
template_idtextRequired - Choose the saved template.
- Format
formattext - 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
- Project
projecttextRequired - The project ID from Render a video.
- Format
formattext - 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
- Path
pathtext - The media folder to read.
- Type
typetext - The kind of media to return.One of:
image,video,audio,other. - Search
searchtext - Part of a file name.
- Page
pagenumber - The page number, starting at 0.At least 0.
- Page size
page_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 time
start_timedate and time - Start of the creation window.
- End time
end_timedate and time - End of the creation window.
- Limit
limitnumber - Maximum number of results to return.From 1 to 100.
- Cursor
cursortext - 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
- Tag
tagtext - 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
- Movie
movieobjectRequired - 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
- Template
templatetextRequired - Choose the template to render.
- Variables
variablesobject - Values for the template variables.
Outputs
dataobject- The response from JSON2Video.
Example output
{
"data": {
"project": "example",
"success": true
}
}