Preview
24 output fields
Saved sample, not a live run.
title- My best cheesecake so far
datecomments- 48
score- 3530
author- ClearlyBulky
subreddit- Baking
author_url- reddit.com/user/ClearlyBulky/
content_href- reddit.com/gallery/1hvoazn
award_count- 0
All 24 fields
domain- reddit.com
post_type- gallery
upvote_ratio- 0.9982440737489026
subreddit_prefixed_name- r/Baking
flair- Recipe
body- Found my new favorite recipe (no water bath). Next time I will make a thicker c…
subreddit_id- t5_2qx1h
author_id- t2_dr3vyilor
id- t3_1hvoazn
comments_list- { arialabel, author, award_count, body, comment_meta, comment_parent_positions, … 15 more }
spec_e34d7128_url- —
slovencina_url- —
title |
date |
comments |
score |
author |
subreddit |
url |
author_url |
content_href |
award_count |
domain |
post_type |
upvote_ratio |
subreddit_prefixed_name |
icon |
flair |
permalink |
body |
subreddit_id |
author_id |
id |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| My best cheesecake so far | 48 | 3530 | ClearlyBulky | Baking | reddit.com/r/Baking/comments/1hvoazn/my_b… | reddit.com/user/ClearlyBulky/ | reddit.com/gallery/1hvoazn | 0 | reddit.com | gallery | 0.9982440737489026 | r/Baking | preview.redd.it/snoovatar/avatars/nftv2_b… | Recipe | reddit.com/r/Baking/comments/1hvoazn/my_b… | Found my new favorite recipe (no water bath). Next time I will make a thicker c… | t5_2qx1h | t2_dr3vyilor | t3_1hvoazn |
Scroll sideways to see more columns.
What you get
| Field | Type |
|---|---|
title |
string |
date |
string |
comments |
string |
score |
string |
author |
string |
subreddit |
string |
url |
string |
author_url |
string |
All 24 fields
Key fields
| Field | Type |
|---|---|
title |
string |
date |
string |
comments |
string |
score |
string |
author |
string |
subreddit |
string |
url |
string |
author_url |
string |
content_href |
string |
award_count |
string |
domain |
string |
post_type |
string |
upvote_ratio |
string |
subreddit_prefixed_name |
string |
icon |
string |
flair |
string |
permalink |
string |
body |
string |
Technical fields
| Field | Type |
|---|---|
spec_e34d7128_url |
string |
slovencina_url |
string |
comments_list |
array of object |
subreddit_id |
string |
author_id |
string |
id |
string |
Inputs
-
urlURL · requiredPaste the URL of a reddit.com page of the same kind as the sample: its path looks like /r/{word}/comments/{code}/{slug}. Any such page works, not only the one the API was built from.
-
urlsarray of stringPages 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.
Request
POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_60baa0c07c213725606d26a8/endpoints/generated_60baa0c07c213725606d26a8_search/run
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_60baa0c07c213725606d26a8/endpoints/generated_60baa0c07c213725606d26a8_search/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://www.reddit.com/r/Baking/comments/1hvoazn/my_best_cheesecake_so_far/"
},
"version": 1,
"max_items": 25
}'
Save the Idempotency-Key before you send, and reuse it only to retry the same request. The key needs the run scope. See Run a catalog API.
version pins major v1, whose newest minor (1.0) answers. Leave it out and the call runs on the latest major.
Use it from an AI agent
Open in your coding agent
Add CleanedWeb to your agent as an MCP server, such as a custom connector in Claude or ChatGPT, then sign in with your CleanedWeb account. An API key with the read and run scopes works too.
https://api.cleanedweb.com/mcp?profile=catalog
Then ask, for example: Use CleanedWeb to get 25 records from the Reddit Post with Comments API.
The agent finds the API, runs it and reads the records. Runs are charged like any other run.
Coverage
- Version
- v1 1.0
- Category
- Social & communities
- Updated
A run reads the one page you name and returns its record. Your limits on records, time and budget still apply.
CleanedWeb is not affiliated with Reddit.
Changelog
-
v1.0 (major) ·