@@ -312,6 +312,19 @@ def get_media_likes(self, shortcode, count=12, max_id=None):
312312 payload ["max_id" ] = max_id
313313 return self .request ("instagram/media/get_likes" , payload )
314314
315+ def get_media_likes_by_id (self , media_id ):
316+ """
317+ Retrieve up to 1000 media likes by media id.
318+
319+ Args:
320+ media_id (int): Media id
321+
322+ Pagination is not supported for this endpoint.
323+
324+ For more information, see documentation: https://docs.rocketapi.io/api/instagram/media/get_likes_by_id
325+ """
326+ return self .request ("instagram/media/get_likes_by_id" , {"id" : media_id })
327+
315328 def get_media_comments (self , media_id , can_support_threading = True , min_id = None ):
316329 """
317330 Retrieve media comments by media id.
@@ -521,13 +534,21 @@ def get_audio_media_by_canonical_id(self, audio_canonical_id, max_id=None):
521534 payload ["max_id" ] = max_id
522535 return self .request ("instagram/audio/get_media_by_canonical_id" , payload )
523536
537+ def get_live_info (self , broadcast_id ):
538+ """
539+ Retrieve live information by broadcast id.
540+
541+ Args:
542+ broadcast_id (int): Broadcast id
543+
544+ For more information, see documentation: https://docs.rocketapi.io/api/instagram/live/get_info
545+ """
546+ return self .request ("instagram/live/get_info" , {"id" : broadcast_id })
547+
524548 def get_user_about (self , user_id ):
525549 """
526550 Obtain user details from «About this Account» section.
527551
528- ⭐️ This method is exclusively available to our Enterprise+ clients.
529- If you wish to enable it for your account, please get in touch with our support team: https://t.me/rocketapi
530-
531552 Args:
532553 user_id (int): User id
533554
0 commit comments