Import from Post URLs — Private
Import specific TikTok, YouTube, or Instagram post URLs into your Private Video Library.
https://api.memories.ai/serve/api/v1
Auth: Authorization: sk-mavi-... (no Bearer prefix)Prerequisites
- You have created a memories.ai API key.
Request Example
Parameters
tiktok_post_urls (if provided), the total must not exceed 50 URLs. All URLs must be from the same platform.video_urls before processing. Counts toward the 50-URL cap.-1) to store in your account’s Default folder (created automatically on first use). Pass a folder id from List Folders or Create Folder to store in that folder — it must belong to your account, otherwise the request is rejected.callback — pick one and stick with it per project."360", "480", "720", "1080", "1440", "2160". For YouTube, the actual resolution will be ≤ the requested value based on source availability. For TikTok and Instagram, videos are scraped at their original resolution.Response Example
Response Fields
0000 indicates success.Next Steps
Poll Get Task Status with the returnedtaskId until each derived video’s status reaches PARSE. Empty data.videos covers both “still downloading” and “task_id not found” — combine with a client-side timeout. FAIL is common for DRM-protected YouTube content.
Notes & Limits
- Rate limiting: See Rate limits.
- Billing: Each request deducts credits. YouTube URLs consume additional credits.
- Same-origin constraint: All URLs in one request must be from the same platform — mixed-platform batches are rejected.
- YouTube: Indexing may be slower than TikTok or Instagram due to scraper capacity.
Authorizations
Body
Platform video URLs. Merged with tiktok_post_urls; combined list must be non-empty and <= 50. All URLs must be from the same platform.
50Optional TikTok post URLs. Server merges these into video_urls before processing. Counts toward the 50-URL cap.
Callback URL for task-complete and per-video indexing-complete notifications.
"https://your.app/callback"
Target video resolution. Must be one of 360/480/720/1080/1440/2160 (string).
360, 480, 720, 1080, 1440, 2160 "1080"
Optional target folder for the upload. Omit or pass -1 for the account's Default folder (auto-created on first use). A positive id must belong to your account.
671631448308117500
