Reddit UnOfficial API avatar
Reddit UnOfficial API

Pricing

Pay per event

Go to Apify Store
Reddit UnOfficial API

Reddit UnOfficial API

Reddit API Post and Comment and Scrapers

Pricing

Pay per event

Rating

5.0

(2)

Developer

Ahmed Elhadidi

Ahmed Elhadidi

Maintained by Community

Actor stats

2

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

Not Just a Scraper. A powerful Reddit automation tool to interact with Reddit programmatically.

πŸš€ Features

  • πŸ“Š Scrape Posts - Fetch posts from subreddits or user profiles
  • πŸ“ Create Posts - Create new posts in any subreddit
  • πŸ’¬ Comment on Posts - Add comments to Reddit threads
  • ↩️ Reply to Comments - Reply to specific comments
  • πŸ›‘οΈ Anti-Detection - Advanced techniques to avoid bot detection
  • πŸ”’ Proxy Support - Residential & Datacenter proxy options

οΏ½ Examples for Each Mode

πŸ“Š Scrape Mode

Fetch posts from a subreddit or user profile.

{
"mode": "scrape",
"target": "python",
"scrape_type": "subreddit",
"sort": "hot",
"time_filter": "week",
"limit": 25
}

Scraping a user's posts:

{
"mode": "scrape",
"target": "spez",
"scrape_type": "user",
"sort": "top",
"time_filter": "all",
"limit": 50
}

πŸ“ Create Post Mode

Create a new post in a subreddit. Requires cookies.

{
"mode": "Create_Post",
"target": "test",
"title": "My First Automated Post",
"body": "This post was created using Reddit UnOfficial API!",
"flair": "Discussion",
"proxyType": "residential",
"proxyCountry": "US",
"cookies": [
{"name": "token_v2", "value": "your_token_here", "domain": ".reddit.com"},
{"name": "reddit_session", "value": "your_session_here", "domain": ".reddit.com"}
]
}

πŸ’¬ Comment on Post Mode

Add a comment to an existing post. Requires cookies.

{
"mode": "Comment_on_Post",
"target": "https://www.reddit.com/r/test/comments/abc123/some_post_title/",
"text": "Great post! Thanks for sharing.",
"proxyType": "residential",
"proxyCountry": "US",
"cookies": [
{"name": "token_v2", "value": "your_token_here", "domain": ".reddit.com"}
]
}

↩️ Reply to Comment Mode

Reply to a specific comment. Requires cookies.

{
"mode": "Reply_to_A_Comment",
"target": "https://www.reddit.com/r/test/comments/abc123/some_post_title/xyz789/",
"text": "I agree with your point!",
"proxyType": "residential",
"proxyCountry": "AUTO",
"cookies": [
{"name": "token_v2", "value": "your_token_here", "domain": ".reddit.com"}
]
}

⚠️ Note: Comment URLs include the comment ID at the end (e.g., /xyz789/). Post URLs don't have this extra segment.


πŸͺ How to Get Cookies

  1. Install a browser extension like "Cookie-Editor" Link: https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm?hl=en-US&utm_source=ext_sidebar
  2. Log in to Reddit
  3. Open the extension and export cookies as JSON
  4. Paste the JSON into the Cookies input field

Accepted formats:

// Browser export format (recommended)
[
{"name": "token_v2", "value": "...", "domain": ".reddit.com"},
{"name": "reddit_session", "value": "...", "domain": ".reddit.com"}
]
// Simple format
{
"token_v2": "...",
"reddit_session": "..."
}

πŸ”’ Proxy Options

TypeBest ForCountry Support
ResidentialAutomation (lower detection)All countries
DatacenterScraping (budget option)AUTO only

πŸ“¦ Output

  • Scraping: Returns list of posts with title, author, score, comments, URL, etc.
  • Automation: Returns success status, message, post/comment ID, permalink

⚠️ Disclaimer

This tool is for educational and research purposes. Please respect Reddit's Terms of Service. Use automation responsibly to avoid account bans.