Api Endpoint

API Direct

Get the posts trending across Reddit right now, from r/popular (worldwide or one country's) or r/all.

Open interactive test console

Offering

Provider
x402.apidirect.io
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.apidirect.io/v1/reddit/trending
MIME type
application/json
First seen
2026-10-25T22:37:01.717Z
Last seen
Tags
Reddit

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.004 USDC
Atomic price: 4000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.004 USDC
Atomic price: 4000 · Network: eip155:8453 · Asset: USDC · Scheme: upto
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "4000",
    "payTo": "0x5d07Cc2a0FB4Eb123A525CA0b51cf6fB485014fc"
  },
  {
    "scheme": "upto",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "4000",
    "payTo": "0x5d07Cc2a0FB4Eb123A525CA0b51cf6fB485014fc"
  }
]

Observed health

Status
Healthy
Latest latency
136 ms
Average latency
97 ms
HTTP status
402
Last checked
Reachability
100% over 11 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "sort_by": {
          "type": "string",
          "enum": [
            "hot",
            "most_recent",
            "top",
            "rising",
            "controversial"
          ],
          "default": "hot",
          "description": "Sort order: hot, most_recent, top, rising, or controversial (default: hot)"
        },
        "posted_ago": {
          "type": "string",
          "enum": [
            "1h",
            "24h",
            "7d",
            "30d",
            "12m",
            "all"
          ],
          "description": "Time window for sort_by=top or sort_by=controversial: 1h, 24h, 7d, 30d, 12m, or all (default: 24h). Rejected with any other sort_by."
        },
        "feed": {
          "type": "string",
          "enum": [
            "popular",
            "all"
          ],
          "description": "popular (r/popular: the most active posts in public, non-NSFW communities) or all (r/all: every community) (default: popular)"
        },
        "country": {
          "type": "string",
          "enum": [
            "AR",
            "AU",
            "BG",
            "CA",
            "CL",
            "CO",
            "CZ",
            "DE",
            "ES",
            "FI",
            "FR",
            "GB",
            "GR",
            "HR",
            "HU",
            "IE",
            "IN",
            "IS",
            "IT",
            "JP",
            "MX",
            "MY",
            "NZ",
            "PH",
            "PL",
            "PR",
            "PT",
            "RO",
            "RS",
            "SE",
            "SG",
            "TH",
            "TR",
            "TW",
            "US"
          ],
          "description": "One country's r/popular, as on reddit.com: AR, AU, BG, CA, CL, CO, CZ, DE, ES, FI, FR, GB, GR, HR, HU, IE, IN, IS, IT, JP, MX, MY, NZ, PH, PL, PR, PT, RO, RS, SE, SG, TH, TR, TW or US (default: worldwide). Only with feed=popular."
        },
        "pages": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "default": 1,
          "description": "Number of pages to fetch, 1-20 (default: 1). Each page returns up to 25 posts."
        },
        "get_sentiment": {
          "type": "boolean",
          "default": false,
          "description": "Set to true to add AI emotion analysis to each post (returned in the `posts` array). Adds a `sentiment` object containing `emotions` (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), `dominant_emotion`, `emotional_intensity` (0-10), and `polarity` (positive, "
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "type": "string",
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ]
        },
        "queryParams": {
          "type": "object",
          "properties": {
            "sort_by": {
              "type": "string",
              "enum": [
                "hot",
                "most_recent",
                "top",
                "rising",
                "controversial"
              ],
              "default": "hot",
              "description": "Sort order: hot, most_recent, top, rising, or controversial (default: hot)"
            },
            "posted_ago": {
              "type": "string",
              "enum": [
                "1h",
                "24h",
                "7d",
                "30d",
                "12m",
                "all"
              ],
              "description": "Time window for sort_by=top or sort_by=controversial: 1h, 24h, 7d, 30d, 12m, or all (default: 24h). Rejected with any other sort_by."
            },
            "feed": {
              "type": "string",
              "enum": [
                "popular",
                "all"
              ],
              "description": "popular (r/popular: the most active posts in public, non-NSFW communities) or all (r/all: every community) (default: popular)"
            },
            "country": {
              "type": "string",
              "enum": [
                "AR",
                "AU",
                "BG",
                "CA",
                "CL",
                "CO",
                "CZ",
                "DE",
                "ES",
                "FI",
                "FR",
                "GB",
                "GR",
                "HR",
                "HU",
                "IE",
                "IN",
                "IS",
                "IT",
                "JP",
                "MX",
                "MY",
                "NZ",
                "PH",
                "PL",
                "PR",
                "PT",
                "RO",
                "RS",
                "SE",
                "SG",
                "TH",
                "TR",
                "TW",
                "US"
              ],
              "description": "One country's r/popular, as on reddit.com: AR, AU, BG, CA, CL, CO, CZ, DE, ES, FI, FR, GB, GR, HR, HU, IE, IN, IS, IT, JP, MX, MY, NZ, PH, PL, PR, PT, RO, RS, SE, SG, TH, TR, TW or US (default: worldwide). Only with feed=popular."
            },
            "pages": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 1,
              "description": "Number of pages to fetch, 1-20 (default: 1). Each page returns up to 25 posts."
            },
            "get_sentiment": {
              "type": "boolean",
              "default": false,
              "description": "Set to true to add AI emotion analysis to each post (returned in the `posts` array). Adds a `sentiment` object containing `emotions` (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), `dominant_emotion`, `emotional_intensity` (0-10), and `polarity` (positive, "
            }
          },
          "required": []
        }
      },
      "required": [
        "type",
        "method"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "input"
  ]
}