/v1/topic
One topic with its 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/discourse-api/v1/topic" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/discourse-api/v1/topic", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/discourse-api/v1/topic");
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/topic",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"id": 1,
"url": "https://meta.discourse.org/t/new-to-discourse-start-here/1",
"slug": "new-to-discourse-start-here",
"tags": [],
"count": 1,
"likes": 432,
"posts": [
{
"name": null,
"text": "We’re so glad you’re here! This is our official community, where you can connect, ask questions, and share ideas about Discourse, a powerful platform for support, teamwork, and everything community. You’ll find topics here on features, bugs, hosting, development, and general support. Want to run your own Discourse site? There are a couple of great ways to get started: Official hosting & migration services Fully managed by the team that builds Discourse – ideal for those who want peace of mind and expert support. Use the free, open source code A fast and streamlined option if you prefer to self",
"likes": 432,
"username": "Discourse",
"created_at": "2013-02-01T04:52:28.397Z",
"post_number": 1
}
],
"title": "New to Discourse? Start here!",
"views": 116026,
"created_at": "2013-02-01T04:52:28.073Z",
"category_id": 67,
"posts_count": 1,
"last_posted_at": "2013-02-01T04:52:28.397Z"
},
"meta": {
"timestamp": "2026-06-13T14:11:26.046Z",
"request_id": "18c2fced-a723-462d-9655-23332490f716"
},
"status": "ok",
"message": "Topic retrieved successfully",
"success": true
}