# x402stock Trending Stocks & Market Sentiment

> x402stock Trending Stocks & Market Sentiment is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-13).

Returns the top trending stocks ranked by social media attention score, combining Reddit and 4chan /biz/ mention data with market breadth and fear/greed context over a 24-hour window.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/trending
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-trending-stocks-market-sentiment-fa6a8d5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_20W580399R3grjdRl994q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402stock-trending-stocks-market-sentiment-fa6a8d5f
```

Example prompt: What stocks are trending most on Reddit and 4chan right now, and what's the overall market fear/greed sentiment?

## When to prefer this

Use this endpoint when you need a real-time snapshot of which stocks retail investors are actively discussing across Reddit and 4chan /biz/, along with a blended attention score and fear/greed context. Ideal for meme-stock detection, social momentum signals, or gauging retail sentiment without needing historical data or specific ticker lookups. Prefer this over individual ticker endpoints when you want a market-wide trending leaderboard rather than data on a known stock.

## Known failure modes

- Payment not included or insufficient USDC — returns HTTP 402 with payment details
- Upstream Reddit or 4chan data unavailable — section status may show 'error' instead of 'ok'
- Stale data if crawl pipeline is delayed — check as_of timestamp
- Invalid or missing x402 payment header — request rejected before processing

## How this service works

Use for one call answering 'where is retail attention right now': a deterministic 0–100 attention score per ticker blending Reddit finance-community and 4chan /biz/ mention shares (24h window), with momentum, cross-platform confirmation, breadth & concentration (HHI), and Fear & Greed context. Transparent — every row carries its raw per-platform inputs. From x402stock

## Output

A JSON object containing a ranked list of top trending tickers over the past 24 hours, each with an attention score (0-100), Reddit and 4chan mention counts and percent changes, cross-platform flag, momentum percentage, and mention share. Also includes market breadth stats (total mentions, HHI concentration), a fear/greed score with rating, section health indicators, and the scoring methodology.

## Example request

```json
{
 "properties": "trending"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "2026-06-08T13:02:11.000Z",
  "count": 2,
  "source": "x402stock",
  "window": "24h",
  "breadth": {
   "tickers_tracked": 312,
   "concentration_hhi": 0.062,
   "total_reddit_mentions": 18443,
   "total_fourchan_mentions": 2210
  },
  "leaders": [
   {
    "name": "NVIDIA Corporation",
    "rank": 1,
    "reddit": {
     "rank": 1,
     "mentions": 2619,
     "mentions_change_percent": 24.1
    },
    "ticker": "NVDA",
    "fourchan": {
     "rank": 2,
     "mentions": 214,
     "mentions_change_percent": 12.9
    },
    "cross_platform": true,
    "attention_score": 100,
    "momentum_24h_percent": 22.5,
    "mention_share_percent": 14.2
   },
   {
    "name": "Tesla Inc.",
    "rank": 2,
    "reddit": {
     "rank": 2,
     "mentions": 2104,
     "mentions_change_percent": -6.2
    },
    "ticker": "TSLA",
    "fourchan": {
     "rank": 1,
     "mentions": 247,
     "mentions_change_percent": 3.4
    },
    "cross_platform": true,
    "attention_score": 81.4,
    "momentum_24h_percent": -4.8,
    "mention_share_percent": 11.6
   }
  ],
  "sections": {
   "reddit": "ok",
   "fourchan": "ok",
   "fear_greed": "ok"
  },
  "methodology": "attention_score = 100 × blended_share / max(blended_share); blended_share = renormalized(0.7 × Reddit mention share + 0.3 × 4chan /biz/ mention share) over a 24h window. Deterministic; raw per-platform inputs included per row.",
  "market_context": {
   "fear_greed_score": 38,
   "fear_greed_rating": "Fear"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-trending-stocks-market-sentiment-fa6a8d5f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
