tikapi 3.1.41__tar.gz → 3.1.60__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tikapi-3.1.41/tikapi.egg-info → tikapi-3.1.60}/PKG-INFO +1 -1
- {tikapi-3.1.41 → tikapi-3.1.60}/setup.py +1 -1
- {tikapi-3.1.41 → tikapi-3.1.60}/tikapi/api.py +28 -4
- {tikapi-3.1.41 → tikapi-3.1.60/tikapi.egg-info}/PKG-INFO +1 -1
- {tikapi-3.1.41 → tikapi-3.1.60}/MANIFEST.in +0 -0
- {tikapi-3.1.41 → tikapi-3.1.60}/README.md +0 -0
- {tikapi-3.1.41 → tikapi-3.1.60}/setup.cfg +0 -0
- {tikapi-3.1.41 → tikapi-3.1.60}/tikapi/__init__.py +0 -0
- {tikapi-3.1.41 → tikapi-3.1.60}/tikapi.egg-info/SOURCES.txt +0 -0
- {tikapi-3.1.41 → tikapi-3.1.60}/tikapi.egg-info/dependency_links.txt +0 -0
- {tikapi-3.1.41 → tikapi-3.1.60}/tikapi.egg-info/not-zip-safe +0 -0
- {tikapi-3.1.41 → tikapi-3.1.60}/tikapi.egg-info/requires.txt +0 -0
- {tikapi-3.1.41 → tikapi-3.1.60}/tikapi.egg-info/top_level.txt +0 -0
|
@@ -510,7 +510,7 @@ def Rests(options: dict):
|
|
|
510
510
|
Get video information
|
|
511
511
|
'''
|
|
512
512
|
|
|
513
|
-
return wrap({"path":"/public/video","help":"Get video information","comment":"<a target=\"_blank\" href='https://helpdesk.tikapi.io/portal/en/kb/articles/how-to-download-tiktok-videos'>\nLearn more about downloading videos</a>\n\n","params":{"id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"
|
|
513
|
+
return wrap({"path":"/public/video","help":"Get video information","comment":"<a target=\"_blank\" href='https://helpdesk.tikapi.io/portal/en/kb/articles/how-to-download-tiktok-videos'>\nLearn more about downloading videos</a>\n\n","params":{"id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"7003402629929913605"}},"$other":{"openapi":{"hideParams":["session_id"]}},"method":"GET"}, cls.__get_options__(), "Public.video")(id=id, country=country, session_id=session_id, **otherParams)
|
|
514
514
|
|
|
515
515
|
@classmethod
|
|
516
516
|
def videoV2(cls, id: str = None, country: str = None, session_id: int = None, **otherParams) -> APIResponse:
|
|
@@ -568,6 +568,22 @@ def Rests(options: dict):
|
|
|
568
568
|
count = None if count is cls.hashtag.__defaults__[2] else count
|
|
569
569
|
return wrap({"help":"Get hashtag posts","comment":"Your first request should be using the hashtag `name` parameter, then the following requests should be using the `id` parameter which you have stored from the first request (returned in response `challengeInfo > challenge > id`). <br/><a target=\"_blank\" href='https://helpdesk.tikapi.io/portal/en/kb/articles/how-to-download-tiktok-videos'>\nLearn more about downloading videos</a>\n\n","path":"/public/hashtag","params":{"id":{"validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","type":"string","help":"The hashtag ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","example":"4655293"},"name":{"type":"string","help":"The hashtag name"},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"cursor":{"help":"The starting point of the items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"string","validate":"^[0-9]+$"}},"$other":{"openapi":{"hideParams":["session_id"]}},"method":"GET"}, cls.__get_options__(), "Public.hashtag")(id=id, name=name, count=count, cursor=cursor, country=country, session_id=session_id, **otherParams)
|
|
570
570
|
|
|
571
|
+
@classmethod
|
|
572
|
+
def commentsList(cls, media_id: str = None, count: int = Default(30), cursor: int = None, country: str = None, session_id: int = None, **otherParams) -> APIResponse:
|
|
573
|
+
'''
|
|
574
|
+
Get a video comments list
|
|
575
|
+
'''
|
|
576
|
+
count = None if count is cls.commentsList.__defaults__[1] else count
|
|
577
|
+
return wrap({"help":"Get a video comments list","path":"/public/comment/list","params":{"media_id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"7109178205151464746"},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"cursor":{"help":"The starting point of the items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"number","validate":"^[0-9]+$"}},"$other":{"openapi":{}},"method":"GET"}, cls.__get_options__(), "Public.commentsList")(media_id=media_id, count=count, cursor=cursor, country=country, session_id=session_id, **otherParams)
|
|
578
|
+
|
|
579
|
+
@classmethod
|
|
580
|
+
def commentRepliesList(cls, media_id: str = None, comment_id: str = None, count: int = Default(30), cursor: int = None, country: str = None, session_id: int = None, **otherParams) -> APIResponse:
|
|
581
|
+
'''
|
|
582
|
+
Get a comment replies list
|
|
583
|
+
'''
|
|
584
|
+
count = None if count is cls.commentRepliesList.__defaults__[2] else count
|
|
585
|
+
return wrap({"help":"Get a comment replies list","path":"/public/comment/reply/list","params":{"media_id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"7109178205151464746"},"comment_id":{"validate":"^[0-9]+$","help":"The comment ID","type":"string","required":True,"example":"7109185042560680750"},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"cursor":{"help":"The starting point of the items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"number","validate":"^[0-9]+$"}},"$other":{"openapi":{}},"method":"GET"}, cls.__get_options__(), "Public.commentRepliesList")(media_id=media_id, comment_id=comment_id, count=count, cursor=cursor, country=country, session_id=session_id, **otherParams)
|
|
586
|
+
|
|
571
587
|
@classmethod
|
|
572
588
|
def music(cls, id: str = None, count: int = Default(30), cursor: str = None, country: str = None, session_id: int = None, **otherParams) -> APIResponse:
|
|
573
589
|
'''
|
|
@@ -636,7 +652,7 @@ def Rests(options: dict):
|
|
|
636
652
|
Get a video comments list
|
|
637
653
|
'''
|
|
638
654
|
count = None if count is cls.list.__defaults__[1] else count
|
|
639
|
-
return wrap({"help":"Get a video comments list","path":"/comment/list","params":{"media_id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"7109178205151464746"},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"cursor":{"help":"The starting point of the items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"number","validate":"^[0-9]+$"}},"$other":{"openapi":{}},"method":"GET"}, cls.__get_options__(), "UserPostsComments.list")(media_id=media_id, count=count, cursor=cursor, **otherParams)
|
|
655
|
+
return wrap({"help":"Get a video comments list","path":"/user/comment/list","params":{"media_id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"7109178205151464746"},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"cursor":{"help":"The starting point of the items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"number","validate":"^[0-9]+$"}},"$other":{"openapi":{}},"method":"GET"}, cls.__get_options__(), "UserPostsComments.list")(media_id=media_id, count=count, cursor=cursor, **otherParams)
|
|
640
656
|
|
|
641
657
|
@classmethod
|
|
642
658
|
def replies(cls, media_id: str = None, comment_id: str = None, count: int = Default(30), cursor: int = None, **otherParams) -> APIResponse:
|
|
@@ -644,7 +660,7 @@ def Rests(options: dict):
|
|
|
644
660
|
Get a comment reply list
|
|
645
661
|
'''
|
|
646
662
|
count = None if count is cls.replies.__defaults__[2] else count
|
|
647
|
-
return wrap({"help":"Get a comment reply list","path":"/comment/reply/list","params":{"media_id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"7109178205151464746"},"comment_id":{"validate":"^[0-9]+$","help":"The comment ID","type":"string","required":True,"example":"7109185042560680750"},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"cursor":{"help":"The starting point of the items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"number","validate":"^[0-9]+$"}},"$other":{"openapi":{}},"method":"GET"}, cls.__get_options__(), "UserPostsComments.replies")(media_id=media_id, comment_id=comment_id, count=count, cursor=cursor, **otherParams)
|
|
663
|
+
return wrap({"help":"Get a comment reply list","path":"/user/comment/reply/list","params":{"media_id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"7109178205151464746"},"comment_id":{"validate":"^[0-9]+$","help":"The comment ID","type":"string","required":True,"example":"7109185042560680750"},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"cursor":{"help":"The starting point of the items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"number","validate":"^[0-9]+$"}},"$other":{"openapi":{}},"method":"GET"}, cls.__get_options__(), "UserPostsComments.replies")(media_id=media_id, comment_id=comment_id, count=count, cursor=cursor, **otherParams)
|
|
648
664
|
|
|
649
665
|
@classmethod
|
|
650
666
|
def post(cls, media_id: str = None, text: str = None, reply_comment_id: str = None, has_tags: bool = None, **otherParams) -> APIResponse:
|
|
@@ -764,13 +780,21 @@ def Rests(options: dict):
|
|
|
764
780
|
count = None if count is cls.explore.__defaults__[0] else count
|
|
765
781
|
return wrap({"help":"Get trending posts","comment":"Get current user recommended posts from the *For You* section.","path":"/user/explore","params":{"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"}},"$other":{"openapi":{"fields":{"security":[{"apiKey":[],"accountKey":["explore"]}]}}},"method":"GET"}, cls.__get_options__(), "UserPosts.explore")(count=count, **otherParams)
|
|
766
782
|
|
|
783
|
+
@classmethod
|
|
784
|
+
def search(cls, category: str = None, query: str = None, nextCursor: str = None, **otherParams) -> APIResponse:
|
|
785
|
+
'''
|
|
786
|
+
Search
|
|
787
|
+
'''
|
|
788
|
+
|
|
789
|
+
return wrap({"help":"Search","comment":"Search anything, users, videos, or get keyword autocomplete suggestions. Using this instead of the Public Search endpoint will give you more personalized and consistent results. <br/><a target=\"_blank\" href='https://helpdesk.tikapi.io/portal/en/kb/articles/how-to-download-tiktok-videos'>\nLearn more about downloading videos</a>\n\n","path":"/user/search/{category}","params":{"category":{"help":"The search category","in":["general","users","videos","autocomplete"],"required":True,"type":"string","example":"general","location":"path"},"query":{"type":"string","example":"lilyachty","required":True,"help":"The search keyword"},"nextCursor":{"type":"string","help":"A iteration parameter returned in each response, should be included in the next requests to get the next items."}},"$other":{"openapi":{"fields":{"security":[{"apiKey":[],"accountKey":["explore"]}]}}},"method":"GET"}, cls.__get_options__(), "UserPosts.search")(category=category, query=query, nextCursor=nextCursor, **otherParams)
|
|
790
|
+
|
|
767
791
|
@classmethod
|
|
768
792
|
def video(cls, id: str = None, **otherParams) -> APIResponse:
|
|
769
793
|
'''
|
|
770
794
|
Get video information
|
|
771
795
|
'''
|
|
772
796
|
|
|
773
|
-
return wrap({"help":"Get video information","comment":"<a target=\"_blank\" href='https://helpdesk.tikapi.io/portal/en/kb/articles/how-to-download-tiktok-videos'>\nLearn more about downloading videos</a>\n\n","path":"/user/video","params":{"id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"
|
|
797
|
+
return wrap({"help":"Get video information","comment":"<a target=\"_blank\" href='https://helpdesk.tikapi.io/portal/en/kb/articles/how-to-download-tiktok-videos'>\nLearn more about downloading videos</a>\n\n","path":"/user/video","params":{"id":{"help":"The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)","type":"string","validate":"^([0-9]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","required":True,"example":"7003402629929913605"}},"$other":{"openapi":{"fields":{"security":[{"apiKey":[],"accountKey":["explore"]}]}}},"method":"GET"}, cls.__get_options__(), "UserPosts.video")(id=id, **otherParams)
|
|
774
798
|
|
|
775
799
|
@classmethod
|
|
776
800
|
def like(cls, media_id: str = None, **otherParams) -> APIResponse:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|