reddit.com User Posts API
Returns one page (about 25) of the posts a Reddit user submitted, plus the cursor of the next page.
https://api.maviapi.com/v1/sites/reddit/list_user_posts5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
usernamestring in query | Optional | GallowBoob | Reddit username, with or without the u/ prefix |
sortstring in query | Optional | new | new, hot, top or controversial |
time_filterstring in query | Optional | all | period for sort=top and sort=controversial: hour, day, week, month, year or all |
afterstring in query | Optional | None | next_after from a previous call (or a post id like t3_fy0ah5) to get the page after it |
Response fields
usernamee.g."GallowBoob"sorte.g."new"returnede.g.25posts
ide.g."t3_fgghrs"titlee.g."Everything in balance. Except karma ⬆️⬆️⬆️"authore.g."GallowBoob"subreddite.g."u_GallowBoob"scoree.g.7956upvote_ratioe.g.0.968772263120399comment_counte.g.66award_countcreatede.g."2020-03-10T16:27:45.010000+0000"post_typee.g."image"flairdomaine.g."i.redd.it"urle.g."https://i.redd.it/41i4qishgvl41.jpg"permalinke.g."https://www.reddit.com/user/GallowBoob/comments/fgghrs/everything_in_balance_except_karma/"body_previewe.g.""imagesnsfwe.g.falsespoilere.g.falsenext_aftere.g."t3_zgkubx"Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/reddit/list_user_posts' \
-H "Authorization: Bearer $MAVI_KEY"reddit.com User Posts API questions
What you get, what it costs and how to call it.
What does the reddit.com User Posts API return?
Returns one page (about 25) of the posts a Reddit user submitted, plus the cursor of the next page. The response has username, sort, returned, posts and next_after.
Which parameters does the reddit.com User Posts API take?
Every parameter of GET /list_user_posts is optional. You can pass username, sort, time_filter and after.
How much does one reddit.com User Posts API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the reddit.com User Posts API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/reddit/list_user_posts with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the reddit.com User Posts API official?
No. It is an independent, hosted API from maviapi for the public data on reddit.com, and it is not made, endorsed or supported by reddit.com. Its parameters and response fields are documented on this page.