def user_pinned_medias(self, user_id) -> List[Media]:
        """
        Get a pinned medias

        Parameters
        ----------
        user_id: str

        Returns
        -------
        List[Media]
            A list of objects of Media
        """
        default_nav = self.base_headers["X-IG-Nav-Chain"]
        self.base_headers[
            "X-IG-Nav-Chain"
        ] = "MainFeedFragment:feed_timeline:12:main_home::,UserDetailFragment:profile:13:button::"
        medias = self.private_request(
            f"feed/user/{user_id}/",
            params={
                "exclude_comment": "true",
                "only_fetch_first_carousel_media": "false",
            },
        )
        pinned_medias = []
        for media in medias["items"]:
            if media.get("timeline_pinned_user_ids") is not None:
                pinned_medias.append(extract_media_v1(media))
        self.base_headers["X-IG-Nav-Chain"] = default_nav
        return pinned_medias

        Get a pinned medias

        Parameters
        ----------
        user_id: str

        Returns
        -------
        List[Media]
            A list of objects of Media
        
instagrapi/mixins/media.py