Skip to main content
Reads a Reddit post page or a redd.it short link and returns one post as JSON.

Make a request

Send the page’s URL to scrape with a json format that names the parser. Get an API key in the Quickstart.

Read the response

The parser’s data is in data.json. Its fields include id, url, title, text, author, community, publishedAt, likes, comments, shares, views, media and hashtags. This sample is cut to the first items.

Options

Send options in the options object of the json format.

Price

$0.005 per 1,000 comments, charged for each 200. See Pricing.

Limits and errors

  • The URL must be a Reddit post page or a redd.it short link. Send options view discussions to list the other subreddits where the same link was shared. Any other URL fails with invalidRequest.
  • To read the next page, send the cursor from the response as the cursor option. Paging needs an API key.
  • The answer comes back in data.json. If the page cannot be read, the call fails with an error code from Errors.