Sample records
2 saved records. This is a saved sample, not a live run.
title |
author |
comments |
score |
comment_count |
url |
|---|---|---|---|---|---|
| Thursday Daily Thread: Python Careers, Courses, and Furthering Education! | AutoModerator | 0 | 3 | 0 | reddit.com/r/Python/comments/1y5mnf3/thur… |
| Eventually LLMs will write what will become industry standard python. | DistributionBrief644 | 22 | 0 | 22 | reddit.com/r/Python/comments/1xv34e5/even… |
Scroll sideways to see more columns.
What you get
| Field | Type | Description |
|---|---|---|
title |
string | — |
author |
string | — |
comments |
integer | — |
score |
integer | — |
comment_count |
string | comment count |
url |
string | — |
award_count |
integer | — |
body |
string | — |
All 28 fields
Key fields
| Field | Type | Description |
|---|---|---|
title |
string | — |
author |
string | — |
comments |
integer | — |
score |
integer | — |
comment_count |
string | comment count |
url |
string | — |
award_count |
integer | — |
body |
string | — |
created_timestamp |
string | ISO 8601 value computed from the source's relative date text (such as '3 months ago') at delivery time; precise to about one second. |
domain |
string | — |
icon |
string | — |
post_type |
string | — |
upvote_ratio |
number | — |
privacy_policy_url |
string | privacy policy url |
author_url |
string | author url |
Technical fields
| Field | Type | Description |
|---|---|---|
author_id |
string | — |
ks_id |
string | — |
post_id |
string | — |
flair_names |
array of string | — |
flair_urls |
array of string | — |
detail_score |
string | score |
detail_upvote_ratio |
string | upvote ratio |
detail_subreddit_prefixed_name |
string | subreddit prefixed name |
shreddit_comments |
array of object | shreddit comments |
detail_flair |
string | flair |
typed_award_count |
integer | Reviewed numeric reading of award_count; source value is preserved. |
typed_comment_count |
integer | Reviewed numeric reading of comment_count; source value is preserved. |
typed_comments |
integer | Reviewed numeric reading of comments; source value is preserved. |
Inputs
-
subreddittext · requiredFree text: any subreddit the site serves, written with letters, digits, underscores and hyphens, up to 128 characters. A name the site does not serve is refused.
-
sorttextOptional. Free text: any sort the site serves, written with letters, digits, underscores and hyphens, up to 128 characters. A name the site does not serve is refused. Leave it out to use the default: new.
enrich_records is on by default and adds the fields that only appear on each record's detail page. Send false to read list fields only. See Run an API.
Request
POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_5d606dd36cbc1842abf1a210/endpoints/generated_5d606dd36cbc1842abf1a210_search/run
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_5d606dd36cbc1842abf1a210/endpoints/generated_5d606dd36cbc1842abf1a210_search/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{
"input": {
"subreddit": "Python",
"sort": "new"
},
"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 Subreddit Posts 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 stops when the source has no more records, or when it reaches a limit you set: the number of records, the time, or your budget.
CleanedWeb is not affiliated with Reddit.
Changelog
-
v1.0 (major) ·