Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 2.22 KB

File metadata and controls

48 lines (39 loc) · 2.22 KB

InstagramPost

Properties

Name Type Description Notes
id str Instagram URL slug (`shortcode`). Path parameter for /instagram/posts/{id}/... endpoints.
shortcode str
media_id str
media_type float Source media_type: 1 = image, 2 = video, 8 = carousel
product_type str Source product_type: 'feed' (image/photo), 'clips' (reel), 'carousel_container', 'igtv', etc.
taken_at float Unix-seconds timestamp.
caption str
accessibility_caption str
image_url str Largest available preview image (cover, for video/carousel).
video_url str Highest-quality video URL when applicable; empty string otherwise.
like_count float
comment_count float
play_count float Video plays. 0 for non-video media.
view_count float Reel/video views (separate from plays on IG side). 0 when N/A.
is_paid_partnership bool
has_audio bool
carousel_count float Number of carousel items, or 0 if not a carousel.
carousel List[InstagramCarouselItem] Carousel items when media_type === 8; empty array otherwise.
user InstagramUserPreview
location InstagramLocationLite

Example

from unifapi.models.instagram_post import InstagramPost

# TODO update the JSON string below
json = "{}"
# create an instance of InstagramPost from a JSON string
instagram_post_instance = InstagramPost.from_json(json)
# print the JSON string representation of the object
print(InstagramPost.to_json())

# convert the object into a dict
instagram_post_dict = instagram_post_instance.to_dict()
# create an instance of InstagramPost from a dict
instagram_post_from_dict = InstagramPost.from_dict(instagram_post_dict)

[Back to Model list] [Back to API list] [Back to README]