PeumeAPI

Social media data · Reddit

Pull Reddit Posts

Scrape Reddit posts, comments, communities, and user profiles without login.

$0.0051 per result + $0.06 per call

Call it

curl https://api.peume.com/v1/call/pull-reddit-posts \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "ignoreStartUrls": false,
    "searchPosts": true,
    "searchComments": false,
    "searchCommunities": false,
    "searchUsers": false,
    "searchMedia": false
  }
}'

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: pull-reddit-posts.

Parameters

sessionTokenstring

Provide the value of your 'reddit_session' cookie from a dedicated Reddit account (found in Browser DevTools -> Application -> Cookies -> https://www.reddit.com). Also accepts exported Cookie-Editor JSON or Cookie header strings. When omitted, the scraper runs in HTML-only mode using Puppeteer browser with rate limiting intact.

startUrlsarray

If you already have URL(s) of page(s) you wish to scrape, you can set them here. If you want to use the search field below, remove all startUrls here.

searchesarray

Here you can provide a search query which will be used to search Reddit`s topics.

searchCommunityNamestring

If provided, the search will be performed only inside this community (e.g., 'programming').

ignoreStartUrlsboolean

Mainly used as a fix for ignoring starUrl on Zapier

Example: false

searchPostsboolean

Will search for posts with the provided search

Example: true

searchCommentsboolean

Will search for comments with the provided search

Example: false

searchCommunitiesboolean

Will search for communities with the provided search

Example: false

searchUsersboolean

Will search for users with the provided search

Example: false

searchMediaboolean

Will search for media with the provided search

Example: false

sortstring

Sort search by Relevance, Hot, Top, New or Comments

· relevance · hot · top · new · rising · comments

Example: new

timestring

Filter posts by last hour, week, day, month or year

all · hour · day · week · month · year

skipCommentsboolean

This will skip scrapping comments when going through posts (both from Start URLs and search results)

Example: false

skipUserPostsboolean

This will skip scrapping user posts when going through user activity or community posts

Example: false

skipCommunityboolean

This will skip scrapping community info but will still get community posts if they were not skipped.

Example: false

includeMediaLinksboolean

This will include upVotes, upVoteRatio, imageUrls, videoUrls, and numberOfComments when scraping posts. Enabling this will use a more detailed extraction method, which may affect performance.

Example: false

includeNSFWboolean

You can choose to include or exclude NSFW content from your search

Example: true

maxItemsinteger

The maximum number of items that will be saved in the dataset. If you are scrapping for Communities&Users, remember to consider that each category inside a community is saved as a separated item.

Example: 10

maxPostCountinteger

The maximum number of posts that will be scraped for each Posts Page or Communities&Users URL

Example: 10

postDateLimitstring

Use this value to only retrieve posts published after a specific date.

commentDateLimitstring

Use this value to only retrieve comments published after a specific date inside a post.

maxCommentsinteger

The maximum number of comments that will be scraped for each Comments Page. If you don't want to scrape comments you can set this to zero.

Example: 10

maxCommunitiesCountinteger

The maximum number of `Communities`'s pages that will be scraped if your search or startUrl is a Communities type.

Example: 2

maxUserCountinteger

The maximum number of `Users`'s pages that will be scraped.

Example: 2

scrollTimeoutinteger

Set the timeout in seconds in which the page will stop scrolling down to load new items

Example: 40

navigationTimeoutinteger

Set the navigation timeout in seconds for page loading

Example: 60

maxRequestRetriesinteger

The maximum number of times the crawler will retry a failed request.

Example: 6

debugModeboolean

Adds progress lines to the run log: what each page was read as, how many items it added, and when a page had nothing to scrape. Useful when results look incomplete. It does not change what the Actor scrapes.

Example: false

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.