I am getting any Instagram user public post reel media data (like count, comment count, play count, and others) using the Rapid API (instagram-scraper-api), but my requirement is to fetch reel media view count also. I am getting media play_count, but play_count is not the same as view count, as view count is calculated on unique user views or the number of unique users who watch the reel media.
i am using below api and in json response not found any view_count field but getting play_count field
API: $response = $client->request(‘GET’, ‘https://instagram-scraper-api2.p.rapidapi.com/v1.2/reels?username_or_id_or_url=’.$username,
if i use this api with lower version as below then found a view_count field in response but its value is always zero(0)
API:https://instagram-scraper-api2.p.rapidapi.com/v1.1/reels?username_or_id_or_url=shuvam0707$username
RESPONSE:
{
"accessibility_caption": null,
"caption_hashtags": [
"#instareels",
"#instagram",
"#reels",
"#trendingreels",
"#90s",
"#bollywoodsongs",
"#tuhaimerikiran",
"#love",
"#lovesongs",
"#goodmorning",
"#morningreels"
],
"caption_mentions": [],
"caption_text": "#instareels #instagram #reels #trendingreels #90s #bollywoodsongs #tuhaimerikiran #love #lovesongs #goodmorning #morningreels",
"clips_metadata": {
"achievements_info": {
"num_earned_achievements": null,
"show_achievements": false
},
"additional_audio_info": {
"additional_audio_username": null,
"audio_reattribution_info": {
"should_allow_restore": false
}
},
"asset_recommendation_info": null,
"audio_canonical_id": "18154673320064305",
"audio_ranking_info": {
"best_audio_cluster_id": "668526137561623"
},
"audio_type": "licensed_music",
"branded_content_tag_info": {
"can_add_tag": false
},
"breaking_content_info": null,
"breaking_creator_info": null,
"challenge_info": null,
"clips_creation_entry_point": "clips",
"content_appreciation_info": {
"enabled": false,
"entry_point_container": null
},
"contextual_highlight_info": null,
"cutout_sticker_info": [],
"disable_use_in_clips_client_cache": false,
"external_media_info": null,
"featured_label": null,
"is_fan_club_promo_video": false,
"is_public_chat_welcome_video": false,
"is_shared_to_fb": true,
"mashup_info": {
"can_toggle_mashups_allowed": false,
"formatted_mashups_count": null,
"has_been_mashed_up": false,
"has_nonmimicable_additional_audio": false,
"is_creator_requesting_mashup": false,
"is_light_weight_check": true,
"is_pivot_page_available": false,
"mashup_type": null,
"mashups_allowed": true,
"non_privacy_filtered_mashups_media_count": null,
"original_media": null,
"privacy_filtered_mashups_media_count": null
},
"merchandising_pill_info": null,
"music_info": {
"music_asset_info": {
"allows_saving": true,
"artist_id": "520061176506686",
"audio_asset_id": "1481238758703642",
"audio_id": "2431229707191929",
"cover_artwork_thumbnail_uri": "",
"cover_artwork_uri": "",
"dark_message": null,
"display_artist": "Udit Narayan",
"duration_in_ms": 279909,
"fast_start_progressive_download_url": "",
"has_lyrics": false,
"highlight_start_times_in_ms": [
123000,
204500,
28000
],
"id": "1481238758703642",
"ig_username": "uditnarayanmusic",
"is_eligible_for_audio_effects": false,
"is_explicit": false,
"progressive_download_url": "",
"reactive_audio_download_url": null,
"sanitized_title": null,
"subtitle": "",
"title": "Jaadu Teri Nazar",
"web_30s_preview_download_url": null
},
"music_consumption_info": {
"allow_media_creation_with_music": true,
"audio_asset_start_time_in_ms": 122000,
"audio_filter_infos": [],
"audio_muting_info": {
"allow_audio_editing": false,
"mute_audio": false,
"mute_reason_str": "",
"show_muted_audio_toast": false
},
"contains_lyrics": null,
"derived_content_id": null,
"display_labels": null,
"formatted_clips_media_count": null,
"ig_artist": {
"full_name": "Udit Narayan Jha",
"id": "38107033335",
"is_private": false,
"is_verified": true,
"profile_pic_id": "2343588798388016850_38107033335",
"profile_pic_url": "https://scontent-dfw5-2.cdninstagram.com/v/t51.2885-19/105943750_581605315833195_7888784149505563289_n.jpg?stp=dst-jpg_e0_s150x150&_nc_ht=scontent-dfw5-2.cdninstagram.com&_nc_cat=1&_nc_ohc=cV9pyBmnOA4Q7kNvgGWh7Rd&edm=ACHbZRIBAAAA&ccb=7-5&oh=00_AYCVOIZYU3z_OSdkyOKTNs_qcfVB23h6EkjrRv3v-wMXxg&oe=667064E0&_nc_sid=c024bc",
"username": "uditnarayanmusic"
},
"is_bookmarked": false,
"is_trending_in_clips": false,
"overlap_duration_in_ms": 90000,
"placeholder_profile_pic_url": "https://scontent-dfw5-2.cdninstagram.com/v/t51.12442-15/43985629_311105916145351_58064759811405776_n.jpg?_nc_ht=scontent-dfw5-2.cdninstagram.com&_nc_cat=107&_nc_ohc=j8_bmdSGAmgQ7kNvgHeMmaW&edm=ACHbZRIAAAAA&ccb=7-5&oh=00_AYBHycv_3L9zz8OjQyosDZOZpQSIhbnAu-XhmEHeETTwIA&oe=667088FD&_nc_sid=c024bc",
"should_allow_music_editing": false,
"should_mute_audio": false,
"should_mute_audio_reason": "",
"should_mute_audio_reason_type": null,
"trend_rank": null
}
},
"nux_info": null,
"original_sound_info": null,
"originality_info": null,
"professional_clips_upsell_type": 0,
"reels_on_the_rise_info": null,
"reusable_text_attribute_string": null,
"reusable_text_info": null,
"shopping_info": null,
"show_achievements": false,
"show_tips": null,
"template_info": null,
"viewer_interaction_settings": null
},
"coauthor_producers": [],
"code": "C7f-mXfBJJk",
"comment_count": 3,
"comments_disabled": false,
"has_liked": false,
"id": "3377693560991421028_1646703682",
"image_versions": [
{
"height": 1334,
"url": "",
"width": 750
}
],
"is_paid_partnership": false,
"is_pinned": false,
"is_video": true,
"like_and_view_counts_disabled": false,
"like_count": 16,
"location": null,
"media_name": "reel",
"media_type": 2,
"play_count": 127,
"product_type": "clips",
"resources": [],
"sponsor_tags": [],
"tagged_users": [
{
"user": {
"full_name": "Sunetra Chakraborty",
"is_private": false,
"is_verified": false,
"profile_pic_url": "",
"profile_pic_url_hd": null,
"username": "scsunnii1"
},
"x": 0.0,
"y": 0.0
}
],
"taken_at": "2024-05-28T05:04:06Z",
"taken_at_ts": 1716872646,
"thumbnail_url": "",
"title": "",
"user": {
"full_name": "xxxxx",
"id": 1646703682,
"is_private": false,
"is_verified": false,
"profile_pic_url": "",
"profile_pic_url_hd": null,
"username": "shuvam0707"
},
"video_duration": 37.685,
"video_url": "https://scontent-dfw5-1.cdninstagram.com/o1/v/t16/f1/m82/5047A6E190252DF2BDFF131A432C2099_video_dashinit.mp4?efg=eyJ4&oh=00_AYBAYAiB2cw4vKj83m1_UykuxpOifef9x6jBOl4LKD28ug&oe=666E6AA2&_nc_sid=c024bc",
"video_versions": [
{
"height": 1280,
"id": "302447516253709v",
"type": 101,
"url": "",
"width": 720
},
{
"height": 960,
"id": "393429547031151v",
"type": 102,
"url": "",
"width": 540
},
{
"height": 960,
"id": "393429547031151v",
"type": 103,
"url": "https://scontent-dfw5-1.cdninstagram.com/o1/v/t16/f2/m69/An8yUt9OmxeHgqA9CPTnvW-LJsttsIJX3M2zBBr-5N0WJAgK3-nxIcL-M4B-l8wCfo_d_ZlUp_CcOF5fRB7otuvJ.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6InZ0c192b2RfdXJsZ2VuLmNsaXBzLmMyLjU0MC5iYXNlbGluZSJ9&_nc_ht=scontent-dfw5-1.cdninstagram.com&_nc_cat=110&vs=393429547031151_4245240809&_nc_vs=c",
"width": 540
}
],
"view_count": 0
}