Automate Reels From Google Drive: A Zero-Touch Spoofzy API Pipeline With n8n or Python
Drop a Reel into a Google Drive folder and get one unique copy per account back automatically: the exact API calls, an n8n node map and a copy-paste Python script.
Drop a Reel in Drive. Every account’s copy appears.
- Bring
- A master Reel in a Google Drive inbox folder
- Make
- One unique copy per account, filed back in Drive
- Open
- A Spoofzy API key, plus n8n or Python
Make Google Drive the control panel. A master Reel lands in an inbox folder; n8n or a short Python script asks the Spoofzy API for an upload link, sends the file, starts one job with a copy for every account (up to 50 per job), polls until it is ready and writes each copy into that account’s folder. Nobody downloads, renames or re-uploads anything. On R1 Swift each copy costs ✦2, so 1,000 copies a day is 2,000 credits: $13.30 at the Growth pack rate. Rather run it from a chat? Use Claude and the Spoofzy MCP server.
What a zero-touch Reels pipeline looks like
In most agencies the VA is the pipeline: download the winner, upload it, wait, download 25 copies, rename them, drag them into 25 folders. That is human middleware, and it caps output at however many files one person can shuffle in a shift.
A zero-touch pipeline moves every one of those steps into software. The only human action left is dropping a master into a folder and posting the copies that appear:
| Stage | What happens | Who does it |
|---|---|---|
| Inbox | An editor drops the master Reel into Drive/Spoofzy/inbox | A person, once |
| Upload | The pipeline asks the API for an upload link and sends the file | n8n or Python |
| Multiply | One job requests a unique copy for every account | Spoofzy API |
| Wait | The pipeline polls the job until it is ready | n8n or Python |
| File | Each copy lands in its account’s Drive folder, numbered | n8n or Python |
| Post | Each VA posts the next copy in their folder | A person, per account |
The four API calls behind every run
Everything below is built from the same four requests to https://api.spoofzy.com/api/v1, authenticated with your key as a Bearer token. Here they are with curl:
API=https://api.spoofzy.com/api/v1
AUTH="Authorization: Bearer $SPOOFZY_API_KEY"
# 1. Ask for a private upload link
curl -sS "$API/uploads" -H "$AUTH" -H "Content-Type: application/json" \
-d '{"tool_id":"spoofer","filename":"reel.mp4","content_type":"video/mp4"}'
# returns {"upload":{"id":"fup_…","method":"PUT","url":"https://…","headers":{"Content-Type":"video/mp4"}}}
# 2. Send the file to that link (no API key on this request)
curl -sS -X PUT "$UPLOAD_URL" -H "Content-Type: video/mp4" --upload-file reel.mp4
# 3. Start one job: a unique copy for each of 25 accounts
curl -sS "$API/jobs" -H "$AUTH" -H "Content-Type: application/json" \
-d '{"tool_id":"spoofer","request_id":"reel-nov26-001","upload_id":"fup_YOUR_UPLOAD_ID","filename":"reel.mp4","options":{"variants":25,"engine":"r1-swift"}}'
# 4. Poll until job.status is "ready", then save every job.result.outputs[].download_url
curl -sS "$API/jobs/$JOB_ID" -H "$AUTH"- request_id makes a start safe to retry: send the same ID with the same body and you get the original job back, never a second charge.
- One job returns up to 50 copies. Bigger roster? Start one job per 50 accounts from the same upload.
- Credits are held when the job starts and refunded for any copy that isn’t delivered.
- Keep polling relaxed: every request counts towards the account’s 45 requests a minute, and a 429 answer tells you how long to wait in Retry-After.
Set it up in n8n: the node map
n8n runs the whole pipeline without a line of code. Store your key once as a Header Auth credential (name Authorization, value Bearer followed by your key) and reuse it on every Spoofzy request.
Two tips before you start. A Drive file ID is already a valid request_id, so a re-triggered workflow returns the same job instead of starting a new one. And a small Code node holding your account list in order lets the upload step send copy 1 to the first account’s folder, copy 2 to the second, and so on.
The workflow, node by node:
| Node | Settings |
|---|---|
| 1. Google Drive Trigger | Trigger On: Changes Involving a Specific Folder (the inbox); Watch For: File Created; polls every minute |
| 2. HTTP Request: create upload | POST /uploads with tool_id spoofer, the file name and video/mp4 |
| 3. Google Drive: download | Operation Download; Put Output File in Field: data |
| 4. Merge | Combine the upload ticket and the downloaded file by position |
| 5. HTTP Request: send file | PUT to upload.url; Body Content Type: n8n Binary File; Input Data Field Name: data; no auth |
| 6. HTTP Request: start job | POST /jobs with request_id set to the Drive file ID, the upload ID and options variants and engine |
| 7. Wait, then HTTP Request: poll | Wait: After Time Interval, 20 seconds; then GET /jobs/{jobId} |
| 8. If | job.status is ready: continue. queued or processing: loop back to the Wait. failed: alert the team |
| 9. Split Out, then HTTP Request: download | One item per job.result.outputs entry with a download_url; fetch each as a file |
| 10. Google Drive: upload | Write copy N into the folder of account N, named source_v01.mp4 onwards |
Or run the whole pipeline as one Python script
No n8n? Google Drive for desktop mirrors your Drive as a normal folder, so a single script can watch the inbox and write copies straight back into Drive. Set SPOOFZY_API_KEY and DRIVE_FOLDER, list your accounts and leave it running:
"""Watch a Google Drive inbox and file one Spoofzy copy per account."""
import os, re, shutil, time, uuid
from pathlib import Path
import requests
API = "https://api.spoofzy.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SPOOFZY_API_KEY']}"}
DRIVE = Path(os.environ["DRIVE_FOLDER"]) # your Google Drive for desktop folder
ACCOUNTS = ["ig01", "ig02", "ig03", "tt01", "tt02"] # one copy each, up to 50 per job
ENGINE = "r1-swift" # or "r2-advanced", "r2-ultra"
TYPES = {".mp4": "video/mp4", ".mov": "video/quicktime"}
def api(method, path, **kwargs):
for attempt in range(5):
response = requests.request(method, API + path, headers=HEADERS, timeout=60, **kwargs)
body = response.json()
code = body.get("error", {}).get("code")
if response.status_code == 429 and code in ("request_rate_limit", "submission_busy") and attempt < 4:
time.sleep(int(response.headers.get("Retry-After", "5")))
continue
if not response.ok:
raise RuntimeError(f"{response.status_code} {code}: {body['error'].get('message')}")
return body
def spoof(source):
upload = api("POST", "/uploads", json={"tool_id": "spoofer", "filename": source.name,
"content_type": TYPES[source.suffix.lower()]})["upload"]
with source.open("rb") as handle:
requests.put(upload["url"], data=handle, headers=upload["headers"], timeout=600).raise_for_status()
request_id = re.sub(r"[^A-Za-z0-9_-]", "-", source.stem)[:60] + "-" + uuid.uuid4().hex[:12]
start = api("POST", "/jobs", json={"tool_id": "spoofer", "request_id": request_id,
"upload_id": upload["id"], "filename": source.name,
"options": {"variants": len(ACCOUNTS), "engine": ENGINE}})["start"]
if start["status"] == "rejected":
raise RuntimeError(f"{source.name}: {start['reason']}")
while True:
job = api("GET", f"/jobs/{start['jobId']}")["job"]
if job["status"] not in ("queued", "processing"):
break
time.sleep(10)
if job["status"] != "ready":
raise RuntimeError(f"{source.name}: {job['status']} {job['error']}")
result = job["result"]
links = [item["download_url"] for item in result.get("outputs", []) if "download_url" in item]
for number, (account, link) in enumerate(zip(ACCOUNTS, links or [result["download_url"]]), start=1):
folder = DRIVE / "accounts" / account
folder.mkdir(parents=True, exist_ok=True)
with requests.get(link, stream=True, timeout=600) as file:
file.raise_for_status()
with (folder / f"{source.stem}_v{number:02d}.mp4").open("wb") as out:
for chunk in file.iter_content(chunk_size=1 << 20):
out.write(chunk)
inbox, done = DRIVE / "inbox", DRIVE / "inbox" / "done"
done.mkdir(parents=True, exist_ok=True)
while True:
for source in sorted(p for p in inbox.iterdir() if p.suffix.lower() in TYPES):
spoof(source)
shutil.move(str(source), str(done / source.name))
time.sleep(60)- Run it under launchd, systemd or a process manager on an always-on machine, and the inbox works around the clock.
- Processed masters move to inbox/done, so a restart never re-runs a file.
Source: Video Spoofer API guide: the same calls, step by step
Pick the engine for each job
Set options.engine per job. All three run through the API on any account:
| Engine | Credits per video | Use it when |
|---|---|---|
| r1-swift | ✦2 (✦1 per image) | Daily volume across the roster: fast, unique copies at the lowest rate |
| r2-advanced | ✦12 | Your best performers: every copy’s distance from the original is verified |
| r2-ultra | ✦24 | Big rosters posting the same winner: every copy is also verified against every other copy |
The scale math for a busy inbox
- 20 masters a day × 50 accounts = 1,000 unique copies a day, from 20 jobs.
- 1,000 R1 Swift copies = 2,000 credits = $13.30 at the Growth pack rate, or $12.02 at the Scale rate.
- A 30-day month of that is 30,000 copies and 60,000 credits: exactly one Growth pack (60,000 credits for $399).
- Promote the top five masters each week to R2 Advanced: 5 × 50 copies × ✦12 = 3,000 credits.
Source: API credit packs and rates
Pipeline questions, straight answers
Can the API send a webhook instead of being polled?
Single jobs are polled, which is what the Wait loop and the script do. Saved workflows in Spoofzy Cloud can deliver a signed webhook when a run finishes, so a pipeline built on a saved workflow can skip polling.
What if a job fails halfway?
You keep what was delivered and get credits back for what wasn’t. The job result tells you how many copies were requested and how many arrived, so the pipeline can start a top-up job for the difference.
Can I send MOV files from an iPhone?
Yes. Send them with content type video/quicktime. Images work too, at ✦1 per copy, with image/jpeg, image/png or image/webp.
Can the same pipeline remove captions or SynthID first?
Yes. The API also runs SynthID removal on images, and Text Removal quotes a video per second before you accept, so a pipeline can clean a master before it multiplies it.
Before you switch the pipeline on
Five checks before the first master goes in.
Drop a Reel in Drive. Feed every account.
Four API calls, one folder per account and a key in your environment. Set it up once in n8n or Python and the inbox runs while the team sleeps.
Get an API key