{"name":"Reddit Post with Comments API","description":"Returns a Reddit post's id, title, text, author, subreddit, score, comment count and posting time, with its comments' authors and text.","api_id":"generated_60baa0c07c213725606d26a8","slug":"reddit-post-with-comments-api","source":{"name":"Reddit","domain":"reddit.com","url":"https://www.reddit.com/"},"category":"social_communities","countries":[],"languages":[],"record_types":[],"tags":[],"limitations":[],"updated":"2026-11-28","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"1.0","versions":[{"major":1,"latest_minor":"1.0","status":"current","sunset_at":null}],"changelog":[{"version":"1.0","date":"2026-11-26T09:24:52.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_60baa0c07c213725606d26a8_search","name":"Get Reddit Post with Comments by URL","description":"Return the one record of a page of this kind, given the page's URL on the site.","definition_version":"ae099efef341ab49797ea3dbd2638eaf8905eff5fbc9132372c9140c5e6387a6","method":"POST","path":"/v1/catalog/public/apis/generated_60baa0c07c213725606d26a8/endpoints/generated_60baa0c07c213725606d26a8_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_60baa0c07c213725606d26a8/endpoints/generated_60baa0c07c213725606d26a8_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","minLength":1,"description":"A page of the same kind as the build page, on reddit.com: its path matches /r/{word}/comments/{code}/{slug}. It need not be the build page.","examples":["https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/"]},"urls":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","format":"uri","minLength":1},"description":"Pages of that kind (1 to 50 in all, with url): one record each, in this order, once per page; a call may give urls and no url. A page that fails (off the pattern, unreadable, no product data) is told by its code in the run's metadata (item_pages) and does not fail the run while another page is read.","examples":[["https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/"]]}},"required":["url"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"author_url":{"type":"string"},"spec_e34d7128_url":{"type":"string"},"slovencina_url":{"type":"string"},"comments_list":{"type":"array","items":{"properties":{"arialabel":{"type":["null","string"]},"author":{"type":["null","string"]},"award_count":{"type":["null","number","string"]},"body":{"type":["null","string"]},"comment_meta":{"type":["null","string"]},"comment_parent_positions":{"type":["null","string"]},"comment_position":{"type":["null","number","string"]},"content_type":{"type":["null","string"]},"created":{"type":["null","string"]},"depth":{"type":["null","number","string"]},"id":{"type":["null","string"]},"is_author_deleted":{"type":["boolean","null","string"]},"is_op":{"type":["boolean","null","string"]},"parent_permalink":{"type":["null","string"]},"parent_thingid":{"type":["null","string"]},"parentid":{"type":["null","string"]},"permalink":{"type":["null","string"]},"postid":{"type":["null","string"]},"reload_url":{"type":["null","string"]},"root_thingid":{"type":["null","string"]},"score":{"type":["null","number","string"]}},"type":["null","object"]}},"content_href":{"type":"string"},"comments":{"type":"string"},"award_count":{"type":"string"},"date":{"type":"string"},"domain":{"type":"string"},"post_type":{"type":"string"},"score":{"type":"string"},"upvote_ratio":{"type":"string"},"subreddit_id":{"type":"string"},"subreddit_prefixed_name":{"type":"string"},"author_id":{"type":"string"},"author":{"type":"string"},"icon":{"type":"string"},"subreddit":{"type":"string"},"flair":{"type":"string"},"permalink":{"type":"string"},"id":{"type":"string"},"body":{"type":"string"}},"required":["title","url"],"additionalProperties":false},"output_schema_note":"Some fields the source returns are not published here (identifiers, personal details and page-building noise). A record can carry fields this schema does not list, so additionalProperties is true. Do not reject a record for an extra field. The live contract, linked as live_contract, lists every field the saved definition declares.","examples":[{"kind":"saved_validation_records","saved_at":"2026-11-26T09:24:52.538Z","live_verified":false,"request":{"input":{"url":"https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/"}},"records_shown":1,"records_saved":1,"records":[{"author":"ClearlyBulky","author_id":"t2_dr3vyilor","author_url":"https://www.reddit.com/user/ClearlyBulky/","award_count":"0","body":"Found my new favorite recipe (no water bath). Next time I will make a thicker crust. Added a raspberry compote.","comments":"47","content_href":"https://www.reddit.com/gallery/1hvoazn","date":"2025-01-07T10:09:56.783000+0000","domain":"reddit.com","flair":"Recipe","icon":"https://preview.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV85NjA0NzY1_rare_47a6633f-2c1a-4c8e-9786-55fdc536ec42-headshot.png?width=64&height=64&crop=smart&auto=webp&s=1e3e3020244178b2c65357a4075d1f2f663bbe80","id":"t3_1hvoazn","permalink":"https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/","post_type":"gallery","score":"3530","slovencina_url":"https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/?tl=sk","spec_e34d7128_url":"https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/?tl=bg","subreddit":"Baking","subreddit_id":"t5_2qx1h","subreddit_prefixed_name":"r/Baking","title":"My best cheesecake so far","upvote_ratio":"0.9982440737489026","url":"https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/"}]}],"request_example":{"body":{"input":{"url":"https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/"},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_60baa0c07c213725606d26a8/endpoints/generated_60baa0c07c213725606d26a8_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {\n    \"url\": \"https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/\"\n  },\n  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_60baa0c07c213725606d26a8/endpoints/generated_60baa0c07c213725606d26a8_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/reddit-post-with-comments-api/","markdown":"https://cleanedweb.com/catalog/reddit-post-with-comments-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_60baa0c07c213725606d26a8/endpoints/generated_60baa0c07c213725606d26a8_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/reddit-post-with-comments-api/","markdown":"https://cleanedweb.com/catalog/reddit-post-with-comments-api/index.md","contract":"https://cleanedweb.com/catalog/reddit-post-with-comments-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
