Reddit Scraper Posts and Comments API

API ID 15391

Reddit posts and comments from subreddits, post links, users or a keyword search, with score, comment count, date and full text, as clean JSON.

API Documentation

Endpoints

Request
Reddit posts and comments from subreddits, posts, users or a search, with score, comments count, date and full text.
Endpoint ID: 41357
GET https://zylalabs.com/api/15391/reddit+scraper+posts+and+comments+api/41357/reddit+posts+and+comments
INPUT PARAMETERS

Reddit Posts and Comments — Endpoint Features

Object Description
url Optional Subreddit (r/name or URL), post URL or user URL. Comma-separate several (max 10).
query Optional Search all of Reddit (up to 25 posts per search).
keyword Optional Only posts containing these words.
from Optional Only items on or after this date (YYYY-MM-DD).
to Optional Only items before this date (YYYY-MM-DD).
max Optional Total posts + comments (1-500, default 50).
comments Optional Also return comments (default false).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
query
keyword
from
to
max
comments
API EXAMPLE RESPONSE
JSON
{
    "items": [
        {
            "submissionType": "post",
            "submissionId": "1y3p6rt",
            "submissionIdPrefixed": "t3_1y3p6rt",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y3p6rt/for_hire_python_developer_web_scraping_automation/",
            "subreddit": "r/webscraping",
            "title": "[For Hire] Python Developer | Web Scraping, Automation & Backend",
            "bodyText": "[removed]",
            "author": "EfficientBuy7865",
            "postFlair": "Hiring 💰",
            "score": 1,
            "upvoteRatio": 1,
            "numComments": 0,
            "isNsfw": false,
            "externalUrl": null,
            "galleryImagesUrls": null,
            "submittedAt": "2026-11-23T17:59:18Z",
            "scoreCapturedAt": "2026-11-23T17:59:34Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y3p2k9",
            "submissionIdPrefixed": "t3_1y3p2k9",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y3p2k9/anybody_want_to_scrape_my_site_feel_free/",
            "subreddit": "r/webscraping",
            "title": "Anybody want to scrape my site? Feel free!",
            "bodyText": "I recently setup a social media site at [https://budchan.com](https://budchan.com)\n\nI wanted to know how accessible it is for webscrapers to actually scrape and index the content.\n\nThe whole site is free game for those who want to scrape it or test out their personal scraper setups.\n\nThe domain registrar is Cloudflare, so I think only the more advanced setups would work because of anti-bot protections.\n\nAnd yes, it is a fully free site. And no, this is not a commercial product.",
            "author": "KE2DBB",
            "postFlair": null,
            "score": 1,
            "upvoteRatio": 1,
            "numComments": 0,
            "isNsfw": false,
            "externalUrl": "https://i.redd.it/1ohz2wunhe3i1.png",
            "galleryImagesUrls": null,
            "submittedAt": "2026-11-23T17:54:57Z",
            "scoreCapturedAt": "2026-11-23T17:55:19Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y3jqj5",
            "submissionIdPrefixed": "t3_1y3jqj5",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y3jqj5/scraped_155_active_roofing_contractors_in/",
            "subreddit": "r/webscraping",
            "title": "Scraped 155 active Roofing Contractors in Dallas–Fort Worth",
            "bodyText": "[removed]",
            "author": "Significant_Air_8339",
            "postFlair": "Getting started 🌱",
            "score": 1,
            "upvoteRatio": 1,
            "numComments": 0,
            "isNsfw": false,
            "externalUrl": null,
            "galleryImagesUrls": null,
            "submittedAt": "2026-11-23T14:31:09Z",
            "scoreCapturedAt": "2026-11-23T14:31:32Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y3jnm2",
            "submissionIdPrefixed": "t3_1y3jnm2",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y3jnm2/new_detection_tests_added_to_browsersbenchmark/",
            "subreddit": "r/webscraping",
            "title": "New detection tests added to browsers-benchmark",
            "bodyText": "https://i.redd.it/m5vj0ipqgd3i1.png\n\nhttps://i.redd.it/0p6jis3tgd3i1.png\n\nFull report: [https://github.com/techinz/browsers-benchmark/](https://github.com/techinz/browsers-benchmark/)\n\n",
            "author": "dracariz",
            "postFlair": "Bot detection 🤖",
            "score": 3,
            "upvoteRatio": 0.8,
            "numComments": 1,
            "isNsfw": false,
            "externalUrl": null,
            "galleryImagesUrls": [
                "https://i.redd.it/0p6jis3tgd3i1.png",
                "https://i.redd.it/m5vj0ipqgd3i1.png"
            ],
            "submittedAt": "2026-11-23T14:28:04Z",
            "scoreCapturedAt": "2026-11-23T16:58:09Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y3jiea",
            "submissionIdPrefixed": "t3_1y3jiea",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y3jiea/39_marketplace_scrapers_17_countries_one_adapter/",
            "subreddit": "r/webscraping",
            "title": "39 marketplace scrapers, 17 countries, one adapter contract",
            "bodyText": "[removed]",
            "author": "Mindless-Result-7165",
            "postFlair": null,
            "score": 1,
            "upvoteRatio": 1,
            "numComments": 0,
            "isNsfw": false,
            "externalUrl": null,
            "galleryImagesUrls": null,
            "submittedAt": "2026-11-23T14:22:15Z",
            "scoreCapturedAt": "2026-11-23T14:22:32Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y2nc7k",
            "submissionIdPrefixed": "t3_1y2nc7k",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y2nc7k/hcaptcha_solving/",
            "subreddit": "r/webscraping",
            "title": "Hcaptcha Solving",
            "bodyText": "​\n\nInstead of the usual approach of integrating CAPTCHA-solving APIs, sending requests, waiting for tokens, and injecting them back into the browser, browser extensions can be a pretty good alternative too.\n\nIn this demo, I'm using a browser extension to handle hCaptcha, and so far, it's been working really well in my tests. Works on other types too and datadome captcha.\n\nI can integrate different extensions into my scraping agents and have them run during debugging or actual runtime.\n\nThis opens up a lot of possibilities beyond CAPTCHA solving.\n\nStill working on a lot of things, but this is definitely one of my favorite features so far.\n\nWould love to hear what other scraping developers think about this approach! 😁",
            "author": "jenniferilacdev",
            "postFlair": "Bot detection 🤖",
            "score": 1,
            "upvoteRatio": 1,
            "numComments": 0,
            "isNsfw": false,
            "externalUrl": "https://i.redd.it/lupt5yofh53i1.gif",
            "galleryImagesUrls": null,
            "submittedAt": "2026-11-22T11:35:53Z",
            "scoreCapturedAt": "2026-11-22T11:36:11Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y2n7o6",
            "submissionIdPrefixed": "t3_1y2n7o6",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y2n7o6/hcaptcha_solving/",
            "subreddit": "r/webscraping",
            "title": "Hcaptcha solving",
            "bodyText": "​\n\nInstead of the usual approach of integrating CAPTCHA-solving APIs, sending requests, waiting for tokens, and injecting them back into the browser, browser extensions can be a pretty good alternative.\n\n im using a browser extension to handle hCaptcha, and so far, it's been working really well in my tests. Works on datadome captcha too.\n\nWhat's even cooler is that the platform's browser extension support isn't just for solving CAPTCHAs. I can integrate different extensions into my scraping agents and have them run during debugging or actual runtime.\n\nWould love to hear what other scraping developers think about this approach!",
            "author": "jenniferilacdev",
            "postFlair": null,
            "score": 1,
            "upvoteRatio": 1,
            "numComments": 0,
            "isNsfw": false,
            "externalUrl": "https://i.redd.it/yohoe2czf53i1.gif",
            "galleryImagesUrls": null,
            "submittedAt": "2026-11-22T11:27:44Z",
            "scoreCapturedAt": "2026-11-22T11:27:55Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y2geow",
            "submissionIdPrefixed": "t3_1y2geow",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y2geow/x_rotated_searchtimeline_removed_userlegacy_nov_21/",
            "subreddit": "r/webscraping",
            "title": "X rotated SearchTimeline & removed user.legacy (Nov 21)",
            "bodyText": "[removed]",
            "author": "twitterapiio",
            "postFlair": null,
            "score": 1,
            "upvoteRatio": 1,
            "numComments": 1,
            "isNsfw": false,
            "externalUrl": null,
            "galleryImagesUrls": null,
            "submittedAt": "2026-11-22T04:29:17Z",
            "scoreCapturedAt": "2026-11-23T16:30:04Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y2a2in",
            "submissionIdPrefixed": "t3_1y2a2in",
            "submissionUrl": "https://www.reddit.com/r/webscraping/comments/1y2a2in/instagrams_web_client_api/",
            "subreddit": "r/webscraping",
            "title": "Instagram's web client -> API",
            "bodyText": "[removed]",
            "author": "No-Recording-8313",
            "postFlair": null,
            "score": 1,
            "upvoteRatio": 1,
            "numComments": 1,
            "isNsfw": false,
            "externalUrl": null,
            "galleryImagesUrls": null,
            "submittedAt": "2026-11-21T23:02:59Z",
            "scoreCapturedAt": "2026-11-23T11:03:27Z"
        },
        {
            "submissionType": "post",
            "submissionId": "1y23xzf",
            "submissionIdPrefixed": "t3_1y23xzf"
        }
    ],
    "_note": "Response truncated for documentation purposes"
}
Reddit Posts and Comments — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15391/reddit+scraper+posts+and+comments+api/41357/reddit+posts+and+comments?url=r/webscraping&max=10' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Reddit Scraper Posts and Comments API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Reddit posts and comments from subreddits, post links, users or a keyword search, with score, comment count, date and full text, as clean JSON.

Reddit Scraper Posts and Comments API FAQs

The endpoint returns Reddit posts and comments discovered from subreddit sources, post links, users, or keyword searches. Each result identifies its content type through `submissionType`, such as `post`, and includes the associated text and metadata.

Post records can include the title, full body text, author, subreddit, flair, score, upvote ratio, comment count, NSFW status, external URL, gallery image URLs, submission ID, Reddit URL, and submission timestamp.

Results are returned as clean JSON in an `items` array. Each array element represents one Reddit submission or comment and contains its content and metadata as named fields, making the response suitable for direct parsing in applications.

`submissionId` is the Reddit item’s base identifier, while `submissionIdPrefixed` includes its Reddit type prefix, such as `t3_1y3p6rt` for a post. `submissionUrl` provides the direct Reddit link for opening or referencing the item.

Requests can be customized using sources such as subreddit names, Reddit post links, usernames, or keyword searches. These inputs let you collect content from a focused community, a specific post, a user’s submissions, or matching search results.

Fields may be `null`, empty, or contain values such as `[removed]` when Reddit content is unavailable, deleted, or restricted. Applications should check for these values before displaying text, links, gallery images, or other optional data.

`submittedAt` records when the Reddit item was submitted, while `scoreCapturedAt` indicates when the score-related metadata was recorded. Both use ISO 8601 UTC timestamps, such as `2026-11-23T17:59:18Z`.

The data can support subreddit monitoring, keyword research, content discovery, sentiment or engagement analysis, author activity analysis, and dashboards. Scores, comment counts, timestamps, and text can be combined to identify popular or relevant discussions.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs