Reddit's documented path is an OAuth app on oauth.reddit.com, plus rate limits and a user-agent policy. Old /.json URLs are a scrape. Trends API takes source reddit for a phrase and two live boards for "what is hot now." No Reddit client id. body is a JSON string and must be parsed a second time. Docs: the API reference. Reddit notes: the Reddit guide. Caps: pricing.

oauth.reddit.com app review

Reddit's API rules expect an app, a user agent, and OAuth. That stack is correct for reading a subreddit as Reddit. It is the wrong stack for a 0-100 series that must sit next to google search in one warehouse.

source reddit for a phrase

POST https://api.trendsapi.ai/api
Authorization: Bearer <api_key>
Content-Type: application/json

{"mode":"get_time_series","source":"reddit","keyword":"openai"}

openai is a labeled sample. get_growth with percent_growth is the windowed alternative. The keyword is a name or phrase, the same rule as other standard sources.

Reddit Hot Posts versus Reddit World News

{"mode":"get_top_trends","type":"Reddit Hot Posts","limit":25}
{"mode":"get_top_trends","type":"Reddit World News","limit":25}

No keyword on either. Do not combine the two types in one POST. sort rank_change plus a window is available when the job is climbers rather than the current list.

Subreddit names are keywords, not a feed type

r/technology is not a type string. If the question is whether that name is moving, put the name in keyword on source reddit. If the question is the current hot list, use a feed. A pipeline that needs both keeps two tables, same Bearer key.