Select the discussions before retrieving them

If an article already has a shortlist of Reddit sources, submit up to five post IDs separated by commas in post_ids. This is a way to inspect known candidates, not a search operation. Write down why each was selected beforehand: installation experience, maintenance effort, or a usage limitation. A clear research purpose prevents the comparison criteria from changing opportunistically after you read the responses.

Match every result to its own question

Choose language and need_format for the reading workflow. When a particular comment matters, handle include_comment_id and comment_id carefully rather than assuming one comment belongs to every post. Reconcile each returned item with the requested identifier. Record missing or unusable material separately; one completed batch does not establish that every source has been checked successfully.

Assign evidence a role in the article

For a hypothetical comparison of three note-taking tools, label the candidate discussions as useful context, questions to verify, or material not being cited. These are editorial decisions, not automatic classifications. Personal experiences from different threads cannot be combined into a satisfaction statistic, especially when dates and usage conditions differ. The deliverable should identify arguments needing more evidence and sources worth reading further, rather than declaring a product winner from a handful of conversations.

Request URL and parameters

GET https://api.trmesh.com/openapi/api/v1/reddit/app/fetch_post_details_batch

Parameter Type Required Meaning
language string No Preferred response language as an IETF language tag; default: en-US
post_ids string Yes Post IDs comma-separated, max 5
include_comment_id boolean No Include specific comment ID
comment_id string No Comment ID (when include_comment_id is True)
need_format boolean No Whether to clean and format the data

Run the Python example

Install requests and set TRMESH_API_TOKEN in your environment. Replace the sample identifiers with the public object you intend to inspect. Example IDs may no longer be available.

import os
import requests

# Read your own developer key from the server environment.
url = "https://api.trmesh.com/openapi/api/v1/reddit/app/fetch_post_details_batch"
params = {
    "post_ids": "t3_1ojnh50,t3_1ok432f,t3_1nwil8j",
    "include_comment_id": "false",
    "need_format": "false"
}
response = requests.get(
    url, params=params, timeout=30,
    headers={"Authorization": f"Bearer {os.environ['TRMESH_API_TOKEN']}"},
)
response.raise_for_status()
payload = response.json()
print(payload)  # Inspect the actual response before mapping fields

Endpoint documentation · Free profile tool

API calls use your TRMesh account allowance. Check the endpoint price before running a script.