/v1/subreddit/posts
Subreddit posts
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/reddit-api/v1/subreddit/posts" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/reddit-api/v1/subreddit/posts", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/reddit-api/v1/subreddit/posts");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/reddit-api/v1/subreddit/posts",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"sort": "hot",
"after": "t3_1tz4exo",
"count": 10,
"posts": [
{
"id": "1tz1rny",
"url": "https://www.reddit.com/live/18hnzysb1elcs",
"flair": "Russia/Ukraine",
"score": 341,
"title": "/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1564, Part 1 (Thread #1711)",
"author": "WorldNewsMods",
"over_18": false,
"upvotes": 341,
"fullname": "t3_1tz1rny",
"is_video": false,
"selftext": "",
"stickied": true,
"permalink": "https://www.reddit.com/r/worldnews/comments/1tz1rny/rworldnews_live_thread_russian_invasion_of/",
"subreddit": "worldnews",
"thumbnail": "default",
"created_utc": 1780804975,
"num_comments": 67,
"upvote_ratio": 0.97
},
{
"id": "1tlutp0",
"url": "https://www.reddit.com/r/worldnews/comments/1tlutp0/rworldnews_discussion_thread_us_and_israel_launch/",
"flair": "Israel/Palestine",
"score": 258,
"title": "/r/WorldNews Discussion Thread: US and Israel launch attack on Iran; Iran retaliates (Thread #18)",
"author": "WorldNewsMods",
"over_18": false,
"upvotes": 258,
"fullname": "t3_1tlutp0",
"is_video": false,
"selftext": "If you see any newsworthy information from a major news outlet or live broadcast, feel free to share a brief summary as a top-level comment in the discussion post.\n\nOther redditors will appreciate if you include the source of where you read, saw, or heard the information.",
"stickied": true,
"permalink": "https://www.reddit.com/r/worldnews/comments/1tlutp0/rworldnews_discussion_thread_us_and_israel_launch/",
"subreddit": "worldnews",
"thumbnail": "self",
"created_utc": 1779577071,
"num_comments": 3581,
"upvote_ratio": 0.87
},
{
"id": "1tz5kdu",
"url": "https://www.abc.net.au/news/2026-06-07/russia-embarks-on-plan-to-recruit-soldiers-from-universities/106757174",
"flair": "Russia/Ukraine",
"score": 9006,
"title": "Running short on soldiers, Russia begins 'aggressive' recruiting drive in educational institutions",
"author": "clamorous_owle",
"over_18": false,
"upvotes": 9006,
"fullname": "t3_1tz5kdu",
"is_video": false,
"selftext": "",
"stickied": false,
"permalink": "https://www.reddit.com/r/worldnews/comments/1tz5kdu/running_short_on_soldier
…