Skip to content
Docs

Partner API

API quickstart

Read-only JSON over HTTPS: calls by named authors, each author's record, the price at each call, and daily numbers for a chart.

On this page
  1. Quickstart
  2. Look at a real response
  3. Call the live feed
  4. Keep a list in step with the feed
  5. Responses without a key
  6. Routes
Base URL
https://mcp.buzzberg.ai
Auth
Authorization: Bearer <key>
Format
JSON, times in UTC
Methods
GET; POST also on /v1/tools/{name}

Quickstart

  1. Look at a real response

    Open buzzberg.ai/developers/sample/feed_first.json in a browser: a /v1/feed response for BTC, ETH and three other tokens, recorded on 1 Dec 2026. No key is needed. The sample file opens in a browser only; a script gets 403 from it. Scripts call the API itself, and read the spec at mcp.buzzberg.ai/v1/openapi.json without a key.

    Shortened: one post of 50 (ETH by dcfgod); limits and allowance left out. Full response (JSON)

    200 · GET /v1/feed?tickers=BTC,ETH,SOL,HYPE,ZEC&limit=50
    {
      "feed": "live_feed",
      "version": 1,
      "served_at": "2026-12-01T18:30:39+00:00",
      "took_ms": 1078,
      "poll_seconds": 60,
      "tickers": ["BTC", "ETH", "SOL", "HYPE", "ZEC"],
      "filters": {
        "calls": true,
        "positive_record": false,
        "position": false,
        "author_category": []
      },
      "posts": [
        {
          "id": "844319",
          "ticker": "ETH",
          "published_at": "2026-11-30T20:11:07.005000+00:00",
          "author": {
            "name": "dcfgod",
            "platform": "twitter",
            "category": "private_investors_traders",
            "avatar": "https://pbs.twimg.com/profile_images/1856079545780125696/JQkZlaHt_400x400.jpg",
            "record": {
              "positive": true,
              "rank": 31,
              "positive_ranges": ["24h", "7d", "30d", "90d", "180d", "all"],
              "ranges": {
                "24h": {"evaluated_calls": 18, "win_rate": 44.4, "avg_return": 3.19},
                "7d": {"evaluated_calls": 19, "win_rate": 57.9, "avg_return": 12.79},
                "30d": {"evaluated_calls": 20, "win_rate": 60.0, "avg_return": 11.34},
                "90d": {"evaluated_calls": 16, "win_rate": 75.0, "avg_return": 39.61},
                "180d": {"evaluated_calls": 11, "win_rate": 63.6, "avg_return": 20.96},
                "all": {"evaluated_calls": 14, "win_rate": 35.7, "avg_return": 62.06}
              }
            }
          },
          "call": "long",
          "position": null,
          "summary": "Concludes Ethereum is the best Bitcoin: a store of value years into cracking the quantum puzzle, with no mining problems, isn’t competitive with AI, retains Bitcoin’s transferability, storage and fungibility, and is useful for smart contracts.",
          "source": {"url": "https://x.com/dcfgod/status/2127495649872781427", "id": "x:2127495649872781427"},
          "revised": false,
          "price": {
            "entry": 1619.65,
            "currency": "USD",
            "series": "HL:ETH",
            "unit": "USD/token",
            "comparable": true,
            "current": 1679.45,
            "as_of": "2026-12-01T18:25:14+00:00",
            "return_pct": 3.69
          }
        }
      ],
      "removed": [],
      "has_more": false,
      "next_since": "eNoBuABH_wF2hJ2S19lrDxJOpNszMrOuM49pMzRSaTjLDWEeLw0kASu8Crjv7AGVWkrs8wf51UUf_qUB6nGOAeJiDSrhETGpxgH3bgEapgECwg1ELQeADATlx8EENGrQA9fb-wE7GQErvAGIZALNZsUC0rEB6noJcLdfRXCGA5QOBE98AYtbAdQgTy6IxAGELsgBPHs-0NWJAh3ySREMAfXcuAIH7NkCepbXAwnYB5N73QECBgxqQ4oDLKEKybABRkj1"
    }
    posts[]Calls by named authors: call (long, short or avoid), summary, author.record, price at the call and now.
    revisedTrue when a post you already have changed: replace it by id.
    removedIDs of posts to delete.
    next_sincePass it as since in the next request to get only what changed.
    has_moreTrue when another page waits: ask again at once with the new since.
    poll_secondsHow long to wait before the next request.
  2. Call the live feed

    The same request with your Partner API key, from your server, where the key stays. Below it, a ticker's daily numbers.

    Request
    curl -H "Authorization: Bearer $BUZZBERG_API_KEY" \
      "https://mcp.buzzberg.ai/v1/feed?tickers=BTC,ETH&limit=50"
    const res = await fetch("https://mcp.buzzberg.ai/v1/feed?tickers=BTC,ETH&limit=50", {
      headers: { Authorization: `Bearer ${process.env.BUZZBERG_API_KEY}` },
    });
    const data = await res.json();
    import os
    import requests
    
    res = requests.get(
        "https://mcp.buzzberg.ai/v1/feed?tickers=BTC,ETH&limit=50",
        headers={"Authorization": f"Bearer {os.environ['BUZZBERG_API_KEY']}"},
    )
    data = res.json()
    Request
    curl -H "Authorization: Bearer $BUZZBERG_API_KEY" \
      "https://mcp.buzzberg.ai/v1/chart/BTC?days=60"
    const res = await fetch("https://mcp.buzzberg.ai/v1/chart/BTC?days=60", {
      headers: { Authorization: `Bearer ${process.env.BUZZBERG_API_KEY}` },
    });
    const data = await res.json();
    import os
    import requests
    
    res = requests.get(
        "https://mcp.buzzberg.ai/v1/chart/BTC?days=60",
        headers={"Authorization": f"Bearer {os.environ['BUZZBERG_API_KEY']}"},
    )
    data = res.json()
  3. Keep a list in step with the feed

    Copy this file into your backend; it has no packages. readFeed makes one request and throws an error with code, status, retryAfter and unknown (the symbols Buzzberg does not track). syncFeed keeps a map of posts equal to the feed: new and revised posts in, removed ones out, posts older than seven days dropped, a read cut short resumed from its last page. followFeed polls at the pace the responses ask for. The polling rules say why.

    feed-client.mjs
    // Buzzberg feed client: follows GET /v1/feed and keeps a list of posts in step with it.
    // Plain JavaScript, no packages. It runs on your server (Node 18 or later, Deno, Bun),
    // where the API key stays. Reference: https://buzzberg.ai/developers/api/feed
    const BASE = globalThis.process?.env?.BUZZBERG_API_BASE || 'https://mcp.buzzberg.ai';
    
    // One read of GET /v1/feed. `since` is the next_since of the previous response, or null.
    export async function readFeed({ key, tickers, since = null, limit = 200, signal }) {
      const url = new URL('/v1/feed', BASE);
      url.searchParams.set('tickers', tickers.join(','));
      url.searchParams.set('limit', String(limit));
      if (since) url.searchParams.set('since', since);
      const res = await fetch(url, { headers: { Authorization: `Bearer ${key}` }, signal });
      const text = await res.text();   // a connection lost mid-response throws here
      let body = {};
      try {
        body = JSON.parse(text);
      } catch {
        if (res.ok) throw new Error(`${res.status} unreadable answer`);
      }
      if (!res.ok) {
        const detail = body.detail ? `: ${body.detail}` : '';
        const error = new Error(`${res.status} ${body.error || 'error'}${detail}`);
        error.code = body.code || body.error;   // a rejected key puts its code in `code`
        error.status = res.status;
        error.retryAfter = Number(res.headers.get('retry-after')) || null;
        // The symbols Buzzberg does not track, on a 404 unknown_ticker.
        error.unknown = Array.isArray(body.unknown) ? body.unknown : [];
        throw error;
      }
      return body;
    }
    
    // Keeps `posts` (a Map by post id) equal to the feed: new and revised posts in,
    // removed ones out. `mark` is the cursor (the previous next_since). A read of several pages
    // goes into a copy; `posts` and the returned cursor change together, only when the read is
    // complete (`complete: true`). A read cut short (a failure, a 429, or MAX_PAGES pages in
    // one call) is kept in `progress`; the next call with the same cursor resumes from the last
    // page that arrived (after a
    // failure, wait the error's retryAfter first). Posts published more than seven days
    // before the feed's own clock (served_at) are dropped from the copy after every page. `reset` in
    // the result names the error when the cursor no longer fitted and the read started again. A read
    // without a cursor replaces `posts` whole: it is the feed's full response for these tickers.
    // `signal` (an AbortSignal) ends a read between pages and leaves `posts` as it was.
    const MAX_PAGES = 10;
    const DAY = 24 * 3600 * 1000;
    export async function syncFeed({ key, tickers, posts, mark, progress = {}, signal }) {
      // A read saved for another set of tickers is not this one: start this set afresh.
      const symbols = tickers.map((symbol) => String(symbol).trim().toUpperCase());
      const set = [...new Set(symbols)].sort().join(',');
      if (progress.next && progress.set !== set) {
        if (progress.from === mark) mark = null;   // that cursor came with the other set
        delete progress.from; delete progress.next; delete progress.since; delete progress.set;
        delete progress.reset;
      }
      const resuming = progress.next && progress.from === mark;
      const next = resuming ? progress.next : mark ? new Map(posts) : new Map();
      let since = resuming ? progress.since : mark, pollSeconds = 60, servedAt = Date.now();
      let reset = resuming ? progress.reset ?? null : null;   // kept until the read that completes
      for (let pages = 0; ; pages++) {
        if (pages === MAX_PAGES) {
          Object.assign(progress, { from: mark, next, since, set, reset });
          return { mark, pollSeconds, servedAt, complete: false };
        }
        let body;
        try {
          signal?.throwIfAborted();
          body = await readFeed({ key, tickers, since, signal });
        } catch (error) {
          const stale = ['mark_expired', 'mark_mismatch', 'invalid_mark'].includes(error.code);
          if (since && stale) {
            next.clear();   // the cursor no longer fits: start again from the latest posts
            reset = error.code;
            since = null;
            continue;
          }
          Object.assign(progress, { from: mark, next, since, set, reset });
          throw error;
        }
        for (const id of body.removed || []) next.delete(id);
        for (const post of body.posts || []) next.set(post.id, post);
        pollSeconds = body.poll_seconds || 60;
        servedAt = Date.parse(body.served_at) || Date.now();
        for (const [id, post] of next) {
          if (Date.parse(post.published_at) < servedAt - 7 * DAY) next.delete(id);
        }
        const moved = body.next_since !== since;
        since = body.next_since;
        if (!body.has_more || !moved) break;
      }
      if (signal?.aborted) {
        Object.assign(progress, { from: mark, next, since, set, reset });
        signal.throwIfAborted();
      }
      posts.clear();
      for (const [id, post] of next) posts.set(id, post);
      delete progress.from; delete progress.next; delete progress.since; delete progress.set;
      delete progress.reset;
      return { mark: since, pollSeconds, servedAt, complete: true, reset };
    }
    
    // Polls the feed until stop() is called. onChange(posts, tickers, mark, reset) runs after every
    // complete read, with the cursor to save if you want to resume later (pass it back as `mark`;
    // posts then start empty and hold what arrived since). `reset` is the error code when the read
    // had to start again without a cursor (mark_expired, mark_mismatch, invalid_mark), else null.
    // onProblem(error) runs after a failed read. Tickers Buzzberg does not track
    // are left out and the rest read on. An error that cannot succeed on retry (a rejected
    // key, a bad parameter, too many tickers) stops the polling. A list with no ticker left
    // after trimming throws at once and sends nothing.
    export function followFeed({ key, tickers, mark: start = null, onChange = () => {}, onProblem = () => {} }) {
      const posts = new Map(), progress = {}, abort = new AbortController();
      const symbol = (value) => String(value).trim().toUpperCase();
      let mark = start, timer = null, stopped = false;
      tickers = [...new Set(tickers.map(symbol).filter(Boolean))];   // blank entries left out
      if (!tickers.length) throw new Error('followFeed needs at least one ticker');
      // Waits in steps of at most an hour: a timer holds about 24.8 days, and a full
      // ticker allowance can ask to wait up to 30 days.
      const later = (seconds) => {
        const due = Date.now() + seconds * 1000;
        const step = () => {
          if (stopped) return;
          const left = due - Date.now();
          if (left <= 0) poll();
          else timer = setTimeout(step, Math.min(left, 3600 * 1000));
        };
        step();
      };
      const poll = async () => {
        let wait = 60;
        try {
          const result = await syncFeed({ key, tickers, posts, mark, progress, signal: abort.signal });
          if (stopped) return;
          mark = result.mark;
          wait = result.pollSeconds;
          if (result.complete) onChange(posts, tickers, mark, result.reset);
        } catch (error) {
          if (stopped) return;
          onProblem(error);
          const drop = new Set(error.code === 'unknown_ticker' ? error.unknown.map(symbol) : []);
          const kept = tickers.filter((ticker) => !drop.has(ticker));
          const final = error.status >= 400 && error.status < 500
            && error.status !== 408 && error.status !== 429;
          if (kept.length && kept.length < tickers.length) {
            tickers = kept;   // another set of tickers starts afresh, without the old cursor
            mark = null;
            posts.clear();
            wait = 1;
          } else if (final) {
            return;
          } else {
            wait = error.retryAfter || 60;
          }
        }
        later(wait);
      };
      poll();
      return { posts, stop: () => { stopped = true; clearTimeout(timer); abort.abort(); } };
    }
    
    Your server
    import { followFeed } from './feed-client.mjs';
    
    const feed = followFeed({
      key: process.env.BUZZBERG_API_KEY,
      tickers: ['BTC', 'ETH', 'NVDA'],
      onChange: (posts) => console.log(`${posts.size} posts`),   // posts: a Map by post id
      onProblem: (error) => console.error(error.message),
    });
    // feed.posts is the same Map; feed.stop() ends the polling.
    

Responses without a key

Real responses from 1 Dec 2026, as JSON files: feed, calls of a day, chart, theses, debates, earnings, tools. All 46 are on Sample responses, and the routes are described in OpenAPI 3.1.

Routes

Authentication, formats and headers are in Conventions; rate limits and allowances in Limits; who gets a key in Keys and IDs.