Upload Video from Platform Creator URL
curl --request POST \
--url https://api.memories.ai/serve/api/v1/scraper \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"username": "https://www.tiktok.com/@cutshall73",
"scraper_cnt": 4,
"callback_url": "https://your.app/callback",
"folder_id": 671631448308117500
}
'import requests
url = "https://api.memories.ai/serve/api/v1/scraper"
payload = {
"username": "https://www.tiktok.com/@cutshall73",
"scraper_cnt": 4,
"callback_url": "https://your.app/callback",
"folder_id": 671631448308117500
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
username: 'https://www.tiktok.com/@cutshall73',
scraper_cnt: 4,
callback_url: 'https://your.app/callback',
folder_id: 671631448308117500
})
};
fetch('https://api.memories.ai/serve/api/v1/scraper', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.memories.ai/serve/api/v1/scraper",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'username' => 'https://www.tiktok.com/@cutshall73',
'scraper_cnt' => 4,
'callback_url' => 'https://your.app/callback',
'folder_id' => 671631448308117500
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.memories.ai/serve/api/v1/scraper"
payload := strings.NewReader("{\n \"username\": \"https://www.tiktok.com/@cutshall73\",\n \"scraper_cnt\": 4,\n \"callback_url\": \"https://your.app/callback\",\n \"folder_id\": 671631448308117500\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.memories.ai/serve/api/v1/scraper")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"https://www.tiktok.com/@cutshall73\",\n \"scraper_cnt\": 4,\n \"callback_url\": \"https://your.app/callback\",\n \"folder_id\": 671631448308117500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memories.ai/serve/api/v1/scraper")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"username\": \"https://www.tiktok.com/@cutshall73\",\n \"scraper_cnt\": 4,\n \"callback_url\": \"https://your.app/callback\",\n \"folder_id\": 671631448308117500\n}"
response = http.request(request)
puts response.read_body{
"code": "0000",
"msg": "success",
"data": {},
"success": true,
"failed": false
}Social Media — Creator Profile
Import from Creator Profile — Private
Scrape the most recent N videos from a creator profile into your Private Video Library.
POST
/
serve
/
api
/
v1
/
scraper
Upload Video from Platform Creator URL
curl --request POST \
--url https://api.memories.ai/serve/api/v1/scraper \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"username": "https://www.tiktok.com/@cutshall73",
"scraper_cnt": 4,
"callback_url": "https://your.app/callback",
"folder_id": 671631448308117500
}
'import requests
url = "https://api.memories.ai/serve/api/v1/scraper"
payload = {
"username": "https://www.tiktok.com/@cutshall73",
"scraper_cnt": 4,
"callback_url": "https://your.app/callback",
"folder_id": 671631448308117500
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
username: 'https://www.tiktok.com/@cutshall73',
scraper_cnt: 4,
callback_url: 'https://your.app/callback',
folder_id: 671631448308117500
})
};
fetch('https://api.memories.ai/serve/api/v1/scraper', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.memories.ai/serve/api/v1/scraper",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'username' => 'https://www.tiktok.com/@cutshall73',
'scraper_cnt' => 4,
'callback_url' => 'https://your.app/callback',
'folder_id' => 671631448308117500
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.memories.ai/serve/api/v1/scraper"
payload := strings.NewReader("{\n \"username\": \"https://www.tiktok.com/@cutshall73\",\n \"scraper_cnt\": 4,\n \"callback_url\": \"https://your.app/callback\",\n \"folder_id\": 671631448308117500\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.memories.ai/serve/api/v1/scraper")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"https://www.tiktok.com/@cutshall73\",\n \"scraper_cnt\": 4,\n \"callback_url\": \"https://your.app/callback\",\n \"folder_id\": 671631448308117500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memories.ai/serve/api/v1/scraper")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"username\": \"https://www.tiktok.com/@cutshall73\",\n \"scraper_cnt\": 4,\n \"callback_url\": \"https://your.app/callback\",\n \"folder_id\": 671631448308117500\n}"
response = http.request(request)
puts response.read_body{
"code": "0000",
"msg": "success",
"data": {},
"success": true,
"failed": false
}Product: Visual Search
Use case: Upload videos and images, auto-index them, then search by natural language, image, or transcript phrase
Host:
https://api.memories.ai/serve/api/v1
Auth: Authorization: sk-mavi-... (no Bearer prefix)TikTok: https://www.tiktok.com/@cutshall73
YouTube: https://www.youtube.com/@mkbhd
Instagram: https://www.instagram.com/nike/
Prerequisites
- You have created a memories.ai API key.
Request Example
import requests
headers = {"Authorization": "sk-mavi-..."}
payload = {
"username": "https://www.tiktok.com/@cutshall73",
"folder_id": 671631448308117504,
"scraper_cnt": 10,
"callback_url": "https://your.app/callback"
}
response = requests.post(
"https://api.memories.ai/serve/api/v1/scraper",
json=payload,
headers=headers
)
print(response.json())
Parameters
string
required
Full URL of the creator’s profile page (e.g.
https://www.tiktok.com/@cutshall73).integer
Number of most recent posts to ingest from the creator’s feed.
integer
Optional. Target folder for the uploaded video(s). Omit (or pass
-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.string
URL to receive POST notifications on task and per-video indexing progress. Alias
callback is also accepted.Response Example
{
"code": "0000",
"msg": "success",
"data": {
"taskId": "31b0fccb-d6f9-4135-922d-1e8828499812"
},
"success": true,
"failed": false
}
Response Fields
string
Business status code.
0000 indicates success.string
Human-readable status message.
string
Unique identifier for the import task. Use with Get Task Status.
Notes & Limits
- Rate limiting: See Rate limits.
- Billing: Each request deducts credits. YouTube consumes additional credits.
- YouTube: Indexing may be slower than TikTok or Instagram due to scraper capacity.
Authorizations
Body
application/json
Example:
"https://www.tiktok.com/@cutshall73"
Example:
"https://your.app/callback"
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.
Example:
671631448308117500
