Übersicht
Die Ziss API nutzt die offizielle TikTok API, um Video-Statistiken, einschließlich Aufrufe, Likes, Kommentare, Titel, Beschreibung, Thumbnails und das Veröffentlichungsdatum abzurufen.
Authentifizierung
Um auf die TikTok API zuzugreifen, ist eine OAuth 2.0-Authentifizierung erforderlich. Nutzer müssen sich mit ihrem TikTok-Konto authentifizieren und Zugriff auf ihre Daten gewähren.
Authorization: Bearer YOUR_ACCESS_TOKEN
Endpunkte
1. Abrufen aller hochgeladenen Videos
GET https://open.tiktokapis.com/v2/video/list/
Antwort:
{
"data": [
{
"video_id": "12345",
"title": "Mein erstes TikTok",
"description": "Lustiges Video über Katzen",
"thumbnail_url": "https://p16-sign-sg.tiktokcdn.com/video_thumbnail.jpg",
"video_url": "https://www.tiktok.com/@user/video/12345",
"create_time": "2024-02-10T14:30:00Z"
},
{
"video_id": "67890",
"title": "Tanzchallenge",
"description": "Ich versuche die neueste TikTok-Challenge!",
"thumbnail_url": "https://p16-sign-sg.tiktokcdn.com/video_thumbnail2.jpg",
"video_url": "https://www.tiktok.com/@user/video/67890",
"create_time": "2024-02-09T10:15:00Z"
}
]
}
2. Abrufen der Statistiken eines Videos
GET https://open.tiktokapis.com/v2/video/stats/?video_id={video_id}
Antwort:
{
"data": {
"video_id": "12345",
"title": "Mein erstes TikTok",
"description": "Lustiges Video über Katzen",
"thumbnail_url": "https://p16-sign-sg.tiktokcdn.com/video_thumbnail.jpg",
"video_url": "https://www.tiktok.com/@user/video/12345",
"views": 10000,
"likes": 500,
"comments": 120,
"shares": 50,
"create_time": "2024-02-10T14:30:00Z"
}
}
3. Abrufen der Gesamtstatistik
GET https://open.tiktokapis.com/v2/analytics/overview/
Antwort:
{
"data": {
"total_views": 500000,
"total_likes": 25000,
"total_posts": 120,
"total_comments": 8000,
"total_shares": 2000
}
}