Post Search.

Search across all of Reddit — find posts by keyword, pulled live from Reddit's API.

Code powering this demo
// Step 1: Get a Reddit token from ThoughtLab $ch = curl_init('https://thoughtlab.cloud/v1/token'); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => ['Authorization: Bearer sk_live_...'], ]); $token = json_decode(curl_exec($ch), true)['token']; // Step 2: Search Reddit for "Reddit API" $ch = curl_init('https://oauth.reddit.com/search?q=Reddit+API&limit=25'); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["Authorization: bearer $token"], ]); $results = json_decode(curl_exec($ch), true);
More live examples:User LookupSubreddit Feed
Built with ThoughtLab Token API — one API call, one Reddit token, 24 hours of access. Get the source code.
Search
everything.
// Get a token
POST thoughtlab.cloud/v1/token

// Search all of Reddit
GET oauth.reddit.com/search?q=python