Drachenchronik API
Du kannst Daten aus der Drachenchronik über unsere JSON API abfragen und die Daten in deiner App benutzen. Solltest du Fragen oder Anregungen haben kannst du dich unter [email protected] bei uns melden.
Allgemeine Informationen
Request
Alle Requests sollten über HTTP/1.1 GET erfolgen. Du musst SSL/HTTPS verwenden.
https://drachenchronik.com/api/v1/{type}?{param1}={value1}&{param2}={value2}
Response
Content-type: application/json
Name | Typ | Beschreibung | Optional |
---|---|---|---|
status | Integer | Status Code | Nein |
items | Integer | Anzahl der zurückgegebenen Items | Ja |
total_items | Integer | Anzahl der betroffenen Items in der Datenbank | Ja |
next_page | String | URL zur nächsten Seite, wird nur zurück gegeben wenn es eine nächste Seite gibt. | Ja |
result | Array | Zurückgegebene Einträge | Nein |
Status Codes
- 200
- Alles OK
- 400
- Benötigter Parameter fehlt
- 404
- Eintrag nicht gefunden
Datum
Zeigt Informationen zu einem bestimmten Tag an.
URL
https://drachenchronik.com/api/v1/date
Parameter
Name | Beschreibung | Beispiel | Benötigt |
---|---|---|---|
d | Tag als Nummer ohne führende Null. | 3 | Ja |
m | Monat als Nummer ohne führende Null. | 5 | Ja |
y | Jahr | 2018 | Ja |
Response
{ "status":200, "result":{ "weather":{ "temp_min":"-7", "temp_max":"2", "wind_speed":"2.6", "wind_deg":"270", "clouds":"90", "icon":"snow" }, "younow":{ "level":"87", "total_subscribers":"111" }, "youtube":{ "views":"6088219", "total_subscribers":"82018" }, "pornhub":{ "views":"40866", "total_subscribers":"843" }, "event":{ "title":"Überschrift zum Tag", "short_description":"Kurze Beschreibung zum Tag", "long_description":"Lange Beschreibung zum Tag, kann HTML entalten.", "sources":"", "tags":["Calidri","Boxkampf","Hans Entertainment","Lachflat"] }, "videos":[ { "id":"XupI6oD36CY", "title":"LP Darksiders 3 Blind Part 3", "type":"102", "tags":"" }, { "id":"bugi20IaLkw", "title":"LP Darksiders 3 Blind Part 4", "type":"102", "tags":"" } ], "streams":[ { "start_date":"1548344121", "end_date":"1548345789", "length":"1683", "total_views":"994", "bars_free":"1815", "bars_paid":"271" }, { "start_date":"1548346087", "end_date":"1548347080", "length":"1008", "total_views":"683", "bars_free":"660", "bars_paid":"125" } ] } }
Events
Listet alle Ereignisse auf.
https://drachenchronik.com/api/v1/event
Parameter
Name | Beschreibung | Beispiel | Benötigt |
---|---|---|---|
l | Limit (default: 100) | 10 | Nein |
p | Seite | 3 | Nein |
Response
{ "status":200, "items":2, "total_items":"148", "next_page":"https:\/\/drachenchronik.gq\/api\/v1\/event?p=2&l=2", "result":[ { "title":"Letzter YN Stream - BLM Meltdown", "short_description":"Rainer schwitzt aus den Augen und ist sehr besiegt.", "tags":"Rundfunklizenz,Younow,artikel", "date": { "day":"1", "month":"2", "year":"2019", "link":"https:\/\/drachenchronik.gq\/date\/2019\/2\/1" } }, { "title":"Boxkampf abgesagt", "short_description":"Der Younow Streamer Lachflat sagt den Boxkampf ab.", "tags":"Boxkampf,Lachflat,Hans", "date": { "day":"31", "month":"1", "year":"2019", "link":"https:\/\/drachenchronik.gq\/date\/2019\/1\/31" } } ] }
Video
Listet alle Videos in unserer Datenbank auf.
URL
https://drachenchronik.com/api/v1/video
Parameter
Name | Beschreibung | Beispiel | Benötigt |
---|---|---|---|
t | Video Typ | 101 | Nein |
y | Jahr | 2018 | Nein |
l | Limit (default: 100) | 10 | Nein |
p | Seite | 3 | Nein |
Response
{ "status":200, "items":2, "total_items":"4443", "next_page":"https:\/\/drachenchronik.gq\/api\/v1\/video?p=2", "result":[ { "title":"LF Sheeps and Dogs n Wolf Part 1", "youtube_id":"lkPmSbG7lPY", "date": { "day":"25", "month":"1", "year":"2019", "link":"https:\/\/drachenchronik.gq\/date\/2019\/1\/25" }, "link":"https:\/\/drachenchronik.gq\/video\/watch\/lkPmSbG7lPY" }, { "title":"Lets Play Jurassic World Evolution Part 26", "youtube_id":"CZwIwzIibpE", "date": { "day":"25", "month":"1", "year":"2019", "link":"https:\/\/drachenchronik.gq\/date\/2019\/1\/25" }, "link":"https:\/\/drachenchronik.gq\/video\/watch\/CZwIwzIibpE" } ] }
Video Info
Zeigt Informationen zu einem bestimmten Video an.
URL
https://drachenchronik.com/api/v1/videoinfo
Parameter
Name | Beschreibung | Beispiel | Benötigt |
---|---|---|---|
id | Video ID | abc123def | Ja |
Response
{ "status":200, "result":[ { "id":"XupI6oD36CY", "title":"Video Titel3", "description":"Die Beschreibung des Videos", "type":"102", "tags":"", "date":{ "day":"24", "month":"1", "year":"2019", "link":"https:\/\/drachenchronik.gq\/date\/2019\/1\/24" }, "reuploads":[ { "id":"HbZtkHEvYso", "host":"openload" } ] } ] }
Shirts
Listet alle Shirts und ihre Grundinformationen aus unserer Datenbank auf.
URL
https://drachenchronik.com/api/v1/shirt
Parameter
Name | Beschreibung | Beispiel | Benötigt |
---|---|---|---|
l | Limit (default: 100) | 10 | Nein |
Response
{ "status":200, "items":2, "total_items":"34", "next_page":"https:\/\/drachenchronik.gq\/api\/v1\/shirt?p=2", "result":[ { "id":"2", "title":"Odin in Valhalla", "description":"Odin in Valhalla - Seit 20.6.2016 in Rainers Besitz", "last_date":"1548284400", "stretch":"7", "link":"https:\/\/drachenchronik.gq\/shirt\/view\/2" }, { "id":"36", "title":"Schwarze Kapuzenjacke", "description":"Schwarze Kapuzenjacke, Fangeschenk", "last_date":"1548198000", "stretch":"13", "link":"https:\/\/drachenchronik.gq\/shirt\/view\/36" } ] }
Shirt Info
Zeigt Informationen zu einem bestimten Shirt und listet alle Tage an denen das Shirt getragen wurde auf.
URL
https://drachenchronik.gq/api/v1/shirtinfo
Parameter
Name | Beschreibung | Beispiel | Benötigt |
---|---|---|---|
id | Shirt ID | 3 | Ja |
Response
{ "status":200, "result":[ { "id":"3", "title":"For Those About to Ragnarok", "description":"Das Shirt hat er von einem Fan geschenkt bekommen, in seinem Besitz seit Juli 2018.", "last_date":"1543014000", "stretch":"3", "popularity":"0.89092760059678", "dates":[ { "day":"24", "month":"11", "year":"2018", "stretch":"1", "link":"https:\/\/drachenchronik.gq\/date\/2018\/11\/24" }, { "day":"22", "month":"11", "year":"2018", "stretch":"3", "link":"https:\/\/drachenchronik.gq\/date\/2018\/11\/22" } ] } ] }
Video Typen
- 1
- Stream Zusammenfassung
- 2
- Kompletter Stream
- 3
- Sonstiges Video
- 4
- Besucher Video
- 5
- TS oder Discord Aufnahme
- 6
- Reupload Hauptkanal
- 7
- Reupload LP Kanal
- 8
Drachenlord Song
- 9
- Reupload Phönix Kanal
- 101
- Drachenlord Hauptkanal
- 102
- Drachenlord LP Kanal
- 103
- Drachenlord Phönix Kanal
- 104
- Drachenlord Pornhub