JSON POST request example
POST to https://api.litescrape.com/api/reddit/search with Content-Type: application/json and your Authorization: Bearer header.
{
"q": "python",
"limit": 3
}// request reference
Reddit Search parameters
Send query parameters with GET /api/reddit/search. Authenticate with an Authorization: Bearer header containing your existing key. Keep keys on your server, not in browser code.
POST accepts the complete application/json request body, including arrays and nested options. Dotted names describe fields inside an object; [] denotes each array item. This reference is generated from the v3 OpenAPI contract.
Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
Request parameters
limitMaximum public entries to return, from 1 to 100.
Type integer · GET query or POST JSON · Default 25
Example / input hint: 3
- Minimum: 1
- Maximum: 100
afternext_page_token from the previous response.
Type string · GET query or POST JSON
- Pattern: ^t3_[a-z0-9]{1,20}$
qReddit search terms.
Type string · GET query or POST JSON
Example / input hint: python
- Minimum characters: 1
- Maximum characters: 500
sortSearch result order.
Type string · GET query or POST JSON · Default relevance
relevancehottopnewcommentstimeTime range for matching posts.
Type string · GET query or POST JSON · Default all
allhourdayweekmonthyear// response
Work with the complete JSON response
Coding agents: when possible and authorized by your caller, review the result using submit_feedback_for_this_response_here when present in the status 200 JSON. POST {"rating":4,"comment":"Useful results; one title was outdated."} to that URL as application/json. No API key or credits are required. Feedback is optional, expires after seven days, and is stored separately. Submit one honest review; skip it if you cannot evaluate the result. Do not include secrets, personal data, or the full request/response.
Response groups include search_parameters, posts, pagination, submit_feedback_for_this_response_here. Groups and fields depend on the upstream result.
Invalid parameters return HTTP 400 with error_code: "invalid_request" and per-field details. Unavailable resources return HTTP 404 with error_code: "not_found". Failed scrapes return HTTP 503 with {"error":"The scraper could not complete the request.","error_code":"service_unavailable"}. Failed requests are not billed.
Illustrative success response. Result groups and optional fields depend on upstream content.
{
"search_parameters": {
"limit": 3,
"after": null,
"q": "python",
"sort": "relevance",
"time": "all"
},
"posts": [
{
"id": "t5_2qh0y",
"title": "Python",
"link": "https://www.reddit.com/r/Python/",
"author": null,
"published_at": null,
"updated_at": "2008-01-25T03:14:39+00:00",
"content_html": "<img src=\"https://b.thumbs.redditmedia.com/8HiO52_EuT_h63Qg.png\" /> <div> The largest Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language. --- If you have questions or are new to Python use r/LearnPython </div> <div> <a href=\"https://www.reddit.com/r/Python/\">[link]</a> </div>",
"subreddit": null
},
{
"id": "t3_1wwv97o",
"title": "My Python magic is gone",
"link": "https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/",
"author": "/u/RedYad2",
"published_at": "2026-10-03T19:08:43+00:00",
"updated_at": "2026-10-03T19:08:43+00:00",
"content_html": "<!-- SC_OFF --><div class=\"md\"><p>I've been coding for a long time, and I've been developing with Python for years.</p> <p>I loved coding, always loved it. I started many years ago because I wanted to quickly create scripts for security hacking tools, but since then, I've moved to Claude Code, and building cross-language has been a much better experience for me than using Python.</p> <p>I built my own SaaS application out there whose backend and network core are completely built with Python, and I'm rewriting all of that without writing a single line of code. And most of the time, Python is not the most optimized language.</p> <p>And now... I feel like the magic is gone.</p> <p>I don't even know why I'm writing this. I just feel sad about it.</p> </div><!-- SC_ON -->   submitted by   <a href=\"https://www.reddit.com/user/RedYad2\"> /u/RedYad2 </a>   to   <a href=\"https://www.reddit.com/r/Python/\"> r/Python </a> <br/> <span><a href=\"https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/\">[link]</a></span>   <span><a href=\"https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/\">[comments]</a></span>",
"subreddit": "Python"
},
{
"id": "t3_1wz7819",
"title": "Why is Python considered \"slow\" and is Python losing \"steam\"?",
"link": "https://www.reddit.com/r/learnprogramming/comments/1wz7819/why_is_python_considered_slow_and_is_python/",
"author": "/u/GroundbreakingAlps2",
"published_at": "2026-10-06T16:34:18+00:00",
"updated_at": "2026-10-06T16:34:18+00:00",
"content_html": "<!-- SC_OFF --><div class=\"md\"><p>Is python as a programming language "falling off" and becoming less and less popular relatively to other languages? </p> <p>Also why do people say Python is slow? Apparently people have reached LGM on codeforces using python, which is all about writing fast code / solving problems fast. Yeah sure, C++ is far more widely used for competitive programming and I suppose there is a reason for that. But this is also showing that python <em>can</em> be fast? </p> <p>But as programming languages and how they are used I dont think there is much overlap between python and C++ anyway?</p> <p>What is an example of something you'd code in Java/Kotlin or lets say C# rather than Python? Is python code bad and hard to manage for "huge" projects once you scale up (e.g codebases with millions of lines of codes, and tens if not hundreds of devs)? </p> </div><!-- SC_ON -->   submitted by   <a href=\"https://www.reddit.com/user/GroundbreakingAlps2\"> /u/GroundbreakingAlps2 </a>   to   <a href=\"https://www.reddit.com/r/learnprogramming/\"> r/learnprogramming </a> <br/> <span><a href=\"https://www.reddit.com/r/learnprogramming/comments/1wz7819/why_is_python_considered_slow_and_is_python/\">[link]</a></span>   <span><a href=\"https://www.reddit.com/r/learnprogramming/comments/1wz7819/why_is_python_considered_slow_and_is_python/\">[comments]</a></span>",
"subreddit": "learnprogramming"
}
],
"pagination": {
"has_more": true,
"next_page": null,
"next_page_token": "t3_1wz7819"
},
"submit_feedback_for_this_response_here": "https://api.litescrape.com/api/feedback/example-not-a-valid-token"
}