A Reddit user's posts
Each post has score, upvote ratio, comment count, awards, flair, media (video, gallery, images) and flags. Pagination: pass the cursor from next_cursor on the previous response; next_cursor is null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the Reddit API: 30 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
usernamerequired | string | Example: GallowBoob |
sort | new | hot | top | controversial | new (default), hot, top or controversial. Pass the same sort and time with the cursor. |
time | hour | day | week | month | year | all | With top/controversial: hour, day, week, month, year (default) or all. |
cursor | string | Cursor from next_cursor on the previous response; next_cursor is null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/reddit/v1/user/posts?username=GallowBoob" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/reddit/v1/user/posts",
params={"username": "GallowBoob"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/reddit/v1/user/posts");
url.searchParams.set("username", "GallowBoob");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"username": "GallowBoob","count": 25,"next_cursor": "t3_zgkubx","feed": {"title": "submitted by GallowBoob","subtitle": "The internet was a mistake 🌍 Always remember the human.","updated": "2026-10-23T19:34:29+00:00","icon": "https://www.redditstatic.com/icon.png/","logo": null,"category": "u_GallowBoob","category_label": "u/GallowBoob","url": "https://www.reddit.com/user/GallowBoob/submitted/"},"posts": [{"id": "t3_fgghrs","title": "Everything in balance. Except karma ⬆️⬆️⬆️","subreddit": "u_GallowBoob","published": "2020-03-10T16:27:45+00:00","text": null,"url": "https://www.reddit.com/r/u_GallowBoob/comments/fgghrs/everything_in_balance_except_karma/","author": "GallowBoob","updated": "2020-03-10T16:27:45+00:00","author_url": "https://www.reddit.com/user/GallowBoob","category_label": "u/GallowBoob","thumbnail": "https://preview.redd.it/41i4qishgvl41.jpg?width=640&crop=smart&auto=webp&s=cffa3a800d9d0132e434f81e1b8ebd72fbeaa447","external_url": "https://i.redd.it/41i4qishgvl41.jpg","images": ["https://preview.redd.it/41i4qishgvl41.jpg?width=640&crop=smart&auto=webp&s=cffa3a800d9d0132e434f81e1b8ebd72fbeaa447","https://i.redd.it/41i4qishgvl41.jpg"],"videos": [],"links": [],"permalink": "/r/u_GallowBoob/comments/fgghrs/everything_in_balance_except_karma/","content_html": "<table> <tr><td> <a href=\"https://www.reddit.com/r/u_GallowBoob/comments/fgghrs/everything_in_balance_except_karma/\"> <img src=\"https://prev…"},{"id": "t3_1x1pjzw","title": "She’s 2 years old! 🎉","subreddit": "aww","published": "2026-10-09T16:14:29+00:00","text": null,"url": "https://www.reddit.com/r/aww/comments/1x1pjzw/shes_2_years_old/","author": "GallowBoob","updated": "2026-10-09T16:14:29+00:00","author_url": "https://www.reddit.com/user/GallowBoob","category_label": "r/aww","thumbnail": "https://preview.redd.it/tbq8zdb1vguh1.jpeg?width=640&crop=smart&auto=webp&s=9d10c0fea969e32b9a0968eb77a0fd2645f2a39c","external_url": "https://i.redd.it/tbq8zdb1vguh1.jpeg","images": ["https://preview.redd.it/tbq8zdb1vguh1.jpeg?width=640&crop=smart&auto=webp&s=9d10c0fea969e32b9a0968eb77a0fd2645f2a39c","https://i.redd.it/tbq8zdb1vguh1.jpeg"],"videos": [],"links": [],"permalink": "/r/aww/comments/1x1pjzw/shes_2_years_old/","content_html": "<table> <tr><td> <a href=\"https://www.reddit.com/r/aww/comments/1x1pjzw/shes_2_years_old/\"> <img src=\"https://preview.redd.it/tbq8zdb1vguh1.…"},"… 23 more"],"credits_used": 1,"cached": false}