Call it
curl https://api.peume.com/v1/call/search-ugc-reaction-clips-by-keyword-or-description \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"search": "surprised",
"semantic_search": "woman laughing at her phone in bed",
"emotion": "happy",
"gender": "female",
"location": "Bedroom",
"age_range": "18-24"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-ugc-reaction-clips-by-keyword-or-description", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"search": "surprised",
"semantic_search": "woman laughing at her phone in bed",
"emotion": "happy",
"gender": "female",
"location": "Bedroom",
"age_range": "18-24"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-ugc-reaction-clips-by-keyword-or-description",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"search": "surprised",
"semantic_search": "woman laughing at her phone in bed",
"emotion": "happy",
"gender": "female",
"location": "Bedroom",
"age_range": "18-24"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-ugc-reaction-clips-by-keyword-or-description.
Parameters
searchstringkeyword search over title, tags and description. Use this or semantic_search, not both
Example: surprised
semantic_searchstringdescribe the shot in plain words; results are ranked by meaning, not keywords. Use this or search, not both
Example: woman laughing at her phone in bed
emotionstringa value from.ugc.clips.filters
Example: happy
genderstringExample: female
locationstringExample: Bedroom
age_rangestringExample: 18-24
hair_colorstringExample: Blonde
outfitstringExample: Casual
media_typestringvideo · image
featuredbooleanmin_viralitynumbersort_bystringcreated_at · virality_score · download_count · difficulty_level
Example: created_at
sort_orderstringasc · desc
Example: desc
pageintegerExample: 1
limitintegerExample: 24
