Fetch Reddit APP Dynamic Search Results

Browse registered social-data routes across platforms, then dive into detailed reference docs

API DocsredditSearchFetch Reddit APP Dynamic Search Results

Fetch Reddit APP Dynamic Search Results

What this API is for

  • Perform Reddit APP dynamic search, supporting posts, communities, comments, media, and users
GET/openapi/api/v1/reddit/app/fetch_dynamic_search

Price:Price unavailable · Actual charges depend on free quota and account discounts

Authentication

All API requests require a Bearer project token in the Authorization header

Authorization headerAuthorization: Bearer YOUR_API_TOKEN

Request parameters

  • query: Search keywords or expression; post searches may match only some terms in titles or post bodies. See the syntax reference below
  • search_type: Search type, options:
    • post: Search posts (default)
    • community: Search communities/subreddits
    • comment: Search comments
    • media: Search media (images/videos/GIFs)
    • people: Search users
  • sort: Sort method (only for post/comment/media types), options:
    • RELEVANCE: By relevance
    • HOT: Hot/trending
    • TOP: Most popular
    • NEW: Newest
    • COMMENTS: By comment count (only for post type)
  • time_range: Time range (only for post/media types), options:
    • all: All time
    • year: Past year
    • month: Past month
    • week: Past week
    • day: Today
    • hour: Past hour
  • safe_search: Safe search setting, "unset" or "strict"
  • allow_nsfw: Allow NSFW content, "0" or "1"
  • after: Pagination cursor; when need_format=true, pass pageInfo.endCursor unchanged to fetch the next page
  • need_format: Defaults to false; true reduces data to children and pageInfo, retaining core result content and pagination
NameLocation / typeRequiredNotesExample
languagequery / stringNo
  • 返回内容使用的语言,采用 IETF 语言标签;默认 en-US / Preferred response language as an IETF language tag; default: en-US
queryquery / stringYes
  • 搜索关键词或搜索表达式;帖子搜索默认可匹配部分关键词,支持 AND、OR、NOT、括号分组、引号短语和字段限定 / Search keywords or expression; post searches may match only some keywords. Supports AND, OR, NOT, grouping, quoted phrases and field filters
search_typequery / stringNo
  • Search type: post(帖子), community(社区), comment(评论), media(媒体), people(用户)
post
sortquery / string | nullNo
  • comment/media)/Sort method (only for post/comment/media): RELEVANCE(相关性), HOT(热门), TOP(最受欢迎), NEW(最新), COMMENTS(评论数,仅post)
RELEVANCE
time_rangequery / string | nullNo
  • media)/Time range (only for post/media): all(所有时间), year(去年), month(上月), week(上周), day(今天), hour(过去1小时)
all
safe_searchquery / stringNo
  • Safe search setting: unset, strict
unset
allow_nsfwquery / stringNo
  • Allow NSFW content: 0, 1
0
afterquery / stringNo
  • 分页游标;need_format=true时使用pageInfo.endCursor / Pagination cursor; use pageInfo.endCursor when need_format=true
need_formatquery / booleanNo
  • true时data仅包含children和pageInfo,并精简每条结果的冗余字段;false时保留原始搜索结构 / When true, data contains only children and pageInfo with redundant result fields removed; false preserves the original search structure
false

Request examples

curl -X GET "https://api.trmesh.com/openapi/api/v1/reddit/app/fetch_dynamic_search" \
  -H "Authorization: Bearer sdc_your_project_token" \
  -H "Accept: application/json"

Response fields

  • need_format=false: Original nested search result data
  • need_format=true: data contains only:
    • children: Results containing the corresponding post, comment, community or author content for search_type
    • pageInfo: Available pagination fields, including endCursor, startCursor, hasNextPage and hasPreviousPage
  • An empty children list means no results; when hasNextPage is true, continue using endCursor
  • Compact results retain IDs, titles, content, timestamps, statistics, authors, communities and media. Markdown is preferred for bodies; duplicate body representations and avatar sizes are removed
FieldTypeNotesExample
childrenunknown
  • Results containing the corresponding post, comment, community or author content for search_type
pageInfounknown
  • Available pagination fields, including endCursor, startCursor, hasNextPage and hasPreviousPage

Common response envelope

Common fields for response status, request identifiers and data

FieldTypeNotesExample
codeinteger
  • HTTP status code | HTTP状态码
request_idstring | null
  • Unique request identifier | 唯一请求标识符
messagestring
  • Response message (EN-US) | 响应消息 (English)
message_zhstring
  • Response message (ZH-CN) | 响应消息 (中文)
supportstring
  • Support message | 支持消息
timestring
  • The time the response was generated | 生成响应的时间
time_stampinteger
  • The timestamp the response was generated | 生成响应的时间戳
time_zonestring
  • The timezone of the response time | 响应时间的时区
docsstring | null
  • Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接
cache_messagestring | null
  • Cache message (EN-US) | 缓存消息 (English)
cache_message_zhstring | null
  • Cache message (ZH-CN) | 缓存消息 (中文)
cache_urlstring | null
  • The URL to access the cached result | 访问缓存结果的 URL
routerstring
  • The endpoint that generated this response | 生成此响应的端点
paramsunknown
  • The parameters used in the request | 请求中使用的参数
dataunknown | null
  • The response data | 响应数据

Errors and limits

The docs cover not only success responses, but also auth failures, rate limits, and data-service errors

CodeMeaningNotes
200SuccessThe request completed and returned the standard response envelope.
401UnauthorizedThe token is missing, invalid, or no longer active.
429Rate limitedThe request exceeded token, user, or plan-level throughput limits.
502Service unavailableThe gateway could not obtain a healthy result. Retry in a moment.
Next steps

New to the API? Read the guide or explore examples