Call it
curl https://api.peume.com/v1/call/reddit-post-details-by-thread-url \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"dataset_id": "gd_lvz8ah06191smkebj4",
"input": [
{
"url": "https://example.com/"
}
]
}
}'const res = await fetch("https://api.peume.com/v1/call/reddit-post-details-by-thread-url", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"dataset_id": "gd_lvz8ah06191smkebj4",
"input": [
{
"url": "https://example.com/"
}
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reddit-post-details-by-thread-url",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"dataset_id": "gd_lvz8ah06191smkebj4",
"input": [
{
"url": "https://example.com/"
}
]
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: reddit-post-details-by-thread-url.
Parameters
dataset_idRequiredstringpinned to the documented 'Reddit - Posts' dataset
gd_lvz8ah06191smkebj4
Example: gd_lvz8ah06191smkebj4
formatstringjson (default) | ndjson | csv
inputRequiredarrayone object per target — a Reddit post (thread) URL
Example: [{"url":"https://example.com/"}]
Other ways to do it
Same job, other sources, cheapest first.
Get a post's content & statsBest sourceGet a post's content & stats. Checks the cheapest source first and moves to the next one until it finds an answer.Reddit post details by post fullnameReddit: fetch post details (app)Reddit post details in bulk by post fullnamesReddit: fetch post details batch (app)Reddit post details by post idRetrieves details for a Reddit post identified by its full post ID.Reddit post details in large bulk by post fullnamesReddit: fetch post details batch large (app)
