Reddit

Web Scraping API Reddit Target

📘

Specific target templates listed below are available with Advanced plans.
You can scrape Reddit target with Coreplans as well by providing page URL (it does not support parsing or target specific parameters). Both solutions can be tested in the Playground in Dashboard.

Read more about Coresolution here.

The following targets are available:

Target
reddit_post
reddit_subreddit
reddit_user

Reddit post

This target will return information from a post in a subreddit.

POST https://scraper-api.decodo.com/v2/scrape

Payload type: JSON

ParameterTypeRequiredDescriptionExample
targetstringThis target typereddit_post
urlstringReddit post URLhttps://www.reddit.com/r/nba/comments/17jrqc5/serious_next_day_thread_postgame_discussion/

Reddit subreddit

This target will return information from a given subreddit.

POST https://scraper-api.decodo.com/v2/scrape

Payload type: JSON

Parameter

Type

Required

Description

Example

target

string

This target type

reddit_subreddit

url

string

Reddit subreddit URL.

URLs can also include the sorting parameter at the end of the url.

Default sorting:
https://www.reddit.com/r/nba

Sorted by newest:
https://www.reddit.com/r/nba/new

Reddit user

This target will return information from a Reddit user's page.

POST https://scraper-api.decodo.com/v2/scrape

Payload type: JSON

Parameter

Type

Required

Description

Example

target

string

This target type

reddit_user

url

string

Reddit user URL

https://www.reddit.com/user/IWasRightOnce/

sort

string

Sort results using one of Reddit's filters.

Valid values: new, top, hot.

new


Support

Still can't find an answer? Want to say hi? We take pride in our 24/7 customer support. Alternatively, you can reach us via our support email at [email protected].

Feedback

Something's missing? Request an article!
Got feedback? Let us know how we're doing and what can be improved.