Naar de inhoud
GET /v1/search

Search the forum for topics

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/discourse-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 20,
        "query": "plugin",
        "topics": [
            {
                "id": 54462,
                "url": "https://meta.discourse.org/t/the-plugin-instance-find-all-method-incorrectly-treats-every-file-with-the-plugin-rb-name-as-a-discourse-plugin/54462",
                "slug": "the-plugin-instance-find-all-method-incorrectly-treats-every-file-with-the-plugin-rb-name-as-a-discourse-plugin",
                "tags": [],
                "likes": null,
                "posts": 6,
                "title": "The Plugin::Instance.find_all method incorrectly treats every file with the «plugin.rb» name as a Discourse plugin",
                "views": null,
                "closed": true,
                "pinned": false,
                "replies": 5,
                "created_at": "2016-12-19T00:21:09.289Z",
                "category_id": 1,
                "last_posted_at": "2017-05-16T21:29:12.681Z"
            },
            {
                "id": 266794,
                "url": "https://meta.discourse.org/t/activitypub-plugin/266794",
                "slug": "activitypub-plugin",
                "tags": [
                    {
                        "id": 803,
                        "name": "activitypub",
                        "slug": "activitypub"
                    },
                    {
                        "id": 731,
                        "name": "experimental",
                        "slug": "experimental"
                    }
                ],
                "likes": null,
                "posts": 467,
                "title": "ActivityPub Plugin",
                "views": null,
                "closed": false,
                "pinned": false,
                "replies": 466,
                "created_at": "2023-05-31T17:21:52.959Z",
                "category_id": 22,
                "last_posted_at": "2026-05-04T17:21:20.372Z"
            },
            {
                "id": 30515,
                "url": "https://meta.discourse.org/t/developing-discourse-plugins-part-1-create-a-basic-plugin/30515",
                "slug": "developing-discourse-plugins-part-1-create-a-basic-plugin",
                "tags": [
                    {
                        "id": 484,
                        "name": "tutorial",
                        "slug": "tutorial"
                    },
                    {
                        "id": 274,
                        "name": "plugin-guides",
                        "slug": "plugin-guides"
                    }
                ],
                "likes": null,
                "posts": 33,
                "title": "Developing Discourse Plugins - Part 1 - Create a basic plugin",
                "views": null,
                "closed": false,
                "pinned": false,
                "replies": 32,
                "created_at": "2015-06-26T21:01:08.310Z",
                "category_id": 56,
                "last_posted_at": "2025-07-08T20:52:10.855Z"
 
…