GET
/v1/reddit/searchReddit search API
Global Reddit post search — not scoped to a sub. Returns Reddit's raw t3_* post shape with an additional `created_at_iso` field so you don't have to convert epoch seconds yourself. Useful for keyword monitoring, brand tracking, and topical research.
Authentication
Include
x-api-key: <your_key> in your request headersRequests without a valid key get a
401 Unauthorized. Revoked keys return 403 Forbidden.Parameters
Name
Type
Description
queryRequiredstring
Search string.
sortOptionalenumdefault: relevance
Result ordering.
relevancenewtopcomment_counttimeframeOptionalenumdefault: all
Time window for top/comment_count.
allhourdayweekmonthyearafterOptionalstring
Pagination cursor — pass the previous response's "after".
trimOptionalboolean
Set to "true" to omit selftext_html.
Example request
curl "https://mesmer.tools/api/v1/reddit/search?query=openai&sort=relevance" \
-H "x-api-key: <YOUR_API_KEY>"Try it now
Hits the live endpoint with your API key.
Saved locally in your browser. Mint a key in /admin/api-keys.
Response schema
Trimmed example — see Field reference for descriptions.
{
"success": true,
"credits_remaining": -1,
"posts": [
{
"id": "1szx9k2",
"title": "OpenAI announces o4-mini …",
"subreddit": "OpenAI",
"author": "samaltman",
"url": "https://www.reddit.com/r/OpenAI/comments/1szx9k2/...",
"ups": 5810,
"num_comments": 412,
"created_utc": 1777501902,
"created_at_iso": "2026-04-25T08:45:02.000Z"
},
"...24 more posts"
],
"after": "t3_1szp1bn"
}Field reference
Each posts[] entry — the fields you'll most likely use.
posts[].field
Type
Description
idstring
Base-36 Reddit post id (e.g. "1t8r5sf"). Pair with subreddit to rebuild a URL.
titlestring
Post title as posted by the OP.
subredditstring
Subreddit name without the r/ prefix.
authorstring
Username of the OP, or [deleted] if removed.
urlstring
Outbound link (for link posts) or full Reddit URL (for self posts).
permalinkstring
Relative path on reddit.com (prepend https://www.reddit.com).
selftextstring
Body text in Markdown. Empty string for link posts.
upsnumber
Upvote count (already net of downs on modern Reddit).
num_commentsnumber
Comment count at fetch time.
created_utcnumber
Post creation time as a Unix epoch seconds float.
created_at_isostring
ISO-8601 string equivalent of created_utc. Added by this API.