URL:
http://twick.it/interfaces/api/random_topic.xml
http://twick.it/interfaces/api/random_topic.json
Funktion:
Liefert ein odere mehrer zufällige Themen.
Parameter:
| Optional/Pflicht | Werte | Default | Description | |
| limit | optional | Ganzzahlen >= 0 | 1 | Die Anzahl der Themen, die zurückgegeben werden sollen. |
| lng | optional | "de", "en" | Sprache des Browsers | Sprache, in der gesucht werden soll. |
Rückgabe (XML):
http://twick.it/interfaces/api/random_topic.xml
<?xml version="1.0" encoding="utf-8"?>
<result>
<query>type=xml</query>
<topic>
<id>172</id>
<title>Gott</title>
<url>http://twick.it/de/Gott</url>
<tags>
<tag count="1">lebens</tag>
<tag count="1">sinn</tag>
<tag count="1">konzept</tag>
<tag count="1">transzendente</tag>
<tag count="1">metaphysisches</tag>
<tag count="1">glaubt</tag>
<tag count="1">oberste</tag>
<tag count="1">glaubensgemeinschaft</tag>
<tag count="1">angst</tag>
<tag count="1">tod</tag>
</tags>
</topic>
</result>
Rückgabe (JSON):
http://twick.it/interfaces/api/random_topic.json
{
"query" : "type=json",
"topics" : [
{
"id" : "916",
"title" : "Vollmond",
"url" : "http://twick.it/de/Vollmond",
"tags" : [
{
"tag" : "erscheint",
"count" : "1"
},
{
"tag" : "beleuchtet",
"count" : "1"
},
{
"tag" : "voll",
"count" : "1"
},
{
"tag" : "steht",
"count" : "1"
},
{
"tag" : "erde",
"count" : "1"
},
{
"tag" : "mondphase",
"count" : "1"
},
{
"tag" : "mond",
"count" : "1"
},
{
"tag" : "sonne",
"count" : "1"
},
{
"tag" : "dadurch",
"count" : "1"
}
]
}
]
}


Suchen
2D
