Instagram User Posts (V1, V2)

https://api.sandbase.ai/v1/api/instagram/v1/user-posts-v2

Returns a paginated list of media posts for a specified Instagram account. Filter by user ID with support for custom page limits and cursor-based navigation.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 2 optional
Production route

Try the model

Playground

Open playground
Input
150
Count per page, default 12 Range: 1 to 50.
Pagination cursor, omit for first request
Instagram user ID
OutputExample
Responseoutputs · 265.4 KB · 3,019 lines
[
  {
    "data": {
      "attempts": "23",
      "data": {
        "user": {
          "edge_owner_to_timeline_media": {
            "count": 8612,
            "edges": [
              {
                "node": {
                  "__typename": "GraphVideo",
                  "coauthor_producers": [],
                  "comments_disabled": false,
                  "dash_info": {
                    "is_dash_eligible": false,
                    "number_of_qualities": 0,
                    "video_dash_manifest": null
                  },
                  "dimensions": {
                    "height": 1920,
                    "width": 1080
                  },
                  "display_resources": [
                    {
                      "config_height": 1137,
                      "config_width": 640,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=dst-jpg_e35_p640x640_sh2.08_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQOovt4q8moRXuikyW21REQGqly0CKHHaX-Alxkl1CUiRg&oe=6ACAC2C5&_nc_sid=bc0c2c"
                    },
                    {
                      "config_height": 1333,
                      "config_width": 750,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=dst-jpg_e35_p750x750_sh2.08_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQNT13t3IPJdH_tSZPpbnjd0Y5DW56Z2n2fC3GswNOvrQQ&oe=6ACAC2C5&_nc_sid=bc0c2c"
                    },
                    {
                      "config_height": 1920,
                      "config_width": 1080,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=dst-jpg_e15_fr_p1080x1080_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQPTtUbe7KJ4_jiTPUf6jT4vdXfEujtqkk1l1QFyImIdRw&oe=6ACAC2C5&_nc_sid=bc0c2c"
                    }
                  ],
                  "display_url": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=dst-jpg_e15_fr_p1080x1080_tt6&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQPTtUbe7KJ4_jiTPUf6jT4vdXfEujtqkk1l1QFyImIdRw&oe=6ACAC2C5&_nc_sid=bc0c2c",
                  "edge_media_preview_like": {
                    "count": 642816,
                    "edges": []
                  },
                  "edge_media_to_caption": {
                    "edges": [
                      {
                        "node": {
                          "text": "DIY fish squishy 🐟⁣\n⁣\[email protected] made this squishy using stuff she already had at home like paper, tape and a balloon.⁣\n⁣\n“You don’t need a lot of specialized materials to be creative. I love showing people that even simple, everyday things can be turned into something fun and unique.”⁣\n⁣\nVideo by @yano4kaa.a⁣\n⁣\nMusic by @stuckinreboot"
                        }
                      }
                    ]
                  },
                  "edge_media_to_comment": {
                    "count": 18380,
                    "page_info": {
                      "end_cursor": "",
                      "has_next_page": true
                    }
                  },
                  "edge_media_to_sponsor_user": {
                    "edges": []
                  },
                  "edge_media_to_tagged_user": {
                    "edges": [
                      {
                        "node": {
                          "user": {
                            "followed_by_viewer": false,
                            "full_name": "yano4kaa",
                            "id": "7198319588",
                            "is_verified": false,
                            "profile_pic_url": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-19/546453487_18329709262239589_5179490010541835557_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=o2-FmtGO22YQ7kNvwGTdtMt&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQMvVEKF9Eb6fRvC-Hl92IznTQnlKQVdIKGT73Bw1ZwoGg&oe=6ACACC9A&_nc_sid=bc0c2c",
                            "username": "yano4kaa.a"
                          },
                          "x": 0,
                          "y": 0
                        }
                      }
                    ]
                  },
                  "fact_check_information": null,
                  "fact_check_overall_rating": null,
                  "gating_info": null,
                  "has_audio": true,
                  "has_upcoming_event": false,
                  "id": "3998430248382584993",
                  "is_affiliate": false,
                  "is_paid_partnership": false,
                  "is_video": true,
                  "like_and_view_counts_disabled": false,
                  "location": null,
                  "media_overlay_info": null,
                  "media_preview": "ABgq58LngDmums2JgXPVRtP4dP0xUY0uJectke//ANarMdusYwMke5zUvUaKmd3U4YnnP8h7D+dFWZIFYZ6H2oqLF3LJqlLMwJ2chcZHrV48VGQOabQkV47gPjPGf5+lFVG+WQem4fzopoGa5FRt6CpHqM0xFKePJ96KmloqS0f/2Q==",
                  "nft_asset_info": null,
                  "owner": {
                    "id": "25025320",
                    "username": "instagram"
                  },
                  "pinned_for_users": [],
                  "product_type": "clips",
                  "sensitivity_friction_info": null,
                  "sharing_friction_info": {
                    "bloks_app_url": null,
                    "should_have_sharing_friction": false
                  },
                  "shortcode": "Dd9RyBWBVih",
                  "taken_at_timestamp": 1790870385,
                  "thumbnail_resources": [
                    {
                      "config_height": 150,
                      "config_width": 150,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e15_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQNInG3h63NKJl_yejoE_8Zzd3sBPnLincA7SC112MgJ9A&oe=6ACAC2C5&_nc_sid=bc0c2c"
                    },
                    {
                      "config_height": 240,
                      "config_width": 240,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e15_s240x240_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQPyuGJvEul7I3mAiBPuiwP9mlRgaXkISG7rRuNaBdJ5kg&oe=6ACAC2C5&_nc_sid=bc0c2c"
                    },
                    {
                      "config_height": 320,
                      "config_width": 320,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e15_s320x320_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQOfZBnRyiJRFmMDaI1cqAOJiZ8LzCD6vU06ipXxlU6uHQ&oe=6ACAC2C5&_nc_sid=bc0c2c"
                    },
                    {
                      "config_height": 480,
                      "config_width": 480,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e15_s480x480_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQOvaRWTgsW2PCCIaNcSrj5WZpGUN8cr0G5H3Kw9YNi2bQ&oe=6ACAC2C5&_nc_sid=bc0c2c"
                    },
                    {
                      "config_height": 640,
                      "config_width": 640,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e35_s640x640_sh2.08_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQP1hQ-YyGzruX0xtD6ThZ5LJ1i4s5AtkOqE-IOpK5kvFA&oe=6ACAC2C5&_nc_sid=bc0c2c"
                    }
                  ],
                  "thumbnail_src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e35_s640x640_sh2.08_tt6&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=lNt9jIeoRLsQ7kNvwGR_ZbY&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQP1hQ-YyGzruX0xtD6ThZ5LJ1i4s5AtkOqE-IOpK5kvFA&oe=6ACAC2C5&_nc_sid=bc0c2c",
                  "tracking_token": "eyJ2ZXJzaW9uIjo1LCJwYXlsb2FkIjp7ImlzX2FuYWx5dGljc190cmFja2VkIjp0cnVlLCJ1dWlkIjoiNDNhZGE3OTliODhkNDU1NjhjNDc1MWNiMjAxMmJjNmQzOTk4NDMwMjQ4MzgyNTg0OTkzIn0sInNpZ25hdHVyZSI6IiJ9",
                  "video_url": "https://scontent-cdg4-1.cdninstagram.com/o1/v/t2/f2/m86/AQPSpP2QuNVX3DLKJj_iVnYb1-7O4TvN-6jnTrP6GilIPrOETMuukhTDS4u1TIP4bPclqcmkRt5xRhf_riabqCVglEj4OOOd7urAGH4.mp4?_nc_cat=1&_nc_sid=5e9851&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_ohc=25H5Td78lAgQ7kNvwFsXC7I&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MjU1MzkwMTk1ODM2NDg1MywiYXNzZXRfYWdlX2RheXMiOjQsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjoxNiwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=c75ac1ac96fb374e&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC8xNkRGOEU0RDYwODg0OTE3OEJERDEyREJBMUI5MDJCRV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0VGMkI3RUJGRkJDMzQyNjZCRjg4ODhCMEU1MzBFMzU4X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACbq-qew1LCJCRUCKAJDMywXQDC7peNT988YEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQPz810xJ1xBlSTqIhfpt2i8KPSBUSLqAmKDBJCByBDicg&oe=6AC6B0E4",
                  "video_view_count": 40743799,
                  "viewer_can_reshare": true,
                  "viewer_has_liked": false,
                  "viewer_has_saved": false,
                  "viewer_has_saved_to_collection": false,
                  "viewer_in_photo_of_you": false
                }
              },
              {
                "node": {
                  "__typename": "GraphVideo",
                  "coauthor_producers": [],
                  "comments_disabled": false,
                  "dash_info": {
                    "is_dash_eligible": false,
                    "number_of_qualities": 0,
                    "video_dash_manifest": null
                  },
                  "dimensions": {
                    "height": 1920,
                    "width": 1080
                  },
                  "display_resources": [
                    {
                      "config_height": 1137,
                      "config_width": 640,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=dst-jpg_e35_p640x640_sh2.08_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=uh7oFPO_zWsQ7kNvwFh9tFm&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQO8kCBLmH_Wa_F04hSmghPHA7Ue3LlN0XrvnWBnZeBj_g&oe=6ACAC4ED&_nc_sid=bc0c2c"
                    },
                    {
                      "config_height": 1333,
                      "config_width": 750,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=dst-jpg_e35_p750x750_sh2.08_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=uh7oFPO_zWsQ7kNvwFh9tFm&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQMCY1eavnidM_szQldC_BmIXd03RQx1HglgofmbBgO3gA&oe=6ACAC4ED&_nc_sid=bc0c2c"
                    },
                    {
                      "config_height": 1920,
                      "config_width": 1080,
                      "src": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=dst-jpg_e15_fr_p1080x1080_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=uh7oFPO_zWsQ7kNvwFh9tFm&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQMmX1EcCjzQmwYzpLUG6r686wka7C2Gp8JuyNneN4h_yA&oe=6ACAC4ED&_nc_sid=bc0c2c"
                    }
                  ],
                  "display_url": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=dst-jpg_e15_fr_p1080x1080_tt6&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=uh7oFPO_zWsQ7kNvwFh9tFm&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQMmX1EcCjzQmwYzpLUG6r686wka7C2Gp8JuyNneN4h_yA&oe=6ACAC4ED&_nc_sid=bc0c2c",
                  "edge_media_preview_like": {
                    "count": 785065,
                    "edges": []
                  },
                  "edge_media_to_caption": {
                    "edges": [
                      {
                        "node": {
                          "text": "Four dancers, one crew 🔥💃⁣\n⁣\n@hook_dancekorea mixes Korean traditional culture, K-pop and hip-hop into their own style.⁣\n⁣\n“We capture a lot of the free-spirited vibes that naturally emerge during our practice sessions. Since our members have diverse hobbies outside of dance, we bring a rich variety of styles into our work.”⁣\n⁣\nVideo by @hook_dancekorea⁣\n⁣\nMusic by @xuminghao_o⁣ and @vernonline\n⁣\nChoreography by @teamsame_official"
                        }
                      }
                    ]
                  },
                  "edge_media_to_comment": {
                    "count": 10492,
                    "page_info": {
                      "end_cursor": "",
                      "has_next_page": true
                    }
                  },
                  "edge_media_to_sponsor_user": {
                    "edges": []
                  },
                  "edge_media_to_tagged_user": {
                    "edges": [
                      {
                        "node": {
                          "user": {
                            "followed_by_viewer": false,
                            "full_name": "Hook 훅",
                            "id": "11335112233",
                            "is_verified": false,
                            "profile_pic_url": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-19/661386950_18178723819376234_3013774054084299232_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=102&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=6_MTQiN2zqUQ7kNvwEQHbU3&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQNCwGkwFjTZGqYyCwG4q1uIvznzjQ2_mQRD-bYKj0mVww&oe=6ACAD9A3&_nc_sid=bc0c2c",
                            "username": "hook_dancekorea"
                          },
                          "x": 0,
                          "y": 0
                        }
                      },
                      {
                        "node": {
                          "user": {
                            "followed_by_viewer": false,
                            "full_name": "ODD | 오드",
                            "id": "1242253934",
                            "is_verified": false,
                            "profile_pic_url": "https://scontent-cdg4-2.cdninstagram.com/v/t51.82787-19/623377898_18557781277013935_3590898069616637343_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-cdg4-2.cdninstagram.com&_nc_cat=107&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=b8w1TwazLp8Q7kNvwGT_wQa&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQNlAxWzN95LLF3rSVKeDXxOSlCelg6u8hFer2eyRbBCrg&oe=6ACACC76&_nc_sid=bc0c2c",
                            "username": "moonlight_odd_"
                          },
                          "x": 0,
                          "y": 0
                        }
                      },
                      {
                        "node": {
                          "user": {
                            "followed_by_viewer": false,
                            "full_name": "성지연",
                            "id": "1315351220",
                            "is_verified": false,
                            "profile_pic_url": "https://scontent-cdg6-1.cdninstagram.com/v/t51.2885-19/495708837_18499190338023221_7172795728187415900_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby43ODQuYzIifQ&_nc_ht=scontent-cdg6-1.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=X2BzNaLJl8gQ7kNvwEOwlqM&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQPIYh4IT0s6yHMLaSIRsTmIr553G6uSEMWSmeY-vjI_4Q&oe=6ACAC49C&_nc_sid=bc0c2c",
                            "username": "jiyeon127and"
                          },
                          "x": 0,
                          "y": 0
                        }
                      },
                      {
                        "node": {
                          "user": {
                            "followed_by_viewer": false,
                            "full_name": "효우",
                            "id": "1751960348",
                            "is_verified": false,
                            "profile_pic_url": "https://scontent-cdg4-1.cdninstagram.com/v/t51.2885-19/202964168_2609794079324792_5595138855391805653_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=108&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=5wZw_LmRu7sQ7kNvwE7dLX8&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQPHNZsSoUuV4BQTcdM6Wj222yV_TlGFWhfyYwoglWc1Yw&oe=6ACAB4E5&_nc_sid=bc0c2c",
                            "username": "hyowoo.__"
                          },
                          "x": 0,
                          "y": 0
                        }
                      },
                      {
                        "node": {
                          "user": {
                            "followed_by_viewer": false,
                            "full_name": "Yebon Kim",
                            "id": "4767804179",
                            "is_verified": false,
                            "profile_pic_url": "https://scontent-cdg6-1.cdninstagram.com/v/t51.2885-19/448842830_434197386121122_926373749604975815_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-cdg6-1.cdninstagram.com&_nc_cat=106&_nc_oc=Q6cZ2gEXb9ubqybSeTvQ41ISi-oDLZR2qpxqxK1I2hQCgUDZ-OM8XqiIzMiiiUcJVASmbxA&_nc_ohc=7E3fTMc1AIUQ7kNvwHZl14o&_nc_gid=1qzZ9sdpE-4RNFRiER4deA&edm=APU89FABAAAA&ccb=7-5&oh=00_AQNWrEw2FuyWy5pA0i36e7JraPQtQRS7YsV5pulUblcIgQ&oe=6ACAA572&_nc_sid=bc0c2c",
                            "username": "yebonnana"
                          },
                          "x": 0,
                          "y": 0
                        }
                      }
                    ]
                  },
                  "fact_check_information": null,
                  "fact_check_overall_rating": null,
                  "gating_info": null,
                  "has_audio": true,
                  "has_upcoming_event": false,
                  "id": "3997798548002238943",
                  "is_affiliate": false,
                  "is_paid_partnership": false,
                  "is_video": true,
                  "like_and_view_counts_disabled": false,
                  "location": null,
                  "media_overlay_info": null,
                  "media_preview": "ABgquW0ZU7zwDkD39z/Sr4PNRsVZdy4YcDiozLsbGMD3NPYW5U1GHLow/i+U/XtRU0t4r/IADz1P8x/jRSGhtptSAkDALA/Xkdu1R3Um8E/d7VlQzt5bbj3HbnAHH4elDyDy1RTkHn+fr3FADg2w5zzjp3oqusyldrDnPGO3+elFIByoWhZuhJP6dqikiKxryWP8geauN92on+6PpVAVPLLc98E/iOgoq2vSikB//9k=",
                  "nft_asset_info": null,
                  "owner": {
                    "id": "25025320",
                    "username": "instagram"
                  },
                  "pinned_for_users": [],
                  "product_type": "clips",
                  "sensitivity_friction_info": null,
                  "sharing_friction_info": {
                    "bloks_app_url": null,
                    "should_have_sharing_friction": false

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

user_id
string · required
count
integer · optional
end_cursor
string · optional

Access

Provider
Instagram
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/instagram/v1/user-posts-v2
Authentication
Bearer API key

API README

Instagram User Posts (V1, V2) API

Retrieve timeline posts for a specific profile by supplying user_id. Use count and end_cursor to paginate through historic media results.

Use cases

  • Retrieve recent timeline posts and reels from a target Instagram profile.
  • Paginate through an account historical media library for content analysis.
  • Extract post media details including display URLs and media preview data.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/user-posts-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "25025320"}'

Parameters

NameTypeRequiredDescription
user_idstringYesInstagram user ID
countintegerNoCount per page, default 12
end_cursorstringNoPagination cursor, omit for first request

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "data": {
    "user": {
      "edge_owner_to_timeline_media": {
        "edges": [
          {
            "node": {
              "__typename": "GraphVideo",
              "display_url": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/830594125_18798964129001…",
              "id": "3998430248382584993",
              "like_and_view_counts_disabled": false,
              "media_preview": "ABgq58LngDmums2JgXPVRtP4dP0xUY0uJectke//ANarMdusYwMke5zUvUaKmd3U4YnnP8h7D+dFWZIFYZ6H2oqLF…",
              "product_type": "clips"
            }
          }
        ]
      }
    }
  }
}

Notes

  • Set count to customize the number of posts returned per page, defaulting to 12.
  • Pass end_cursor to retrieve subsequent pages of results, or omit it for the initial call.

Related APIs

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/instagram/v1/user-posts-v2
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/instagram/v1/user-posts-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "count": 12,
  "user_id": "25025320"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Instagram$0.0015 per callJSONJul 31, 2026
Instagram$0.0015 per callJSONJul 31, 2026
Instagram$0.0015 per callJSONJul 31, 2026
Instagram$0.0015 per callJSONJul 31, 2026
Instagram$0.0015 per callJSONJul 31, 2026
Instagram$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Instagram User Posts (V1, V2) API?

Send a POST request to https://api.sandbase.ai/v1/api/instagram/v1/user-posts-v2 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Instagram User Posts (V1, V2) API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Instagram User Posts (V1, V2) API accept?

Required: user_id (string). Optional: count (integer) and end_cursor (string). The Parameters table and the Playground on this page list every field.

What does the Instagram User Posts (V1, V2) API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Instagram developer account or API key?

No. Instagram User Posts (V1, V2) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Instagram API access separately.