Aller au contenu
GET /v1/popular/subreddits

Popular subreddits

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/reddit-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/reddit-api/v1/popular/subreddits" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/reddit-api/v1/popular/subreddits", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/reddit-api/v1/popular/subreddits");
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/popular/subreddits",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "after": "t5_4jn9v4",
        "count": 10,
        "subreddits": [
            {
                "url": "https://www.reddit.com/r/Home/",
                "name": "Home",
                "title": "Home",
                "over18": false,
                "description": "",
                "subscribers": 410654
            },
            {
                "url": "https://www.reddit.com/r/AskReddit/",
                "name": "AskReddit",
                "title": "Ask Reddit...",
                "over18": false,
                "description": "r/AskReddit is the place to ask and answer thought-provoking questions.",
                "subscribers": 58769335
            },
            {
                "url": "https://www.reddit.com/r/NoStupidQuestions/",
                "name": "NoStupidQuestions",
                "title": "No such thing as stupid questions",
                "over18": false,
                "description": "Ask away!\n\nDisclaimer: This is an anonymous forum so answers may not be correct",
                "subscribers": 7257908
            },
            {
                "url": "https://www.reddit.com/r/BaldursGate3/",
                "name": "BaldursGate3",
                "title": "Baldur's Gate 3",
                "over18": false,
                "description": "A community all about Baldur's Gate III, the role-playing video game by Larian Studios. BG3 is the third main game in the Baldur's Gate series. Baldur's Gate III is based on a modified version of the Dungeons & Dragons 5th edition (D&D 5e) tabletop RPG ruleset.\n\nGather your party and venture forth!",
                "subscribers": 3345687
            },
            {
                "url": "https://www.reddit.com/r/facepalm/",
                "name": "facepalm",
                "title": "now double verified",
                "over18": false,
                "description": "Facepalm🤦🏻‍♂️ for silly, cringey, and embarrassing moments. Do not post memes, breaking news, or Reddit screenshots.",
                "subscribers": 8100025
            },
            {
                "url": "https://www.reddit.com/r/interestingasfuck/",
                "name": "interestingasfuck",
                "title": "Interesting As Fuck",
                "over18": false,
                "description": "For anything truly interesting as fuck",
                "subscribers": 16488902
            },
            {
                "url": "https://www.reddit.com/r/Damnthatsinteresting/",
                "name": "Damnthatsinteresting",
                "title": "Damn, that's interesting!",
                "over18": false,
                "description": "For the most interesting things on the internet",
                "subscribers": 20405304
            },
            {
                "url": "https://www.reddit.com/r/LivestreamFail/",
                "name": "LivestreamFail",
                "title": "r/LivestreamFail",
                "over18": false,
                "description
…