API referenceInstagram
Instagram user embed
The HTML embed snippet for a profile widget, plus the account summary and recent posts that ride along in the same response.
The HTML embed snippet for a profile widget, plus the account summary and recent posts that ride along in the same response.
Instagram publishes a post's view count only for video. Photo and carousel posts return null rather than zero, because zero would be a claim we cannot support.
Share and save counts are not public on Instagram, so they are not returned.
Authorization
ApiKeyAuth X-API-Key<token>
Your API key. Sent on every request.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/scrapers/instagram-user-embed-v4" \ -H "Content-Type: application/json" \ -d '{ "handle": "nasa" }'{ "request_id": "req_8f2c1d94e7b0", "success": true, "status": { "code": "OK", "message": "Scrape completed.", "retryable": false }, "data": { "html": "<!DOCTYPE html>\n<html lang=\"en\" id=\"facebook\" class=\"no_js\">\n<head><meta charset=\"utf-8\" /><meta name=\"referrer\" content=\"default\" id=\"meta_referrer\" /><script nonce=\"eSa8IXmp\">function envFlush(e){function t(t){for(var n in e)t[n]=e[n]}window.requireLazy?window.requireLazy([\"Env\"],t):(window.Env=window.Env||{},t(windo… (+256084 chars)", "profile": { "follower_count": 104411499, "full_name": "NASA", "has_public_story": false, "is_verified": true, "media_count": 4888, "profile_pic_url": "https://scontent-atl3-3.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s100x100_tt6&_nc_cat=1&ccb=7-5&_nc_sid=bf7eb4&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=CAGgXUfT4p0Q7kNvwFRJ-Uc&_nc_oc=Adpltvv47Sr4ag0qdklaiQz9hPjZ3Llv7rMGqgD1Xxx-RkLxhmGgiM… (+141 chars)", "pronouns": [], "url": "https://www.instagram.com/nasa/", "user_id": "528817151", "username": "nasa" }, "recent_posts": [ { "__typename": "GraphImage", "accessibility_caption": null, "caption": "Next door to a black hole\n\nAt the center of the Milky Way lurks a black hole as massive as four million Suns. It’s called Sagittarius A*, or Sgr A* for short.\n\nOur @NASAWebb telescope recently took a close look into our galaxy’s core—in particular, a star named IRS 3 that’s only half a light-year from Sgr A*. You can j… (+242 chars)", "clips_music_attribution_info": null, "coauthor_producers": [], "comment_count": 914, "comments": [], "comments_disabled": null, "dimensions": { "height": 785, "width": 1080 }, "display_url": "https://scontent-atl3-3.cdninstagram.com/v/t51.82787-15/778928620_18639789742049152_2033997166523320168_n.jpg?stp=dst-jpg_e35_s1080x1080_sh2.08_tt6&_nc_cat=1&ig_cache_key=Mzk2ODgyNDgyNzE1MjA5NzY4Mg%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuNDA5Ni5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc… (+258 chars)", "has_audio": null, "id": "3968824827152097682", "is_ad": null, "is_affiliate": false, "is_paid_partnership": false, "is_video": false, "like_and_view_counts_disabled": false, "like_count": null, "location": null, "owner": { "edge_followed_by": { "count": 104411499 }, "edge_owner_to_timeline_media": { "count": 4888 }, "edge_owner_to_timeline_video_media": { "count": 529 }, "followed_by_viewer": false, "has_public_story": false, "id": "528817151", "is_private": false, "is_unpublished": false, "is_verified": true, "profile_pic_url": "https://scontent-atl3-3.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s100x100_tt6&_nc_cat=1&ccb=7-5&_nc_sid=bf7eb4&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=CAGgXUfT4p0Q7kNvwFRJ-Uc&_nc_oc=Adpltvv47Sr4ag0qdklaiQz9hPjZ3Llv7rMGqgD1Xxx-RkLxhmGgiM… (+141 chars)", "username": "nasa" }, "product_type": null, "shortcode": "DcUGScOJuGS", "tagged_users": [], "taken_at": 1787340874, "thumbnail_src": null, "url": "https://www.instagram.com/p/DcUGScOJuGS/", "video_duration": null, "video_play_count": null, "video_url": null, "video_view_count": null }, { "__typename": "GraphImage", "accessibility_caption": null, "caption": "A \"desert\" made by water 🌊\n\nAt first glance, Lençóis Maranhenses National Park in northeastern Brazil looks like a desert, but it's definitely not: The park gets about 125 centimeters of rain per year. That's slightly more than Seattle and double what falls in London!\n\nWhat you see here are rows of sparkling white quar… (+492 chars)", "clips_music_attribution_info": null, "coauthor_producers": [], "comment_count": 11747, "comments": [], "comments_disabled": null, "dimensions": { "height": 1080, "width": 1080 }, "display_url": "https://scontent-atl3-3.cdninstagram.com/v/t51.82787-15/778566246_18639462040049152_2459976484453072933_n.jpg?stp=dst-jpg_e35_s1080x1080_sh2.08_tt6&_nc_cat=1&ig_cache_key=Mzk2ODA1MDgyMjIzNjQyOTI0OA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuMTQ0MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc… (+258 chars)", "has_audio": null, "id": "3968050822236429248", "is_ad": null, "is_affiliate": false, "is_paid_partnership": false, "is_video": false, "like_and_view_counts_disabled": false, "like_count": null, "location": null, "owner": { "edge_followed_by": { "count": 104411499 }, "edge_owner_to_timeline_media": { "count": 4888 }, "edge_owner_to_timeline_video_media": { "count": 529 }, "followed_by_viewer": false, "has_public_story": false, "id": "528817151", "is_private": false, "is_unpublished": false, "is_verified": true, "profile_pic_url": "https://scontent-atl3-3.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s100x100_tt6&_nc_cat=1&ccb=7-5&_nc_sid=bf7eb4&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=CAGgXUfT4p0Q7kNvwFRJ-Uc&_nc_oc=Adpltvv47Sr4ag0qdklaiQz9hPjZ3Llv7rMGqgD1Xxx-RkLxhmGgiM… (+141 chars)", "username": "nasa" }, "product_type": null, "shortcode": "DcRWTL-GVvA", "tagged_users": [], "taken_at": 1787248550, "thumbnail_src": null, "url": "https://www.instagram.com/p/DcRWTL-GVvA/", "video_duration": null, "video_play_count": null, "video_url": null, "video_view_count": null }, "… 4 more items in the full response" ], "success": true }, "error": null, "meta": { "client_id": "client_abc123", "scraper": "instagram-user-embed-v4", "billable": true, "duration_ms": 2881 }}