Litescrape sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.litescrape.com/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

← All documentation

// Reddit documentation

Reddit Subreddit Posts API

Read public posts from a subreddit with pagination.

GET / POST https://api.litescrape.com/api/reddit/subreddit-posts

For background execution, use POST /api/reddit/subreddit-posts/async. Learn how to submit and poll async requests →

// from request to code

Integrate Reddit Subreddit Posts

Build your request and copy it into your stack. Or let your coding agent set it up.

APIReddit Subreddit Posts
More options 4
Request parameters

Your request updates the code instantly.

Open the Playground →

Set LITESCRAPE_API_KEY on your server, then run this request.

request.sh
curl --fail-with-body --request POST 'https://api.litescrape.com/api/reddit/subreddit-posts' \
  --header "Authorization: Bearer $LITESCRAPE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "limit": 3,
  "subreddit": "python"
}'

JSON POST request example

POST to https://api.litescrape.com/api/reddit/subreddit-posts with Content-Type: application/json and your Authorization: Bearer header.

POST · application/json
{
  "subreddit": "python",
  "limit": 3
}

// request reference

Reddit Subreddit Posts parameters

Send query parameters with GET /api/reddit/subreddit-posts. 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

limit
LimitOptional

Maximum 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
after
AfterOptional

next_page_token from the previous response.

Type string · GET query or POST JSON

  • Pattern: ^t3_[a-z0-9]{1,20}$
subreddit
SubredditRequired

Subreddit name without r/.

Type string · GET query or POST JSON

Example / input hint: python

  • Pattern: ^[A-Za-z0-9_]{2,21}$
sort
SortOptional

Post order.

Type string · GET query or POST JSON · Default hot

Accepted valueshotnewtoprising
time
TimeOptional

Time range when sorting top posts.

Type string · GET query or POST JSON · Default all

Accepted valuesallhourdayweekmonthyear

// 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.

200 · application/json
{
  "search_parameters": {
    "limit": 3,
    "after": null,
    "subreddit": "python",
    "sort": "hot",
    "time": "all"
  },
  "posts": [
    {
      "id": "t3_1xb1lcf",
      "title": "Info for Python users regarding eMudhra / emSign CA certificate security incident",
      "link": "https://www.reddit.com/r/Python/comments/1xb1lcf/info_for_python_users_regarding_emudhra_emsign_ca/",
      "author": "/u/sethmlarson_",
      "published_at": "2026-10-20T19:25:29+00:00",
      "updated_at": "2026-10-20T19:25:29+00:00",
      "content_html": "<!-- SC_OFF --><div class=\"md\"><p>A <a href=\"https://emudhra.we-have-a-problem.com/\">security incident affecting eMudhra intermediate certificates</a> has required removing the emSign root CA certificate from CA bundles such as “<a href=\"https://pypi.org/p/certifi\">certifi</a>”. It’s important to immediately upgrade the software packages below to at least the versions specified and rebuild container images to fetch the latest system certificates. Failure to do so could result in monster-in-the-middle (MITM) attacks against TLS clients, including <a href=\"http://python.org\"><code>python.org</code></a> and <a href=\"http://pypi.org\"><code>pypi.org</code></a> .</p> <ul> <li><a href=\"https://github.com/certifi/python-certifi/security/advisories/GHSA-6q48-6c7w-9gw2\">certifi 2026.10.19</a> (1)</li> <li><a href=\"https://github.com/pypa/pip/blob/main/NEWS.rst#2622-2026-10-20\">pip 26.2.2</a></li> <li><a href=\"https://github.com/astral-sh/uv/security/advisories/GHSA-hq85-5cpj-mr62\">uv 0.13.4</a></li> <li><a href=\"https://github.com/sigstore/sigstore-python/releases/tag/v4.5.1\">sigstore 4.5.1</a></li> </ul> <p>(1): Advisory mentions 2026.10.18, but 2026.10.19 is recommended for compatibility with unaffected emSign root certificates.</p> <p>For all existing virtual environments on your system, please upgrade pip and uv to the latest versions.</p> <p>Please read the full post on <a href=\"http://discuss.python.org\">discuss.python.org</a> for up-to-date information: <a href=\"https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576\">https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href=\"https://www.reddit.com/user/sethmlarson_\"> /u/sethmlarson_ </a> <br/> <span><a href=\"https://www.reddit.com/r/Python/comments/1xb1lcf/info_for_python_users_regarding_emudhra_emsign_ca/\">[link]</a></span> &#32; <span><a href=\"https://www.reddit.com/r/Python/comments/1xb1lcf/info_for_python_users_regarding_emudhra_emsign_ca/\">[comments]</a></span>",
      "subreddit": "Python"
    },
    {
      "id": "t3_1xcyvqj",
      "title": "Friday Daily Thread: r/Python Meta and Free-Talk Fridays",
      "link": "https://www.reddit.com/r/Python/comments/1xcyvqj/friday_daily_thread_rpython_meta_and_freetalk/",
      "author": "/u/AutoModerator",
      "published_at": "2026-10-23T00:00:32+00:00",
      "updated_at": "2026-10-23T00:00:32+00:00",
      "content_html": "<!-- SC_OFF --><div class=\"md\"><h1>Weekly Thread: Meta Discussions and Free Talk Friday 🎙️</h1> <p>Welcome to Free Talk Friday on <a href=\"/r/Python\">/r/Python</a>! This is the place to discuss the <a href=\"/r/Python\">r/Python</a> community (meta discussions), Python news, projects, or anything else Python-related!</p> <h2>How it Works:</h2> <ol> <li><strong>Open Mic</strong>: Share your thoughts, questions, or anything you&#39;d like related to Python or the community.</li> <li><strong>Community Pulse</strong>: Discuss what you feel is working well or what could be improved in the <a href=\"/r/python\">/r/python</a> community.</li> <li><strong>News &amp; Updates</strong>: Keep up-to-date with the latest in Python and share any news you find interesting.</li> </ol> <h2>Guidelines:</h2> <ul> <li>All topics should be related to Python or the <a href=\"/r/python\">/r/python</a> community.</li> <li>Be respectful and follow Reddit&#39;s <a href=\"https://www.redditinc.com/policies/content-policy\">Code of Conduct</a>.</li> </ul> <h2>Example Topics:</h2> <ol> <li><strong>New Python Release</strong>: What do you think about the new features in Python 3.11?</li> <li><strong>Community Events</strong>: Any Python meetups or webinars coming up?</li> <li><strong>Learning Resources</strong>: Found a great Python tutorial? Share it here!</li> <li><strong>Job Market</strong>: How has Python impacted your career?</li> <li><strong>Hot Takes</strong>: Got a controversial Python opinion? Let&#39;s hear it!</li> <li><strong>Community Ideas</strong>: Something you&#39;d like to see us do? tell us.</li> </ol> <p>Let&#39;s keep the conversation going. Happy discussing! 🌟</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href=\"https://www.reddit.com/user/AutoModerator\"> /u/AutoModerator </a> <br/> <span><a href=\"https://www.reddit.com/r/Python/comments/1xcyvqj/friday_daily_thread_rpython_meta_and_freetalk/\">[link]</a></span> &#32; <span><a href=\"https://www.reddit.com/r/Python/comments/1xcyvqj/friday_daily_thread_rpython_meta_and_freetalk/\">[comments]</a></span>",
      "subreddit": "Python"
    },
    {
      "id": "t3_1xbnrhi",
      "title": "litellm 1.107.0 on PyPI is compromised",
      "link": "https://www.reddit.com/r/Python/comments/1xbnrhi/litellm_11070_on_pypi_is_compromised/",
      "author": "/u/BattleRemote3157",
      "published_at": "2026-10-21T13:52:24+00:00",
      "updated_at": "2026-10-21T13:52:24+00:00",
      "content_html": "<!-- SC_OFF --><div class=\"md\"><p>the payloads run on every python start on the machine and not just when you import litellm. Your IDE, pip, CI jobs everything python on that host is affected.</p> <p>It steals ssh keys, aws credentials, browser passwords, shell history and AI coding tool configs. The backdoor runs as a daemon and executes whatever code the attacker’s server returns every hour.</p> <p>Pin to 1.106.2.</p> <p>complete breakdown: <a href=\"http://safedep.io/litellm-pypi-compromise-credential-stealer-backdoor\">safedep.io/litellm-pypi-compromise-credential-stealer-backdoor</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href=\"https://www.reddit.com/user/BattleRemote3157\"> /u/BattleRemote3157 </a> <br/> <span><a href=\"https://www.reddit.com/r/Python/comments/1xbnrhi/litellm_11070_on_pypi_is_compromised/\">[link]</a></span> &#32; <span><a href=\"https://www.reddit.com/r/Python/comments/1xbnrhi/litellm_11070_on_pypi_is_compromised/\">[comments]</a></span>",
      "subreddit": "Python"
    }
  ],
  "pagination": {
    "has_more": true,
    "next_page": null,
    "next_page_token": "t3_1xbnrhi"
  },
  "submit_feedback_for_this_response_here": "https://api.litescrape.com/api/feedback/example-not-a-valid-token"
}

More Reddit APIs