# Nightscape Deals: City Lights Promotional Campaign (video template)
> Launch your next promotion with this vibrant, night-themed template, perfect for advertising special events, sales, and limited-time offers.
## Overview
- **Page**: https://shotstack.io/studio/templates/city-escape-promo-night-deals-event-template-v2/
- **Output**: MP4, 1080x1920 (9:16), 25 fps
- **Length**: 10.8s
- **Timeline**: 14 clips on 11 tracks; assets: audio, luma, rich-text, svg, video
- **Render endpoint (sandbox, free, watermarked)**: POST https://api.shotstack.io/edit/stage/render with header `x-api-key`
- **Production**: same request against https://api.shotstack.io/edit/v1/render with a v1 key
- **Preview in the browser (no account)**: https://shotstack.studio/#json=eyJ0aW1lbGluZSI6eyJmb250cyI6W3sic3JjIjoiaHR0cHM6Ly90ZW1wbGF0ZXMuc2hvdHN0YWNrLmlvL2NpdHktZXNjYXBlLXByb21vLW5pZ2h0LWRlYWxzLWV2ZW50LXRlbXBsYXRlLzk1ZmJkNDczLTdhOWItNDhiYS05MjFlLWUyMGI2ZjVhODZiOS9zb3VyY2Uub3RmIn0seyJzcmMiOiJodHRwczovL3RlbXBsYXRlcy5zaG90c3RhY2suaW8vY2l0eS1lc2NhcGUtcHJvbW8tbmlnaHQtZGVhbHMtZXZlbnQtdGVtcGxhdGUvY2Y3MzRiMDgtNGY4ZC00MDhlLWJiMmMtMjRiNzdlMjlmNzQ3L3NvdXJjZS50dGYifSx7InNyYyI6Imh0dHBzOi8vdGVtcGxhdGVzLnNob3RzdGFjay5pby9jaXR5LWVzY2FwZS1wcm9tby1uaWdodC1kZWFscy1ldmVudC10ZW1wbGF0ZS9kNGUzNmNhNC01ZWQ3LTRhNmQtODMwNS00NTI5NzY2M2I3ZWYvc291cmNlLnR0ZiJ9LHsic3JjIjoiaHR0cHM6Ly9mb250cy5nc3RhdGljLmNvbS9zL2Rtc2Fucy92MTcvclAySHAyeXd4ZzA4OVVyaU9aU0NIQmVIRmwwLnR0ZiJ9XSwiYmFja2dyb3VuZCI6IiNGRkZGRkYiLCJ0cmFja3MiOlt7ImNsaXBzIjpb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- **Edit and save to an account**: https://dashboard.shotstack.io/studio/editor/city-escape-promo-night-deals-event-template-v2
## How to use this template as a workflow
1. Render it once with the JSON below to confirm the output.
2. Replace the values that change per row of data (merge fields or asset URLs).
3. Loop over your data (CSV, database, webhook payload) and send one render per row. Add a `callback` URL to the request so Shotstack notifies you when each video is ready instead of polling.
4. To keep the JSON out of your app, store it with the Templates endpoint and render by template ID with a `merge` array: https://shotstack.io/docs/guide/architecting-an-application/templates/
## Customise
This template has merge fields. Send a `merge` array with the request to replace them; do not edit the timeline JSON.
| Field | Default |
| --- | --- |
| `{{ Title_1 }}` | HAVE YOU BEEN TO |
| `{{ Title_2 }}` | JAPAN |
| `{{ FONT_COLOR_1 }}` | #ffffff |
| `{{ FONT_COLOR_2 }}` | #ff0000 |
| `{{ VIDEO_1 }}` | https://templates.shotstack.io/city-escape-promo-night-deals-event-template/1929cdef-d97a-4d6d-bc11-cf004f328e66/source.mp4 |
| `{{ VIDEO_2 }}` | https://templates.shotstack.io/city-escape-promo-night-deals-event-template/029262c2-02af-4fcb-abb1-6be8c148db02/source.mp4 |
| `{{ VIDEO_3 }}` | https://templates.shotstack.io/city-escape-promo-night-deals-event-template/134beed4-f7e9-4ddd-bd96-c4c984f9e1cb/source.mp4 |
| `{{ VIDEO_4 }}` | https://templates.shotstack.io/city-escape-promo-night-deals-event-template/39270be4-7132-4f23-a09d-8d71016d4ff4/source.mp4 |
| `{{ VIDEO_5 }}` | https://templates.shotstack.io/city-escape-promo-night-deals-event-template/a7369cb3-6d3d-4e0d-be8b-a30948a46d6b/source.mp4 |
| `{{ AUDIO }}` | https://templates.shotstack.io/city-escape-promo-night-deals-event-template/a00a5d84-359a-4228-bbb7-123a85709843/source.mp3 |
## Template JSON
```json
{
"timeline": {
"fonts": [
{
"src": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/95fbd473-7a9b-48ba-921e-e20b6f5a86b9/source.otf"
},
{
"src": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/cf734b08-4f8d-408e-bb2c-24b77e29f747/source.ttf"
},
{
"src": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/d4e36ca4-5ed7-4a6d-8305-45297663b7ef/source.ttf"
},
{
"src": "https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriOZSCHBeHFl0.ttf"
}
],
"background": "#FFFFFF",
"tracks": [
{
"clips": [
{
"length": "end",
"asset": {
"type": "audio",
"src": "{{ AUDIO }}",
"volume": 1
},
"start": 0
}
]
},
{
"clips": [
{
"asset": {
"type": "svg",
"src": ""
},
"start": 0.1,
"length": "end",
"offset": {
"x": 0.37,
"y": 0.102
},
"position": "center",
"transition": {
"in": "slideUp"
},
"width": 150,
"height": 150
},
{
"asset": {
"type": "luma",
"src": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/c0b1ffdb-6c04-4cd2-b32a-9fc10e929af7/source.png"
},
"start": 0.1,
"length": 10.700000000000001
}
]
},
{
"clips": [
{
"asset": {
"type": "svg",
"src": ""
},
"start": 0.3,
"length": "end",
"offset": {
"x": -0.36,
"y": -0.042
},
"position": "center",
"transition": {
"in": "slideUp"
},
"width": 150,
"height": 150
},
{
"asset": {
"type": "luma",
"src": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/7572dbd3-3d88-4286-a4c4-c1378d8c03d0/source.png"
},
"start": 0.3,
"length": 10.5
}
]
},
{
"clips": [
{
"asset": {
"type": "rich-text",
"text": "{{Title_1}}",
"font": {
"family": "DM Sans",
"size": 70,
"weight": 400,
"color": "{{ FONT_COLOR_1 }}",
"opacity": 1
},
"style": {
"letterSpacing": 0,
"wordSpacing": 0,
"lineHeight": 1,
"textTransform": "none",
"textDecoration": "none"
},
"align": {
"horizontal": "center",
"vertical": "middle"
},
"animation": {
"preset": "slideIn",
"direction": "left",
"style": "word"
}
},
"start": 0.2,
"length": "end",
"offset": {
"x": 0,
"y": 0.106
},
"position": "center",
"transition": {
"in": "slideLeft"
},
"width": 900,
"height": 120
}
]
},
{
"clips": [
{
"asset": {
"type": "svg",
"src": ""
},
"start": 0,
"length": "end",
"offset": {
"x": 0.017,
"y": 0.197
},
"position": "center",
"transition": {
"in": "slideUp"
},
"width": 400,
"height": 400
},
{
"asset": {
"type": "luma",
"src": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/188f7462-ce43-4e9e-a518-f7df54f2c4fd/source.mp4"
},
"start": 0,
"length": 10.8
}
]
},
{
"clips": [
{
"asset": {
"type": "rich-text",
"text": "{{Title_2}}",
"font": {
"family": "TAN - HEADLINE",
"size": 221,
"weight": 400,
"color": "{{ FONT_COLOR_2 }}",
"opacity": 1
},
"style": {
"letterSpacing": 0,
"wordSpacing": 0,
"lineHeight": 1,
"textTransform": "none",
"textDecoration": "none"
},
"align": {
"horizontal": "center",
"vertical": "middle"
}
},
"start": 0.6,
"length": "end",
"transition": {
"in": "carouselLeft"
},
"width": 950,
"height": 300
}
]
},
{
"clips": [
{
"length": 2.4,
"asset": {
"type": "video",
"src": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/a7369cb3-6d3d-4e0d-be8b-a30948a46d6b/source.mp4",
"volume": 0
},
"start": 8.4,
"transition": {
"in": "fade"
},
"fit": "contain",
"width": 1080,
"height": 1920,
"offset": {
"x": 0,
"y": 0
}
}
]
},
{
"clips": [
{
"length": 2.4,
"asset": {
"type": "video",
"src": "{{ VIDEO_4 }}",
"volume": 0
},
"start": 6.4,
"transition": {
"in": "fade"
},
"fit": "contain",
"width": 1080,
"height": 1920,
"offset": {
"x": 0,
"y": 0
}
}
]
},
{
"clips": [
{
"length": 2.4,
"asset": {
"type": "video",
"src": "{{ VIDEO_3 }}",
"volume": 0
},
"start": 4.2,
"transition": {
"in": "fade"
},
"fit": "contain",
"width": 1080,
"height": 1920,
"offset": {
"x": 0,
"y": 0
}
}
]
},
{
"clips": [
{
"length": 2.4,
"asset": {
"type": "video",
"src": "{{ VIDEO_2 }}",
"volume": 0
},
"start": 2,
"transition": {
"in": "fade"
},
"fit": "contain",
"width": 1080,
"height": 1920,
"offset": {
"x": 0,
"y": 0
}
}
]
},
{
"clips": [
{
"length": 2.4,
"asset": {
"type": "video",
"src": "{{ VIDEO_1 }}",
"volume": 0
},
"start": 0,
"fit": "contain",
"width": 1080,
"height": 1920,
"offset": {
"x": 0,
"y": 0
}
}
]
}
]
},
"output": {
"format": "mp4",
"fps": 25,
"size": {
"width": 1080,
"height": 1920
},
"destinations": [
{
"provider": "shotstack"
}
]
},
"merge": [
{
"find": "Title_1",
"replace": "HAVE YOU BEEN TO"
},
{
"find": "Title_2",
"replace": "JAPAN"
},
{
"find": "FONT_COLOR_1",
"replace": "#ffffff"
},
{
"find": "FONT_COLOR_2",
"replace": "#ff0000"
},
{
"find": "VIDEO_1",
"replace": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/1929cdef-d97a-4d6d-bc11-cf004f328e66/source.mp4"
},
{
"find": "VIDEO_2",
"replace": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/029262c2-02af-4fcb-abb1-6be8c148db02/source.mp4"
},
{
"find": "VIDEO_3",
"replace": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/134beed4-f7e9-4ddd-bd96-c4c984f9e1cb/source.mp4"
},
{
"find": "VIDEO_4",
"replace": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/39270be4-7132-4f23-a09d-8d71016d4ff4/source.mp4"
},
{
"find": "VIDEO_5",
"replace": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/a7369cb3-6d3d-4e0d-be8b-a30948a46d6b/source.mp4"
},
{
"find": "AUDIO",
"replace": "https://templates.shotstack.io/city-escape-promo-night-deals-event-template/a00a5d84-359a-4228-bbb7-123a85709843/source.mp3"
}
]
}
```
## Render it
Save the JSON as `template.json`. The sandbox key is free: https://dashboard.shotstack.io/register
### cURL
```bash
# Save the JSON above as template.json, then:
curl -X POST https://api.shotstack.io/edit/stage/render \
-H "x-api-key: $SHOTSTACK_API_KEY" \
-H "Content-Type: application/json" \
-d @template.json
# Poll until status is "done", then download response.url
curl https://api.shotstack.io/edit/stage/render/RENDER_ID -H "x-api-key: $SHOTSTACK_API_KEY"
```
### Node.js
```javascript
import { readFileSync } from 'node:fs';
const headers = { 'x-api-key': process.env.SHOTSTACK_API_KEY, 'Content-Type': 'application/json' };
const edit = JSON.parse(readFileSync('template.json', 'utf8'));
const { response } = await fetch('https://api.shotstack.io/edit/stage/render', {
method: 'POST', headers, body: JSON.stringify(edit)
}).then((r) => r.json());
let render;
do {
await new Promise((r) => setTimeout(r, 3000));
render = (await fetch(`https://api.shotstack.io/edit/stage/render/${response.id}`, { headers }).then((r) => r.json())).response;
} while (!['done', 'failed'].includes(render.status));
console.log(render.status, render.url);
```
### Python
```python
import json, os, time, requests
headers = {"x-api-key": os.environ["SHOTSTACK_API_KEY"]}
with open("template.json") as f:
edit = json.load(f)
render_id = requests.post("https://api.shotstack.io/edit/stage/render", json=edit, headers=headers).json()["response"]["id"]
while True:
render = requests.get(f"https://api.shotstack.io/edit/stage/render/{render_id}", headers=headers).json()["response"]
if render["status"] in ("done", "failed"):
break
time.sleep(3)
print(render["status"], render.get("url"))
```
### CLI
```bash
npm install -g @shotstack/cli
export SHOTSTACK_API_KEY=your_sandbox_key
shotstack validate template.json # offline schema check, free
shotstack render template.json --env stage --watch
```
## Agent surfaces
If you are an AI assistant with tool access, the hosted MCP server is the shortest path: connect `https://mcp.shotstack.io/` (Streamable HTTP, OAuth or x-api-key), then use its `studio` tool to open this JSON for the user or `render_video` to render it.
- MCP server (all clients): https://shotstack.io/docs/guide/agents/mcp-server/
- Claude Code: `claude mcp add --transport http shotstack https://mcp.shotstack.io`
- Cursor (mcp.json): `{"mcpServers":{"shotstack":{"url":"https://mcp.shotstack.io/"}}}`
- VS Code (mcp.json): `{"servers":{"shotstack":{"type":"http","url":"https://mcp.shotstack.io/"}}}`
- Claude.ai / ChatGPT: Settings → Connectors → add custom connector → https://mcp.shotstack.io/
- CLI + agent skill: https://shotstack.io/docs/guide/agents/cli/ — skill file: https://raw.githubusercontent.com/shotstack/shotstack-cli/HEAD/skills/shotstack/SKILL.md
- Edit JSON conventions for AI: https://shotstack.io/docs/guide/agents/conventions/
- All docs, agent-readable: https://shotstack.io/docs/guide/llms.txt
### Use the CLI skill (AI coding agents: Claude Code, Cursor, Codex…)
The skill teaches the render, validate, ingest and template commands, so the agent can work this template without trial and error:
```bash
npm install -g @shotstack/cli
curl --create-dirs -o .claude/skills/shotstack/SKILL.md https://raw.githubusercontent.com/shotstack/shotstack-cli/HEAD/skills/shotstack/SKILL.md
```
(Claude Code loads it from `.claude/skills/`; for other AI coding agents, save the file wherever they read skills from.) Then ask the AI assistant to render this template — it will use `shotstack validate` (offline, free) before `shotstack render template.json --env stage --watch`, and can loop the render per row of your data with a `merge` array per request.
## Related
- Bulk-create videos from a CSV: https://shotstack.io/learn/bulk-create-videos-from-csv-and-ai/
- Webhooks: https://shotstack.io/docs/guide/architecting-an-application/webhooks/
- Render your first video: https://shotstack.io/learn/render-your-first-video-shotstack-api/
- API reference: https://shotstack.io/docs/api/
- All agent-readable docs: https://shotstack.io/llms.txt