소셜 리스닝 에이전트 구축: Weibo + Douyin
튜토리얼: 15분마다 Weibo 핫 검색과 Douyin 핫 계정 빌보드를 확인하고 브랜드 언급을 표시하며 Slack 알림을 게시하는 에이전트입니다.
핵심 요약 (TL;DR) — 15분마다 웨이보 실시간 검색어와 더우인 인기 계정 차트를 가져와, LLM에게 우리 브랜드나 업종에 중요한 항목이 무엇인지 물어보고, 발견되면 Slack 알림을 보내는 Python 에이전트입니다. 사이클당 데이터 호출 2회 + LLM 호출 1회로, 하루에 데이터 호출 192회와 LLM 호출 96회입니다. 각 조직은 UTC 기준 하루에 적격 API 전반에서 무료 데이터 API 호출 100회를 받고, 그 이후의 데이터 호출은 SandBase 카탈로그 가격으로 호출당 과금됩니다. LLM 쪽은 아래 토큰 가정 기준으로 하루 약 $0.72입니다(추정치). 전체 코드를 포함하며, 2026-10-01(UTC)에 테스트했습니다.
브랜드 위기는 아침 출근 후 확인을 기다려 주지 않습니다. 새벽 2시에 트렌드에 오르기 시작한 부정 게시물은 오전 9시에 확인하는 팀이 보기까지 7시간 동안 퍼질 시간을 벌게 됩니다. 그 격차가 “우리가 빠르게 대응했다”와 “우리가 뒤통수를 맞았다”를 가릅니다.
이 소셜 리스닝 에이전트는 그 격차를 15분 폴링 간격 하나에, API·LLM·Slack 호출에 걸리는 몇 초를 더한 수준으로 좁힙니다.
에이전트가 하는 일
15분마다, 24시간 내내:
- 웨이보의 현재 실시간 검색어 목록을 가져옵니다(2026-10-01 실행에서 열기 지수가 붙은 주제 50–51개)
- 더우인의 인기 계정 차트를 가져옵니다(차트 순위로 정렬된 계정, 팔로워 수와 신규 팔로워 포함. 실시간 검색어 주제 목록이 아니라 계정 목록입니다)
- 두 목록을 브랜드·업종 키워드 및 분류 규칙과 함께 LLM에 보냅니다
- 브랜드 언급이나 업종 신호로 표시된 항목이 있으면: Slack incoming webhook으로 메시지를 게시합니다
- 사이클마다 개수, 표시된 항목, LLM 요약을 담은 로그 한 줄을 추가합니다
사용하는 데이터
웨이보 실시간 검색어와 더우인 인기 계정 차트는 누구나 앱에서 볼 수 있는 공개·읽기 전용 목록입니다. SandBase API 키가 필요합니다. SandBase는 웨이보나 더우인의 공식 파트너가 아니며, 이 에이전트는 비공개 계정 데이터, DM, 소유자 전용 분석을 읽을 수 없고 게시나 계정 작업을 할 수 없습니다.
| 이 튜토리얼 (SandBase 공개 데이터 API) | 공식 개발자 플랫폼 (Weibo Open Platform, Douyin Open Platform) | |
|---|---|---|
| 접근 | SandBase API 키 하나 | 앱 등록 및 플랫폼 심사 |
| 범위 | 공개 목록과 공개 게시물: 실시간 검색어, 인기 계정 차트, 키워드 검색 | 앱에 접근 권한을 부여한 계정에 대한, 권한 부여·계정 연동 워크플로 |
| 계정 작업 (게시, 답글, DM) | 아니요 | 플랫폼이 권한을 부여하는 경우 |
| 소유자 분석 | 아니요 | 권한이 부여된 계정에 한해 |
| 선택 기준 | 공개적으로 무엇이 트렌드인지 지켜보고 그 안에서 우리 브랜드를 포착하고 싶을 때 | 내가 관리하는 계정에 대해 조치를 취하거나 비공개 데이터를 읽어야 할 때 |
어느 플랫폼도 임의의 공개 데이터를 위한 일반적인 비인증 API를 제공하지 않으며, 이 접근 방식이 메우는 것이 바로 그 공백입니다.
아키텍처
┌─────────────────┐ ┌──────────────┐ ┌─────────────┐ ┌──────────────┐
│ Scheduler │────▶│ Data Fetch │────▶│ LLM Classify│────▶│ Slack │
│ (every 15 min) │ │ Weibo+Douyin │ │ Relevant? │ │ webhook │
└─────────────────┘ └──────────────┘ └─────────────┘ └──────────────┘
│
▼
┌────────────┐
│ Cycle log │
│ (JSONL) │
└────────────┘아래 코드의 사이클당 호출: 데이터 호출 2회 + LLM 호출 1회. 하루 96사이클 기준: 데이터 호출 192회 + LLM 호출 96회.
전체 코드
모든 데이터 호출은 해당 엔드포인트의 파라미터만 담은 JSON 본문과 함께 POST https://api.sandbase.ai/v1/api/<endpoint>을 사용합니다. 엔드포인트 참조:
weibo/web-v2/hot-search(파라미터 없음)douyin/billboard/hot-account-list(page_num,page_size)weibo/web-v2/realtime-search(query; 선택적 후속 헬퍼에서 사용)
참조 문서는 완료된 응답을 {id, status, model, outputs: [{data: ...}]}로 기술하므로, 코드는 outputs[0].data만 읽고 호출이 완료되지 않으면 예외를 발생시킵니다. 이는 Weibo와 Douyin 카탈로그 페이지에 나온 GET 라우트가 아니라 Model API POST 라우트입니다.
사이클이 의존하는 두 참조 문서는 코드의 요청 본문을 확인해 줍니다. 웨이보 실시간 검색어에는 요청 필드가 없어서 fetch_weibo_hot_search()이 {}을 보내고, 더우인 차트는 선택적 page_num와 page_size을 받습니다.
![]()
캡션: weibo/web-v2/hot-search 참조: 작업 필드가 없는 POST /v1/api/weibo/web-v2/hot-search 라우트와 id, status, model, outputs을 포함한 응답 (2026-10-02 캡처).
![]()
캡션: douyin/billboard/hot-account-list 참조로, 선택적 date_window, page_num, page_size, query_tag을 나열하며, 에이전트는 page_num와 page_size만 설정함 (2026-10-02 캡처).
#!/usr/bin/env python3
"""Social listening agent: Weibo + Douyin.
Checks Weibo hot search and the Douyin hot account billboard every 15 minutes,
classifies relevance with an LLM, posts alerts to a Slack incoming webhook.
Run as a long-running process, or via cron with --once.
"""
import json
import os
import sys
import time
from datetime import datetime, timezone
from pathlib import Path
import requests
from openai import OpenAI
# --- Configuration ---
BRAND_KEYWORDS = ["你的品牌名", "YourBrand", "竞品A", "竞品B"]
INDUSTRY_KEYWORDS = ["AI", "大模型", "agent", "智能体"]
SLACK_WEBHOOK_URL = os.environ.get("SLACK_WEBHOOK_URL", "") # Slack incoming webhook
CHECK_INTERVAL = 900 # 15 minutes in seconds
LOG_DIR = Path("./listening_logs")
LOG_DIR.mkdir(exist_ok=True)
SANDBASE_API_KEY = os.environ["SANDBASE_API_KEY"]
API_BASE = "https://api.sandbase.ai/v1/api"
HEADERS = {
"Authorization": f"Bearer {SANDBASE_API_KEY}",
"Content-Type": "application/json",
}
# OpenAI client for LLM calls only
client = OpenAI(
base_url="https://api.sandbase.ai/v1",
api_key=SANDBASE_API_KEY,
timeout=60,
)
# --- Data fetching: POST /v1/api/<endpoint>, read outputs[0].data ---
def call_data_api(endpoint: str, params: dict | None = None, retries: int = 3) -> dict:
"""Call one SandBase data endpoint; retry HTTP 429/5xx with 1s, 2s backoff."""
for attempt in range(retries):
resp = requests.post(f"{API_BASE}/{endpoint}", headers=HEADERS, json=params or {}, timeout=90)
if (resp.status_code == 429 or resp.status_code >= 500) and attempt < retries - 1:
time.sleep(2 ** attempt)
continue
resp.raise_for_status()
body = resp.json()
outputs = body.get("outputs") or []
if body.get("status") != "completed" or not outputs:
raise RuntimeError(f"SandBase call did not complete: {body.get('status')} {body.get('error')}")
return outputs[0].get("data") or {}
def fetch_weibo_hot_search() -> list:
"""Get current Weibo hot search list as [{title, heat}]."""
data = call_data_api("weibo/web-v2/hot-search")
# Observed-only field names (tested 2026-10-01): realtime[].word / .num
return [
{"title": t.get("word") or t.get("note"), "heat": t.get("num")}
for t in data.get("realtime") or []
]
def fetch_douyin_hot_accounts() -> list:
"""Get Douyin hot account list (accounts ranked on the billboard, not topics)."""
data = call_data_api("douyin/billboard/hot-account-list", {"page_num": 1, "page_size": 10})
# Observed-only field names (tested 2026-10-01): data.user_list[].nick_name / .fans_cnt / .new_fans_cnt
users = (data.get("data") or {}).get("user_list") or []
return [
{"title": u.get("nick_name"), "fans": u.get("fans_cnt"), "new_fans": u.get("new_fans_cnt")}
for u in users
]
def fetch_weibo_keyword_posts(keyword: str) -> list:
"""Optional follow-up, not called by run_cycle: recent Weibo posts for a flagged keyword."""
data = call_data_api("weibo/web-v2/realtime-search", {"query": keyword})
# Observed-only field names (tested 2026-10-01): parsed_data.results[].content / .post_url
return (data.get("parsed_data") or {}).get("results") or []
# --- Classification ---
def classify_relevance(weibo_topics: list, douyin_accounts: list) -> dict:
"""Use LLM to classify which topics are relevant to our brand/industry."""
prompt = f"""You are a brand monitoring analyst. Review these Weibo trending topics and Douyin hot accounts and classify each as:
- "brand_mention": directly mentions our brand or competitors
- "industry_relevant": relevant to our industry but not a direct mention
- "irrelevant": not related
Brand keywords: {json.dumps(BRAND_KEYWORDS, ensure_ascii=False)}
Industry keywords: {json.dumps(INDUSTRY_KEYWORDS, ensure_ascii=False)}
WEIBO HOT SEARCH (top 20):
{json.dumps(weibo_topics[:20], ensure_ascii=False, indent=2)}
DOUYIN HOT ACCOUNTS (top 10):
{json.dumps(douyin_accounts[:10], ensure_ascii=False, indent=2)}
Respond in JSON format only, no markdown:
{{
"brand_mentions": [{{"source": "weibo|douyin", "title": "...", "heat": N, "reason": "..."}}],
"industry_relevant": [{{"source": "weibo|douyin", "title": "...", "heat": N, "reason": "..."}}],
"summary": "One sentence overall assessment"
}}
Only include items that are genuinely relevant. Empty lists are fine if nothing matches."""
resp = client.chat.completions.create(
model="anthropic/claude-sonnet-4",
messages=[{"role": "user", "content": prompt}],
max_tokens=1500,
)
if resp.usage: # log real token counts so you can check the cost estimate
print(f" LLM tokens: {resp.usage.prompt_tokens} in / {resp.usage.completion_tokens} out")
text = (resp.choices[0].message.content or "").strip()
if text.startswith("`" * 3): # tolerate a fenced reply
text = text.strip("`").removeprefix("json").strip()
try:
return json.loads(text)
except json.JSONDecodeError:
return {"brand_mentions": [], "industry_relevant": [], "summary": "Parse error"}
# --- Alerting (Slack incoming webhook payload: {"text": ...}) ---
def send_slack_alert(classification: dict, timestamp: str):
"""Post brand mentions and industry signals to Slack."""
if not SLACK_WEBHOOK_URL:
print(" No Slack webhook configured, skipping alert")
return
brand_mentions = classification.get("brand_mentions") or []
industry = classification.get("industry_relevant") or []
if not brand_mentions and not industry:
return # Nothing to alert
blocks = []
if brand_mentions:
blocks.append("🚨 *Brand mentions*\n" + "\n".join(
f"• [{m.get('source', '?').upper()}] {m.get('title')} (heat: {m.get('heat', '?')}) — {m.get('reason', '')}"
for m in brand_mentions
))
if industry:
blocks.append("📡 *Industry signals*\n" + "\n".join(
f"• [{i.get('source', '?').upper()}] {i.get('title')} — {i.get('reason', '')}"
for i in industry[:5] # Cap industry items
))
message = {
"text": f"Social Listening Alert — {timestamp}\n\n" + "\n\n".join(blocks)
+ f"\n\n_{classification.get('summary', '')}_"
}
try:
resp = requests.post(SLACK_WEBHOOK_URL, json=message, timeout=10)
resp.raise_for_status()
print(f" Alert sent: HTTP {resp.status_code}")
except requests.RequestException as e:
print(f" Alert failed: {e}")
# --- Logging ---
def log_cycle(timestamp: str, weibo: list, douyin: list, classification: dict):
"""Append one JSON line per cycle: counts, flagged items, summary."""
log_entry = {
"timestamp": timestamp,
"weibo_count": len(weibo),
"douyin_count": len(douyin),
"brand_mentions": classification.get("brand_mentions") or [],
"industry_relevant": classification.get("industry_relevant") or [],
"summary": classification.get("summary", ""),
}
log_file = LOG_DIR / f"listening-{timestamp[:10]}.jsonl"
with open(log_file, "a", encoding="utf-8") as f:
f.write(json.dumps(log_entry, ensure_ascii=False) + "\n")
# --- Main loop ---
def run_cycle():
"""Execute one monitoring cycle: 2 data calls + 1 LLM call."""
timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
print(f"\n[{timestamp}] Running social listening cycle...")
weibo = fetch_weibo_hot_search()
print(f" Got {len(weibo)} Weibo topics")
douyin = fetch_douyin_hot_accounts()
print(f" Got {len(douyin)} Douyin accounts")
classification = classify_relevance(weibo, douyin)
brand_count = len(classification.get("brand_mentions") or [])
industry_count = len(classification.get("industry_relevant") or [])
print(f" Found: {brand_count} brand mentions, {industry_count} industry signals")
# Brand mentions and industry-only signals both go to Slack
if brand_count > 0:
print(" ⚠️ Brand mention detected! Sending alert...")
send_slack_alert(classification, timestamp)
elif industry_count > 0:
print(" 📡 Industry signal detected, sending digest...")
send_slack_alert(classification, timestamp)
else:
print(" ✓ Nothing relevant this cycle")
log_cycle(timestamp, weibo, douyin, classification)
return classification
def run_continuous():
"""Run as a long-lived process with 15-minute intervals."""
print("Social Listening Agent started")
print(f" Brand keywords: {BRAND_KEYWORDS}")
print(f" Industry keywords: {INDUSTRY_KEYWORDS}")
print(f" Check interval: {CHECK_INTERVAL}s")
print(f" Slack webhook: {'configured' if SLACK_WEBHOOK_URL else 'NOT configured'}")
while True:
try:
run_cycle()
except Exception as e:
print(f" ERROR: {e}")
time.sleep(CHECK_INTERVAL)
if __name__ == "__main__":
if "--once" in sys.argv:
run_cycle() # Single cycle for testing / cron
else:
run_continuous()2026-10-01(UTC) 테스트
위 코드를 LLM은 스텁으로 두고 데이터 호출은 실제로 실행했습니다. 두 목록 엔드포인트 모두 키워드를 받지 않으며, 아래 요청은 코드가 보내는 것과 정확히 같습니다. 필드 이름은 이 호출들에서 나온 것으로, 문서화된 보장이 아니라 관찰된 것일 뿐이므로 모든 읽기에 .get()를 사용합니다. 응답은 잘라서 표시했습니다.
POST https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search
{}
{"id": "1e56f2e0-3eca-4242-b371-0a4e2f4cc060", "status": "completed", "model": "weibo/web-v2/hot-search",
"outputs": [{"data": {"realtime": [
{"word": "鸿蒙智行问界业务升级", "num": 1116159, "realpos": 1, "label_name": "新", ...},
...], "hotgov": {...}, "hotgovs": [...]}}]}POST https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-list
{"page_num": 1, "page_size": 10}
{"id": "c38e0333-4f1d-4104-b5bc-f41dbb8a06ad", "status": "completed", "model": "douyin/billboard/hot-account-list",
"outputs": [{"data": {"code": 0, "message": "", "data": {"has_more": true, "user_list": [
{"nick_name": "人民日报", "fans_cnt": 203210991, "new_fans_cnt": 51760, ...},
{"nick_name": "央视新闻", "fans_cnt": 187596558, "new_fans_cnt": 38735, ...},
...]}}}]}그 실행은 실시간 검색어 주제 51개와 계정 10개를 반환했습니다(차트 상위는 인민일보, CCTV 뉴스 같은 공식 미디어 계정이었습니다). 다섯 번의 테스트 사이클에서 에이전트는 브랜드 언급과 업종 전용 신호에 대해 알림을 보냈고, 표시된 항목이 없을 때는 알림을 건너뛰었으며, 사전 필터 버전은 키워드가 일치하지 않으면 LLM을 건너뛰었습니다. Slack 페이로드는 실제 Slack 워크스페이스가 아니라 로컬 테스트 엔드포인트로 게시했습니다.
비용 분석
매일 첫 100회의 데이터 API 호출은 조직에 무료이며(적격 API 기준) 나머지는 호출당 과금되므로, 데이터 쪽은 그 이후의 하루 약 92회 호출 × 각 엔드포인트의 카탈로그 가격(sandbase inspect로 확인)에 LLM 비용을 더한 것입니다. anthropic/claude-sonnet-4은 2026-10-01 기준 SandBase에서 입력 토큰 백만 개당 $3, 출력 토큰 백만 개당 $15입니다.
토큰 가정(예시): 2026-10-01 데이터로 만든 분류 프롬프트는 EN과 ZH 프롬프트를 합쳐 약 2,300–2,700자였고(대부분 JSON 공백과 ASCII, EN 프롬프트에 약 250자의 CJK), 이를 약 1,000 입력 토큰으로 반올림합니다. 일반적인 응답에 약 300 출력 토큰을 가정합니다. 호출당: 1,000 × $3/M + 300 × $15/M = $0.003 + $0.0045 = $0.0075.
| 구성 요소 | 사이클당 | 하루 (96사이클) |
|---|---|---|
| 웨이보 실시간 검색어 | 데이터 호출 1회 | 96회 호출 |
| 더우인 인기 계정 | 데이터 호출 1회 | 96회 호출 |
| LLM 분류 | 1회 호출, ~$0.0075 (추정) | 96회 호출, ~$0.72 |
| 합계 | 데이터 호출 2회 + LLM 호출 1회 | 데이터 호출 192회 + LLM ~$0.72 |
이는 30일 한 달 기준 LLM 토큰으로 약 $21.60이며, 여기에 매일 무료 100회를 초과하는 호출에 대한 호출당 데이터 요금이 더해집니다. 출력은 max_tokens=1500로 제한되며, 모든 응답이 한도에 도달하면 호출당 $0.003 + 1,500 × $15/M = $0.0255, 하루 $2.45가 됩니다. 코드가 출력하는 LLM tokens: 줄이 이 계산을 다시 할 실제 수치를 제공합니다.
최적화 버전: 키워드 사전 필터
LLM 호출이 사실상 달러 비용의 전부이므로, 원본 목록에 키워드가 나타나지 않으면 건너뜁니다:
def quick_keyword_check(items: list, keywords: list) -> bool:
"""Fast check: does any keyword appear in any item? No API call."""
text = " ".join(json.dumps(i, ensure_ascii=False) for i in items).lower()
return any(kw.lower() in text for kw in keywords)
def run_cycle_optimized():
"""Same as run_cycle, but only calls the LLM when a keyword shows up."""
timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
weibo = fetch_weibo_hot_search()
douyin = fetch_douyin_hot_accounts()
if quick_keyword_check(weibo + douyin, BRAND_KEYWORDS + INDUSTRY_KEYWORDS):
classification = classify_relevance(weibo, douyin)
send_slack_alert(classification, timestamp) # sends for brand or industry items
else:
classification = {"brand_mentions": [], "industry_relevant": [], "summary": "No keyword match"}
log_cycle(timestamp, weibo, douyin, classification)
return classification트레이드오프: 사전 필터는 리터럴 키워드만 일치시키므로, 우리 단어 중 하나를 포함하지 않는 업종 주제는 LLM에 도달하지 못합니다. 절감액은 키워드가 얼마나 자주 나타나는지에 달려 있습니다. 예를 들어 30%의 사이클에 일치 항목이 있었다면, 이는 96회 대신 하루 약 29회의 LLM 호출이며, 같은 토큰 가정에서 대략 28.8 × $0.0075 × 30 ≈ 한 달 $6.48입니다.
배포 옵션
옵션 1: 상시 실행 프로세스 (VPS/컨테이너)
SANDBASE_API_KEY=sk-... SLACK_WEBHOOK_URL=https://hooks.slack.com/services/... python3 listener.pysystemd나 Docker 재시작 정책으로 계속 살려 두세요.
옵션 2: 15분마다 Cron
*/15 * * * * SANDBASE_API_KEY=sk-... SLACK_WEBHOOK_URL=... python3 listener.py --once더 단순합니다. 각 실행은 새로 시작하며, 디스크의 JSONL 로그가 유일한 상태이므로 항목이 사이클을 넘어 목록에 남아 있으면 에이전트가 다시 알림을 보냅니다. 시끄럽다면 마지막 로그 줄과 대조해 중복을 제거하세요.
옵션 3: GitHub Actions
on:
schedule:
- cron: '*/15 * * * *' # Every 15 minutesGitHub은 부하가 높은 기간에는 예약된 워크플로가 지연될 수 있다고 문서화하고 있으므로, 시간에 민감한 알림에는 적합하지 않습니다.
알림이 발생하면 할 일
에이전트는 감지합니다. 사람이 결정합니다. 권장 대응 흐름:
- 브랜드 언급 알림 → 마케팅/PR 팀이 30분 이내에 검토
- 부정 감정 + 높은 열기 → 위기 대응 프로토콜로 에스컬레이션
- 업종 신호 → 주간 전략 브리핑에 추가
- 경쟁사 언급 → 경쟁 정보 검토용으로 기록
에이전트 확장
감정 분석 심화: 브랜드 언급이 감지되면 fetch_weibo_keyword_posts()(weibo/web-v2/realtime-search, query을 받음)을 호출해 해당 키워드의 최근 게시물을 가져와 감정 분석을 실행합니다. 2026-10-01에 {"query": "小米"}로 호출했을 때(실행 973c3249-af8e-462c-b001-34e2fbf1ffac) parsed_data.results 아래 게시물 10개를 반환했습니다(관찰된 필드 이름). run_cycle에서는 호출되지 않으며, 연결하면 사이클당이 아니라 알림당 데이터 호출 1회와 감정 LLM 호출 1회가 추가됩니다.
그 후속 엔드포인트의 참조 문서는 query을 유일한 필수 필드로 보여 주며, page은 기본값이 1입니다.
![]()
캡션: fetch_weibo_keyword_posts()에서 사용하는 weibo/web-v2/realtime-search 참조: query은 필수이고 page은 기본값이 1 (2026-10-02 캡처).
샤오홍슈 추가: xiaohongshu/app-v2/search-notes을 통한 키워드 검색(keyword을 받음)은 세 번째 소스로 작동합니다. 2026-10-01에 {"keyword": "小米"}로 호출했을 때(실행 eae32bb2-f69c-4c98-8091-e60a139240cc) data.items[].note 아래 노트 20개를 반환했습니다(관찰된 필드 이름). 같은 패턴으로 사이클당 데이터 호출이 1회 더 늘어납니다(하루 +96회).
과거 추세 분석: 각 로그 줄이 표시된 항목을 보관하므로, 30일 후에는 어떤 업종 주제가 주마다 계속 다시 나타나는지 LLM에 물어볼 수 있습니다.
한계
- 15분 단위: 실시간이 아닙니다. 위기는 한 간격 안에 탄력을 받을 수 있습니다. 더 높은 긴급성이 필요하면 5분 간격으로 줄이세요(호출과 LLM 비용이 3배).
- LLM 분류는 완벽하지 않음: 오탐이 발생합니다. 프롬프트는 과다 알림 쪽으로 기울어져 있으며, 최종 판단은 사람이 합니다.
- 웨이보 실시간 검색어는 전수적이지 않음: 주제가 빠르게 순환하며, 트렌드에 오르지 않은 브랜드 불만은 나타나지 않습니다. 더 깊은 커버리지를 위해 키워드 검색을 추가하세요(FAQ 참조).
- 더우인 영상 콘텐츠 분석 없음: 에이전트는 인기 계정 메타데이터를 보며, 영상 콘텐츠는 보지 않습니다. 관심 있는 영상의 경우
douyin/app-v3/one-video(aweme_id을 받음)이 영상 상세를 반환합니다. 2026-10-01 호출(실행8d56b7aa-d98d-4559-b6da-cc2d17a47a2c)에서 페이로드는aweme_detail아래에 있었습니다(관찰된 것일 뿐).
FAQ
실시간 검색어 대신 특정 키워드를 모니터링할 수 있나요?
예. weibo/web-v2/advanced-search(키워드는 q에 들어감. 2026-10-01에 {"q": "小米"}으로 호출, 실행 93a2caa9-42fe-497a-8dbf-3ffabfbc6fd4, parsed_data.results 아래 게시물 20개 반환, 관찰된 것일 뿐) 또는 weibo/web-v2/realtime-search(키워드는 query에 들어감)을 실시간 검색어 목록 대신, 또는 그에 더해 자체 키워드로 사용하세요. 이는 트렌드에 오르지 않았지만 여전히 관련 있는 언급을 포착합니다.
브랜드 위기를 얼마나 빨리 포착하나요?
주제가 웨이보 실시간 검색어에 오르거나 계정이 더우인 차트에 오른 뒤에만 가능합니다. 그 시점부터 최악의 경우는 한 간격 전체(15분)에 두 데이터 호출, LLM 호출, Slack 게시에 걸리는 시간을 더한 것입니다. 2026-10-01 테스트 실행에서 22회의 실시간 검색어 및 인기 계정 호출에 걸쳐 데이터 호출은 각각 1.5–5.2초가 걸렸습니다.
어떤 webhook 서비스가 작동하나요?
코드는 Slack의 incoming-webhook 페이로드 {"text": "..."}을 보냅니다. 요청은 실제 Slack 워크스페이스가 아니라 로컬 테스트 엔드포인트로 확인했습니다. Discord, PagerDuty, Feishu/Lark, DingTalk은 각각 다른 JSON 본문을 기대하므로 자체 페이로드 빌더가 필요합니다.
여러 브랜드에 대해 실행할 수 있나요?
예. 서로 다른 키워드 목록을 가진 별도 인스턴스를 유지하거나, 키워드 배열을 확장하고 LLM이 브랜드별로 분류하게 하세요. 후자는 브랜드당 1회가 아니라 사이클당 1회의 LLM 호출을 만듭니다.
사용 가능한 데이터에 대한 자세한 내용은 Weibo & Xiaohongshu Data APIs Now on SandBase와 Douyin Public Data API를 참조하세요.
SandBase API 키 받기 · Weibo API 카탈로그 둘러보기 · Douyin API 카탈로그 둘러보기
관련 읽을거리
유용했다면 공유해 주세요