claudebaby Données pour les agents
§00

reddit

International · social · En ligne — Cette page présente ses endpoints, la commande de connexion et un exemple de recherche.

§01

Endpoint

Tous les accès à reddit. REST et MCP sont deux interfaces pour les mêmes outils.

ÉlémentValeur
MCP(Streamable HTTP)https://claudebaby.cn/mcp/reddit
MCP(SSE)https://claudebaby.cn/sse/reddit
MCP(stdio)claudebaby-mcp --platform reddit
Récupération via RESTPOST https://claudebaby.cn/v1/social/reddit/tools/{tool}
Liste des endpoints RESThttps://claudebaby.cn/v1/social/reddit/tools

Les points de connexion MCP ont le même format que ceux des autres plateformes en lignede même format : même hôte et même /mcp/ préfixe ; seul le dernier segment correspond à reddit. Remplacez ce dernier segment par le nom d’une autre plateforme pour obtenir son endpoint.

§02

Méthodes de connexion

Choisissez l’une des trois méthodes. L’authentification, la mesure et le cache sont gérés dans le cloud ; aucune clé amont n’est stockée localement.

Claude Code (connexion en une commande CLI)
# Claude Code : connexion en une commande
claude mcp add --transport http claudebaby-reddit https://claudebaby.cn/mcp/reddit \
  --header "Authorization: Bearer $CB_KEY"

# Une fois connecté, lancez /mcp dans la session pour voir les outils
Configuration du client (Claude Desktop / Cursor / JSON générique)
{
  "mcpServers": {
    "claudebaby-reddit": {
      "type": "http",
      "url": "https://claudebaby.cn/mcp/reddit",
      "headers": { "Authorization": "Bearer <votre clé API>" }
    }
  }
}
Bridge stdio (aucune clé stockée localement)
# stdio local : aucune clé sur la machine, les données passent par la passerelle cloud
uv tool install --from "git+https://github.com/lingling1989r/claudebaby.git#subdirectory=mcps" claudebaby-mcp
CLAUDEBABY_API_KEY=cb_live_xxx claudebaby-mcp --platform reddit

Les clés sont émises dans la console et affichées en clair une seule fois. Si le solde est insuffisant, le service renvoie insufficient_balance(HTTP 402)。

§03

Liste des endpoints

Le nom de l’outil correspond au dernier segment du chemin REST. Les mêmes outils sont accessibles via MCP et renvoient le même envelope.

Total 3 endpoints.

EndpointParamètresDescription
reddit_search_postssubreddit*:string · query*:string · days:integer · limit:integerSearch posts in a subreddit by keyword within a time window. Returns up to `limit` matches, oldest first. `limit` is also the cost control:…
reddit_get_threadpost_id*:string · top_n:integerFetch the comment tree of a single post, optionally only the top N.
reddit_search_commentssubreddit*:string · query*:string · days:integer · limit:integerSearch comments in a subreddit by keyword within a time window. Returns up to `limit` matches, oldest first. `limit` is also the cost contr…
§04

Exemple de recherche : anker

L’exemple utilise anker comme terme de recherche pour appeler reddit_search_posts. Le terme est placé dans le véritable paramètre de l’outil ; les autres champs obligatoires sont des espaces réservés. Remplacez <…> par vos valeurs. Les paramètres et leur description figurent dans la liste des endpoints ci-dessus ou sur https://claudebaby.cn/v1/social/reddit/tools.

REST · curl
export CB_KEY=cb_live_xxx

curl -s -X POST https://claudebaby.cn/v1/social/reddit/tools/reddit_search_posts \
  -H "Authorization: Bearer $CB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subreddit": "<subreddit>", "query": "anker"}'
Format de réponse (même envelope ; MCP utilise structuredContent)
{
  "ok": true,
  "data": {
    "…": Réponse de "reddit_search_posts ; les champs varient selon l’outil"
  },
  "meta": {
    "platform": "reddit",
    "domain": "social",
    "tool": "reddit_search_posts",
    "request_id": "req_…",
    "credits": "<Crédits consommés pour cet appel ; voir /pricing.json>"
  }
}

Exécutez la requête pour voir la réponse réelle (facturation selon l’endpoint et la route) — l’exemple ci-dessus data format de réponse, pas un exemple de données inventées. Pour tester dans le navigateur, utilisez Détails de l’API et saisissez votre clé.

§05

Facturation

Choisissez une recharge ou un forfait ; les crédits sont réservés avant chaque collecte payante et un solde insuffisant bloque la requête.

Une requête e-commerce standard coûte 1 crédit. Le badge ×N signifie N crédits par exécution. Les sous-appels et pages sont facturés séparément. Réservation avant exécution, débit en cas de succès, libération en cas d’échec ; les délais dépassés attendent vérification.

Type d’appelRouteCrédits de baseCoefficientCrédits / appelPrix de base / appelAppels avec 30 crédits d’essai
instagram / user.postsStandard1×1818¥0.361
tiktok / user.postsStandard1×33¥0.0610
xiaohongshu / search.notesStandard1×2323¥0.461
facebook / page.postsÉtendue1×113113¥2.260
linkedin / user.profileSecours1×131131¥2.620
amazon / product.searchStandard1×11¥0.0230
Tous les coefficients et états tarifaires
Type d’appelRouteCrédits de baseCoefficientCrédits / appelPrix de base / appelAppels avec 30 crédits d’essai
bilibili / search.videosStandard1×33¥0.0610
bilibili / user.profileStandard1×33¥0.0610
bilibili / user.videosStandard1×33¥0.0610
bilibili / video.commentsStandard1×33¥0.0610
bilibili / video.detailStandard1×33¥0.0610
douyin / post.commentsStandard1×33¥0.0610
douyin / post.detailStandard1×33¥0.0610
douyin / search.videosStandard1×2323¥0.461
douyin / user.profileStandard1×33¥0.0610
gongzhonghao / account.articlesStandard1×2323¥0.461
gongzhonghao / account.profileStandard1×2323¥0.461
gongzhonghao / article.commentsStandard1×2323¥0.461
gongzhonghao / article.detailStandard1×2323¥0.461
instagram / post.detailStandard1×1818¥0.361
instagram / search.usersStandard1×1818¥0.361
instagram / user.postsStandard1×1818¥0.361
instagram / user.profileStandard1×1818¥0.361
kuaishou / search.videosStandard1×2323¥0.461
kuaishou / user.profileStandard1×55¥0.106
lemon8 / post.detailStandard1×33¥0.0610
lemon8 / search.postsStandard1×33¥0.0610
lemon8 / user.profileStandard1×33¥0.0610
linkedin / company.profileStandard1×1818¥0.361
linkedin / post.detailStandard1×1818¥0.361
linkedin / user.profileStandard1×1818¥0.361
threads / user.postsStandard1×55¥0.106
tiktok / post.commentsStandard1×33¥0.0610
tiktok / post.detailStandard1×33¥0.0610
tiktok / user.postsStandard1×33¥0.0610
tiktok / user.profileStandard1×33¥0.0610
toutiao / article.detailStandard1×33¥0.0610
toutiao / post.commentsStandard1×33¥0.0610
toutiao / user.profileStandard1×33¥0.0610
toutiao / video.detailStandard1×33¥0.0610
weibo / hot.listStandard1×33¥0.0610
weibo / post.detailStandard1×33¥0.0610
weibo / search.postsStandard1×33¥0.0610
weibo / user.profileStandard1×33¥0.0610
x / post.detailStandard1×33¥0.0610
x / search.postsStandard1×33¥0.0610
x / user.postsStandard1×33¥0.0610
x / user.profileStandard1×33¥0.0610
xiaohongshu / note.detailStandard1×2323¥0.461
xiaohongshu / search.notesStandard1×2323¥0.461
xiaohongshu / user.notesStandard1×2323¥0.461
xiaohongshu / user.profileStandard1×2323¥0.461
xigua / search.videosStandard1×33¥0.0610
xigua / user.videosStandard1×33¥0.0610
youtube / channel.profileStandard1×33¥0.0610
youtube / channel.videosStandard1×33¥0.0610
youtube / search.videosStandard1×33¥0.0610
youtube / video.detailStandard1×33¥0.0610
zhihu / answer.detailStandard1×33¥0.0610
zhihu / hot.listStandard1×33¥0.0610
zhihu / question.answersStandard1×33¥0.0610
zhihu / user.profileStandard1×33¥0.0610
facebook / page.profileÉtendue1×113113¥2.260
facebook / page.postsÉtendue1×113113¥2.260
facebook / post.detailÉtendue1×113113¥2.260
linkedin / user.profileSecours1×131131¥2.620
linkedin / company.profileSecours1×131131¥2.620
linkedin / post.detailSecours1×131131¥2.620
amazon / category.treeStandard1×11¥0.0230
amazon / category.searchStandard1×11¥0.0230
amazon / category.reportStandard1×11¥0.0230
amazon / category.report_historyStandard1×11¥0.0230
amazon / category.trendStandard1×11¥0.0230
amazon / category.keywordsStandard1×11¥0.0230
amazon / product.searchStandard1×11¥0.0230
amazon / product.search_from_nameStandard1×11¥0.0230
amazon / product.detailStandard1×11¥0.0230
amazon / product.trendStandard1×11¥0.0230
amazon / product.reviewsStandard1×11¥0.0230
amazon / product.customers_sayStandard1×11¥0.0230
amazon / product.variationsStandard1×11¥0.0230
amazon / product.traffic_termsStandard1×11¥0.0230
amazon / product.keyword_rankingStandard1×11¥0.0230
amazon / keyword.listStandard1×11¥0.0230
amazon / keyword.detailStandard1×11¥0.0230
amazon / keyword.trendStandard1×11¥0.0230
amazon / keyword.extendsStandard1×11¥0.0230
amazon / keyword.search_resultsStandard1×11¥0.0230
walmart / category.treeStandard1×11¥0.0230
walmart / category.searchStandard1×11¥0.0230
walmart / category.reportStandard1×11¥0.0230
walmart / product.search_from_nameStandard1×11¥0.0230
walmart / product.detailStandard1×11¥0.0230
walmart / product.trendStandard1×11¥0.0230
walmart / product.variationsStandard1×11¥0.0230
walmart / product.traffic_termsStandard1×11¥0.0230
walmart / keyword.listStandard1×11¥0.0230
walmart / keyword.detailStandard1×11¥0.0230
walmart / keyword.extendsStandard1×11¥0.0230
walmart / keyword.search_resultsStandard1×11¥0.0230
shopee / category.treeStandard1×11¥0.0230
shopee / category.searchStandard1×11¥0.0230
shopee / category.reportStandard1×11¥0.0230
shopee / category.trendStandard1×11¥0.0230
shopee / product.searchStandard1×11¥0.0230
shopee / product.search_from_nameStandard1×11¥0.0230
shopee / product.detailStandard1×11¥0.0230
shopee / product.trendStandard1×11¥0.0230
shopee / keyword.listStandard1×11¥0.0230
shopee / keyword.search_resultsStandard1×11¥0.0230
shopee / shop.detailStandard1×11¥0.0230
temu / category.treeStandard1×11¥0.0230
temu / category.searchStandard1×11¥0.0230
temu / category.reportStandard1×11¥0.0230
temu / product.searchStandard1×11¥0.0230
temu / product.search_from_nameStandard1×11¥0.0230
temu / product.detailStandard1×11¥0.0230
temu / product.trendStandard1×11¥0.0230
tiktokshop / category.treeStandard1×11¥0.0230
tiktokshop / category.searchStandard1×11¥0.0230
tiktokshop / category.reportStandard1×11¥0.0230
tiktokshop / category.trendStandard1×11¥0.0230
tiktokshop / product.searchStandard1×11¥0.0230
tiktokshop / product.search_from_nameStandard1×11¥0.0230
tiktokshop / product.detailStandard1×11¥0.0230
tiktokshop / product.trendStandard1×11¥0.0230
tiktokshop / shop.detailStandard1×11¥0.0230
tiktokshop / shop.searchStandard1×11¥0.0230
1688 / category.treeStandard1×11¥0.0230
1688 / product.searchStandard1×11¥0.0230
1688 / product.detailStandard1×11¥0.0230
1688 / product.variationsStandard1×11¥0.0230
1688 / product.similar_sourcingStandard1×11¥0.0230
reddit / posts.searchStandard——Tarif à confirmer——
reddit / comments.searchStandard——Tarif à confirmer——
reddit / comments.threadStandard——Tarif à confirmer——

Les points d’accès sans tarif vérifié sont temporairement indisponibles. Le tarif de secours inclut le budget de coût de la tentative principale échouée. Consultez le registre réel.

Débit par appel = crédits par exécution × exécutions. 1 crédit = ¥0,02. Le tarif de chaque endpoint dépend de son niveau ; consultez les /pricing.json (prix par plateforme inclus).