Aller au contenu
GET /v1/search/subreddits

Search 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/search/subreddits" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/reddit-api/v1/search/subreddits", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/reddit-api/v1/search/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/search/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": {
        "count": 10,
        "query": "python",
        "subreddits": [
            {
                "url": "https://www.reddit.com/r/Python/",
                "icon": "https://styles.redditmedia.com/t5_2qh0y/styles/communityIcon_lctik80p96tg1.png?width=256&s=6d91fcc92d9f08c5ba30096d43a555ddd0edbc7d",
                "name": "Python",
                "title": "Python",
                "over18": false,
                "description": "The largest Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language. \n---\n\nIf you have questions or are new to Python use r/LearnPython",
                "subscribers": 1485969
            },
            {
                "url": "https://www.reddit.com/r/PythonLearning/",
                "icon": "https://styles.redditmedia.com/t5_2qeibm/styles/communityIcon_5rysoa19mr351.png?width=256&s=9b820932f4a5f426f855ff8cb2519b40b739846f",
                "name": "PythonLearning",
                "title": "PythonLearning",
                "over18": false,
                "description": "Everything about learning the Python programming language. Ask questions, give recommendations, explain concepts, show projects, demo free tools, compare courses, ...",
                "subscribers": 96468
            },
            {
                "url": "https://www.reddit.com/r/PythonProjects2/",
                "icon": "https://styles.redditmedia.com/t5_fnrmm/styles/communityIcon_9vnzkywxnxid1.jpeg?width=256&s=cd32ee5dd295067c7109bcc7c05e537ffe04e15d",
                "name": "PythonProjects2",
                "title": "Where the rookies roam",
                "over18": false,
                "description": "A place for people who are learning the programming language 'Python' to come and apply their new skills on actual projects, and get feedback.",
                "subscribers": 56315
            },
            {
                "url": "https://www.reddit.com/r/learnpython/",
                "icon": "https://styles.redditmedia.com/t5_2r8ot/styles/communityIcon_jwr5s7l5ici61.png?width=256&s=45deb6f123031525835c1ab234a53be00bdbc207",
                "name": "learnpython",
                "title": "Python Education",
                "over18": false,
                "description": "Subreddit for posting questions and asking for general advice about all topics related to learning python.",
                "subscribers": 1032266
            },
            {
                "url": "https://www.reddit.com/r/ballpython/",
                "icon": "https://styles.redditmedia.com/t5_2srho/styles/communityIcon_iprkwgdy985b1.jpg?width=256&s=4901f54733b3e3f140b828bdc31c122ed8e0ad9e",
                "name": "ballpython",
                "title": "Ball Python - Often imitated, never duplicated.",
                "over18": false,
                "description": "Python Regius. Royal Python. Ball Python. We love them by any name!",
                "subs
…