Api Endpoint

API Direct

Search for Reddit posts by keyword across all subreddits.

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/posts
MIME type
application/json
First seen
2026-10-25T22:17:24.049Z
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
73 ms
Average latency
105 ms
HTTP status
402
Last checked
Reachability
100% over 14 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": {
        "query": {
          "type": "string",
          "maxLength": 500,
          "description": "Search query (max 500 characters). Reddit search operators are supported, including AND, OR, NOT, exclusion with -, grouping with ( ), and fields such as subreddit: and author:."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "maximum": 12,
          "default": 1,
          "description": "Page number for pagination (1-12). Each page returns up to 20 posts."
        },
        "sort_by": {
          "type": "string",
          "enum": [
            "most_recent",
            "relevance",
            "hot",
            "top",
            "most_commented"
          ],
          "default": "most_recent",
          "description": "Sort order for results"
        },
        "posted_ago": {
          "type": "string",
          "enum": [
            "1h",
            "24h",
            "7d",
            "30d",
            "12m",
            "all"
          ],
          "description": "Only return posts from this period: 1h (past hour), 24h (past day), 7d (past week), 30d (past month), 12m (past year) or all (all time, the default). Works with every sort_by, e.g. sort_by=relevance with posted_ago=24h returns the most relevant posts of the past day. Any other value returns 400."
        },
        "subreddit": {
          "type": "string",
          "maxLength": 25,
          "description": "Only return posts from this subreddit, with or without r/ (e.g. Python). Any name that isn't 2-21 letters, digits or underscores returns 400."
        },
        "include_nsfw": {
          "type": "boolean",
          "default": false,
          "description": "Set to true to include posts marked NSFW. They are left out by default."
        },
        "get_sentiment": {
          "type": "boolean",
          "default": false,
          "description": "Set to true to add AI emotion analysis to each post. 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, negative or neutral). Any post t"
        }
      },
      "required": [
        "query"
      ]
    }
  },
  "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": {
            "query": {
              "type": "string",
              "maxLength": 500,
              "description": "Search query (max 500 characters). Reddit search operators are supported, including AND, OR, NOT, exclusion with -, grouping with ( ), and fields such as subreddit: and author:."
            },
            "page": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12,
              "default": 1,
              "description": "Page number for pagination (1-12). Each page returns up to 20 posts."
            },
            "sort_by": {
              "type": "string",
              "enum": [
                "most_recent",
                "relevance",
                "hot",
                "top",
                "most_commented"
              ],
              "default": "most_recent",
              "description": "Sort order for results"
            },
            "posted_ago": {
              "type": "string",
              "enum": [
                "1h",
                "24h",
                "7d",
                "30d",
                "12m",
                "all"
              ],
              "description": "Only return posts from this period: 1h (past hour), 24h (past day), 7d (past week), 30d (past month), 12m (past year) or all (all time, the default). Works with every sort_by, e.g. sort_by=relevance with posted_ago=24h returns the most relevant posts of the past day. Any other value returns 400."
            },
            "subreddit": {
              "type": "string",
              "maxLength": 25,
              "description": "Only return posts from this subreddit, with or without r/ (e.g. Python). Any name that isn't 2-21 letters, digits or underscores returns 400."
            },
            "include_nsfw": {
              "type": "boolean",
              "default": false,
              "description": "Set to true to include posts marked NSFW. They are left out by default."
            },
            "get_sentiment": {
              "type": "boolean",
              "default": false,
              "description": "Set to true to add AI emotion analysis to each post. 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, negative or neutral). Any post t"
            }
          },
          "required": [
            "query"
          ]
        }
      },
      "required": [
        "type",
        "method"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "input"
  ]
}