Instagram User Posts (V3)

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

Returns a list of posts from a specific Instagram account. Supports bidirectional cursor pagination using the account username.

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

Try the model

Playground

Open playground
Input
Forward pagination cursor, from previous response `page_info.end_cursor`
Backward pagination cursor, from previous response `page_info.start_cursor`
Number of posts for first request (default 12)
150
Posts per page for forward pagination (default 12, max 50) Range: 1 to 50.
Posts per page for backward pagination, use with `before`
Username string (e.g. `99brasil`), **NOT numeric user_id**
OutputExample
Responseoutputs · 62.0 KB · 554 lines
[
  {
    "data": {
      "_rid": "386c72493fb91",
      "count": 12,
      "data": {
        "user": {
          "edge_owner_to_timeline_media": {
            "count": 12,
            "edges": [
              {
                "node": {
                  "caption_text": "Presented by @Rolex. Welcome to Africa 🌍 Africa Earth’s Wild Home takes you deep into the heart of our wildest continent, bringing you closer to its animals, landscapes, and the people watching over it than ever before.\n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in Africa Earth’s Wild Home. #PerpetualPlanet\n\nAfrica Earth’s Wild Home, narrated by @wunmimosaku, premieres Friday, October 2 at 8/7c on National Geographic. Streaming next day on @DisneyPlus and @hulu.",
                  "code": "DdG4RIxIPyf",
                  "comment_count": 523,
                  "id": "3983118388705688735_787132",
                  "is_video": true,
                  "like_count": 78681,
                  "media_type": 2,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3983118388705688735",
                  "shortcode": "DdG4RIxIPyf",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/802503979_18695767555019133_6909214034622416488_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=101&ig_cache_key=Mzk4MzExODM4ODcwNTY4ODczNTE4Njk1NzY3NTUyMDE5MTMz.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX3VzZXJfdXBsb2FkZWRfdGh1bWJuYWlsLkMzIn0%3D&_nc_ohc=7yfEJ19w2-cQ7kNvwFMMD2r&_nc_oc=AdoYgqjwCaQGxOM0-0e57iimrBKSJa7qJdVjXOelUrMle_7wuHRCnNVLIWF5ZD-Dmxk&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQNnU93xodhzK6KK1D-h0rhA3c2SJCN8z3rWb7_zzcmZqg&oe=6AC789ED",
                  "video_url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQPDJtVww4K_686Ed9TbciE3dp0nrA4iUd5M8OJJIZKcU-RmkzTGwtpi3CsZY9Pgqj7h7kSpk9qe7k5S4JdWZ-Z2s7pzWC2DxuqU8rc.mp4?_nc_cat=108&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=l7RUjCk4zFkQ7kNvwF7fr9m&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTQxOTE1NjM1Njk0NTg4MywiYXNzZXRfYWdlX2RheXMiOjIzLCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6NzIsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&vs=64e569b880f6d99e&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC9EMzQxQjk4QTQ5Q0EwRTI4MDA0RUI0QkQ0NjAwMEY5QV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzc2NEEwNUE2MjQzQUVDODlGOTNDOUY1NjRBQUYxQ0JBX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACa238ro4q2FBRUCKAJDMywXQFInS8an754YEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQNDValAv09p1nmV2oOYbqkqUuvLQTuhexnckaBo2etlYw&oe=6AC39EF1",
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Describe Pompeii: Out of Time in 3 words? It's Now Streaming.\n\n#PompeiiOutOfTime with @twhiddleston is now streaming on @DisneyPlus and @hulu.",
                  "code": "DbIdlf0j6uA",
                  "comment_count": 317,
                  "id": "3947535193527528320_787132",
                  "is_video": true,
                  "like_count": 28079,
                  "media_type": 2,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3947535193527528320",
                  "shortcode": "DbIdlf0j6uA",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/752808040_18678898645019133_4153257147870540953_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=106&ig_cache_key=Mzk0NzUzNTE5MzUyNzUyODMyMDE4Njc4ODk4NjM5MDE5MTMz.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=ukwysq6aRZ8Q7kNvwE_J76S&_nc_oc=AdrpW3dEulsb2o4WLs3SGYa9hk-SL313WqRZ2iCU88rUygYo23x-hifiON89xeJYmuU&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQMNgFFWspjV3kK_sQpBrHE81mK9de8Q4xXM04oAp59o4g&oe=6AC78B27",
                  "video_url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQOvM90zPTwW0N4CDD39RzvglWYHp-iJeLZwN99oLQCPSXXSvMBvmrxrAPpyQT3kP8bZd5Bg55bReyqubnmyVfuNRMqla8GLx8vvGKw.mp4?_nc_cat=103&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=yOksBit1ZWYQ7kNvwHExNVP&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTg2Nzg4NjIzNjAwMTkxMzMsImFzc2V0X2FnZV9kYXlzIjo3MiwidmlfdXNlY2FzZV9pZCI6MTAwOTksImR1cmF0aW9uX3MiOjM2LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&ccb=17-1&vs=82e791fe4237a3da&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC8zRTQzMjYxOEU0MjcwQUNBODgwRjFGQjI1ODMxQUM4RF92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzY3NEUxMkU3MzA5RUFDRkFDRjA0MkYyNDkzMzhDODg1X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACb6gri88ZSuQhUCKAJDMywXQEIZmZmZmZoYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQOokPNB1sUZg5fTNJnCgMqlu1mBuV6l3795d-fx6n-l_g&oe=6AC3B48C",
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Presented by @Rolex. When the millionaire who owned the world's largest rhino herd ran out of money, the conservationists who took over responsibility for the herd in 2023 had an audacious idea: split 2,000 southern white rhinos into smaller groups and seed them across Africa. The goal is to protect them from poachers and ensure the species has the best chance of survival. While the plan is working, their mission is far from over. \n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in #AfricaEarthsWildHome. #PerpetualPlanet\n\nLearn more about this historic plan to save the white rhino at the link in bio.\n\nPhotographs by @brentstirton",
                  "code": "DeBJRyaDIyP",
                  "comment_count": 49,
                  "id": "3999518748855536783_787132",
                  "is_video": false,
                  "like_count": 26634,
                  "media_type": 8,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3999518748855536783",
                  "shortcode": "DeBJRyaDIyP",
                  "taken_at": null,
                  "thumbnail_url": null,
                  "video_url": null,
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Presented by @Rolex. He’s spent six months underground, and now he’s looking for love—but when a female answers his call, this black frog seems to have second thoughts.\n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in Africa Earth’s Wild Home. #PerpetualPlanet\n\n#AfricaEarthsWildHome is now streaming on @DisneyPlus and @hulu.",
                  "code": "DeCbRyHgmlu",
                  "comment_count": 246,
                  "id": "3999879388358404462_787132",
                  "is_video": true,
                  "like_count": 39847,
                  "media_type": 2,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3999879388358404462",
                  "shortcode": "DeCbRyHgmlu",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/836726322_18703861135019133_5009537659781010846_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=1&ig_cache_key=Mzk5OTg3OTM4ODM1ODQwNDQ2Mg%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=qkKuRo4zN6IQ7kNvwHZ11NI&_nc_oc=AdpA1GcoNztvVWaONCEzt8eGE7oW5RJN-F62kZ-8-ZCSjHmgiULWnb9QzhyhuUevm2s&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQOkyPzWqF00wm9r8m3aD_RSe8Vdjh6qxeTK9iBI6M0pOQ&oe=6AC77ED0",
                  "video_url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQP6ZnoCJh10ukOZ8hn6FFf4FQuIOFXdge1Wfa7j2cGTzwn73U5qiiCnvAqbGPw1ISrpg2qjQ-y-_4tRd5TuEv6DalfxyY0cM0-LxxQ.mp4?_nc_cat=1&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=yu00X9FrJmcQ7kNvwGWPllS&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6OTMwNjc5MzQzMTAxODE3LCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTIzNzQsImR1cmF0aW9uX3MiOjM2LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&ccb=17-1&vs=710c658dc9c8dc7b&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC9EQ0M4NTdGMDNEMzA0REE3ODhDMkQ4ODE4NjVBMTRCOV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0FGNjhDNDJGMjhGQzQ3RTk5MDMzRjVGREE0NEZENUEyX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACby3am61ZynAxUCKAJDMywXQEIZ2yLQ5WAYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZazBAQA&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQONBdZPF2yvECRT6lsh9pDdr24ATPEHVVzK30GfSQr6ZQ&oe=6AC38FC5",
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Presented by @Rolex. It's time to explore nature on an epic scale. It's time to explore Africa. \n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in Africa Earth’s Wild Home. #PerpetualPlanet\n\n#AfricaEarthsWildHome is now streaming on @DisneyPlus and @hulu.",
                  "code": "DeCOar9gqof",
                  "comment_count": 88,
                  "id": "3999822825618844191_787132",
                  "is_video": true,
                  "like_count": 19084,
                  "media_type": 2,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3999822825618844191",
                  "shortcode": "DeCOar9gqof",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/831424354_18703816246019133_6568919222424084771_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=107&ig_cache_key=Mzk5OTgyMjgyNTYxODg0NDE5MQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=kCV6pPreaCkQ7kNvwFYmjbI&_nc_oc=AdrA6rr-DE4--fysr7sbNbZw7qkZtuKUAIIIHkc6HF94aaCi9Z5aWl7b7O9bFeZ9cbU&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQMpyjJLUVHKryUp84oKatWwhNTGJblqbzb2NzUhHq9ElA&oe=6AC7A0B2",
                  "video_url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQOfLaxbGrzY2TgkKpUbhIh_6LlfAqIwMoqs0oeB0b10EM-gYFhGdzYGUJeYf_kUCohmNWtIkdCk6WCIfTcaOZ0hIfGHst07vKcbovc.mp4?_nc_cat=111&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=dg0i85A0VlEQ7kNvwFtn_ZY&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6NDY4NDM2OTc4MTg0ODMyNiwiYXNzZXRfYWdlX2RheXMiOjAsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjozMCwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=e67b41702cb916a1&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC85QzVCMzlDNDk3ODM0OEUxOTFFNjM4RUYwRTQ1MkM0Ql92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0EwMzBDNjVFNzFEOTQyRjc4MTY0MEIwMzg2NTZBMkUwX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACaM5L_NmprSEBUCKAJDMywXQD4HrhR64UgYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQMGA32GfAFDzeumrwVZrfWFoCE_l448kKFqYrIvJIv_Cw&oe=6AC388B0",
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Presented by @Rolex. When Matt Shirley first shone his flashlight into a cave in Gabon, dozens of crocodile eyes stared back at him. But these weren’t ordinary crocodiles. They were tiny, timid, and...orange. They had found an unlikely home underground, and an unusual source of food that helped them thrive. Discover more about the lives of Africa’s smallest crocodiles at the link in bio.\n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in #AfricaEarthsWildHome. #PerpetualPlanet\n\nPhotograph by @hammond_robin\n\nAfrica Earth’s Wild Home premieres Friday, October 2 at 8/7c on @NatGeoTV. Streaming next day on @DisneyPlus and @hulu.",
                  "code": "DeAZ0uAgNuA",
                  "comment_count": 153,
                  "id": "3999310043081137024_787132",
                  "is_video": false,
                  "like_count": 46373,
                  "media_type": 1,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3999310043081137024",
                  "shortcode": "DeAZ0uAgNuA",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/829585622_18703580971019133_8641374472154578532_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk5OTMxMDA0MzA4MTEzNzAyNA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuMTM1MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=SnM9xycPrJMQ7kNvwGbJfE1&_nc_oc=AdqtHRoMe0_DzF9mFOVmWx6ulz-KPUE8jTCMDOh7NLM9rqTSXI5JauXJ1TRZzWQBqL4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&se=8&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQPgv0mgS16iDGCPhkv_URkN-HZftISYYrObeMHJRWIxyA&oe=6AC7B0E1",
                  "video_url": null,
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "In just the last 50 years, Africa’s wildlife population has dwindled by nearly 80 percent—a nearly unimaginable loss for a continent that remains one of the world’s last great strongholds for animal abundance. Can the tide turn? \n\nIn a special cover package for our new October issue, out now, we meet the people refusing to accept this decline as inevitable. The team puzzling over how to move 2,000 enormous rhinos; the conservationists protecting the world’s most trafficked mammal, and the problem-solvers trying to save teeny-tiny crocodiles, bone-eating birds, and majestic gorillas.\n\nElsewhere in the magazine, we investigate the mounting toll of extreme heat on pregnant women and their babies. We take NASA's new Artemis moon rovers for a spin. And we trace the unlikely rise of the jellyfish as a new superfood.\n\nIf this sparked your curiosity, there's more waiting—subscribe to Nat Geo at the link in bio.",
                  "code": "DeAG4zwDCj3",
                  "comment_count": 89,
                  "id": "3999226761241700599_787132",
                  "is_video": false,
                  "like_count": 14979,
                  "media_type": 1,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3999226761241700599",
                  "shortcode": "DeAG4zwDCj3",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/830966638_18703533814019133_965502521595117335_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=110&ig_cache_key=Mzk5OTIyNjc2MTI0MTcwMDU5OQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=wQveF8GVBNUQ7kNvwFYX3Qp&_nc_oc=AdpDLgtJuAZkUAWPAttzPUYnz3S57EfdjvXxshgjKTeZx45mI7RI2tkvVAY7ZdiYzLg&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&se=8&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQOlI87oauA4WESCN0Zi-wkrVHp96HXDOfM-yVNGlcqJig&oe=6AC7834D",
                  "video_url": null,
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Presented by @Rolex. A simple branch becomes a fishing rod in the hands of these resourceful chimpanzees. This technique allows them to harvest algae without getting wet. \n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in Africa Earth’s Wild Home. #PerpetualPlanet\n\n#AfricaEarthsWildHome premieres tonight at 8/7c on National Geographic. Streaming tomorrow on @DisneyPlus and @hulu.",
                  "code": "Dd_irlvg4ar",
                  "comment_count": 1276,
                  "id": "3999067523172763307_787132",
                  "is_video": true,
                  "like_count": 281362,
                  "media_type": 2,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3999067523172763307",
                  "shortcode": "Dd_irlvg4ar",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/829146391_18703425160019133_7340519214157075138_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=1&ig_cache_key=Mzk5OTA2NzUyMzE3Mjc2MzMwNw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=yEnqYrbMqpEQ7kNvwG0-dMF&_nc_oc=Adqa5SSBvRcVEXWh2BB1Shl1KQQePIXZc0AF-FWLtC10SVn5BysV4LTKbfYctNiS7Fs&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQMzmZD6CqHIk1Z22FoREtQV4azw1QjzlQTdRDs4Z4dhqw&oe=6AC7A738",
                  "video_url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQNpFqO89PmsZhVHUMecFruonvnkXFhxN6n25Nu3d81HSdZEVlorP5wJkT5Ds_NNUCfPqv7ghRhrH4hz3IlgR6A-fBLnlqsMf6zCYWM.mp4?_nc_cat=102&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=ddK8WYwO0BMQ7kNvwHGL5Wf&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MjU5NTYxMzUyNDIxMzQyOSwiYXNzZXRfYWdlX2RheXMiOjEsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjoyOSwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=3e2493eb5b38605c&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC9DMUFFNDFGMDAyNTA0ODBCQjI2QUFCNkQwNTJCRkQwRV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzQ1RTA0MjY1OTI1RjREOTM4QUMyRDM4RTczNTZFN0EzX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACbq-q3hy6ycCRUCKAJDMywXQD3yLQ5WBBkYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQOActrlFLxTzSyUv1P4u8Kk3bZkqJ_or9BkFFikjfVkdg&oe=6AC3A00F",
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Presented by @Rolex. Until 2023, the world’s biggest rhino herd was owned by a single millionaire on a ranch in northern South Africa. But when he ran out of money, the conservationists who took over responsibility for 2,000 southern white rhinos hatched an audacious plan to ensure the species has the best chance of survival—one that involves one of the largest animal relocations ever. While the strategy is working, it's not without its difficulties, and the mission is far from over. \n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in #AfricaEarthsWildHome. #PerpetualPlanet\n\nLearn more about this historic plan to save the white rhino at the link in bio.\n\nPhotograph by @brentstirton",
                  "code": "Dd8u0tIFz1F",
                  "comment_count": 80,
                  "id": "3998276501204581701_787132",
                  "is_video": false,
                  "like_count": 27112,
                  "media_type": 1,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3998276501204581701",
                  "shortcode": "Dd8u0tIFz1F",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/829492093_18703023550019133_9177949077206313779_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=100&ig_cache_key=Mzk5ODI3NjUwMTIwNDU4MTcwMQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=IbXkIFwG4vkQ7kNvwGvf4TI&_nc_oc=AdoPr5-3VNps5wsVnM06608Aroip4nBZ2cOEPiKjamCdmE3itgVw73UW_FwwxvMgO8Q&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&se=8&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQNkEpgfFQf_A-W4Jq1RHUDMIWToacGIr0n-QOvph61H-A&oe=6AC7A9E4",
                  "video_url": null,
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Over the past few years, fishermen off Cape Cod in Massachusetts have noticed fish being reeled out of the water with bite-shaped chunks missing or, in some cases, just their heads remain. The reason why has now been caught on camera for the first time by National Geographic Explorer and photographer @brianskerry: the great white sharks are back. \n\nKnown as depredation, this behavior is usually seen from above the water’s surface. By working with local charter boat captains and using a custom designed camera set-up that ensured the fishing lure stayed in the camera's frame, Skerry was able to see what this looks like underwater. Depredation is a sign that great whites are returning to these waters after nearly being driven to extinction, shark conservationists worry the behavior could drive a new outbreak of human-shark conflict. \n\nLearn more about this rarely seen shark behavior and what it could mean for sharks and fishermen at the link in bio.",
                  "code": "Dd97mt9AeqL",
                  "comment_count": 729,
                  "id": "3998614189601057419_787132",
                  "is_video": true,
                  "like_count": 144363,
                  "media_type": 2,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3998614189601057419",
                  "shortcode": "Dd97mt9AeqL",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/830977973_18703222207019133_8027849196986406209_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=1&ig_cache_key=Mzk5ODYxNDE4OTYwMTA1NzQxOQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=5uuDgN2saHQQ7kNvwGPrsxC&_nc_oc=AdoizAeylygxJ_unAzgP2aadv43SS7KERglGFA_YQcXi2kTpLsqwDmNTuGhfHYjvGTA&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQPy_xDsEb-o5EoVPnsB64ZSH6Jd80sMp-NGmzm2m0gVOw&oe=6AC7A7A4",
                  "video_url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQM3qFUCiXtO9qB1eNsyieQo0KqO9i_WQiOhyEC41ooMv_AHF4Q4rksb82PSnFPUZdU5yNG1meijqv4L7vud2j-LN3Eace-S9a8gtTM.mp4?_nc_cat=102&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=uVeGLDpdAnwQ7kNvwH5pW3d&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MjA4MTg2MjMwOTM2NjI1OSwiYXNzZXRfYWdlX2RheXMiOjIsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjoxMSwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=690e71c6b68b1f43&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC8wMDZBRERFRERDNkU0OTM2ODFFMTdFOTczRDdGNzREMF92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0NFREJFQkM3RjU3MDQ3QkVCNzRFQUVDMTJCQTU2MUQwX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACbmp972qtyyBxUCKAJDMywXQCbwIMSbpeMYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQNaYQlf23NpwiSnl2KXPsTrSfxwb2-HgzlVH7vvuVPJkA&oe=6AC3B34B",
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Presented by @Rolex. It's not easy to find water in one of Africa's driest landscapes, but flying saucer beetles have a clever way to keep themselves hydrated. \n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in Africa Earth’s Wild Home. #PerpetualPlanet\n\n#AfricaEarthsWildHome premieres Friday, October 2 at 8/7c on National Geographic. Streaming next day on @DisneyPlus and @hulu.",
                  "code": "Dd9nPU7Azb6",
                  "comment_count": 97,
                  "id": "3998524621245855482_787132",
                  "is_video": true,
                  "like_count": 42138,
                  "media_type": 2,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3998524621245855482",
                  "shortcode": "Dd9nPU7Azb6",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/828598103_18703169503019133_5853835032320154351_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=111&ig_cache_key=Mzk5ODUyNDYyMTI0NTg1NTQ4Mg%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=NgwyqZmggI4Q7kNvwHUvm0Z&_nc_oc=Adp0lIIVy1JxgpHtrysj6pjC6BvDwf5xxKVxIddLT9iQQ4A5WhxRbbFzAN6MwRKl2R4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQPWyQpeD7v3qC7D686IlqYELZHTDzhCxjuNG-DmmjLhxA&oe=6AC79833",
                  "video_url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQO5G0o5yEwFYp7lwcXNqpqh7Ewbq4KeupRDEQVSNkjgbeaWM_q9bAayHasW8CIuBDGuvriXY04TOiyp42bNfXeJpdYJ4r-WeUe8FEk.mp4?_nc_cat=111&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=dlc0jSeXjW8Q7kNvwHOH1zU&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTU4MjI1Nzc5NjU1MDY2NiwiYXNzZXRfYWdlX2RheXMiOjIsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjoyOSwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=b854a4d5957355a8&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC8yNzQ5MzBDMUM0RkE0RTc5ODdEQTAyQUQ3MTVFNzc2OV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzRENzJGRDlBREY3NjQ1QkI5RkVFNjdCRjc5QUE0NDZCX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACaUwMCew8PPBRUCKAJDMywXQD2HbItDlYEYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQPvgqI64MPOqcbJzuVXDWkW3Q3QgiUtDwiRsGqu0PkEnQ&oe=6AC39C50",
                  "view_count": 0
                }
              },
              {
                "node": {
                  "caption_text": "Some people leave the world better than they found it. One year after her passing, we remember Jane Goodall for the curiosity that transformed our understanding of chimpanzees, the compassion that challenged how we see our place in the natural world, and the unwavering belief in the power of hope that inspired generations to imagine a better future for our planet.",
                  "code": "Dd9IsqgFYoS",
                  "comment_count": 176,
                  "id": "3998390297839372818_787132",
                  "is_video": true,
                  "like_count": 33039,
                  "media_type": 2,
                  "owner": {
                    "full_name": "National Geographic",
                    "is_verified": true,
                    "pk": "787132",
                    "username": "natgeo"
                  },
                  "pk": "3998390297839372818",
                  "shortcode": "Dd9IsqgFYoS",
                  "taken_at": null,
                  "thumbnail_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/827745979_18703113427019133_8693496310145184441_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=100&ig_cache_key=Mzk5ODM5MDI5NzgzOTM3MjgxODE4NzAzMTEzNDI0MDE5MTMz.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=LAO8URSUIsYQ7kNvwHhLnIF&_nc_oc=Adpj1yf6_n9jx9w0Ld2mHzj40t9_jkeo3XJME5HPT5MSOukO9DaLY5HJcHKjQVHOwQQ&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&oh=00_AQOj2EIuL5ZJ4-EFCxStRBHDNtUbmekasYB5TBUFGPNg9g&oe=6AC7A287",
                  "video_url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQPLKWiFog5sMqRNn5mzcbl2YGaIJGZYn9co5x3nvPuzKwqkoELYhqGznKnFsVAmoqxLjW-KOJASKSltx0Ym58XUxVgI7IWpi6fPPCI.mp4?_nc_cat=104&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=iW2j8t35uUEQ7kNvwFUPpQu&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTg3MDMwODI1OTYwMTkxMzMsImFzc2V0X2FnZV9kYXlzIjoyLCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6OTIsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&vs=43ae2f2216bcf2ee&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC9FREMzRjE0N0NGRkI0MDlGQjVDN0JFQTNDRkQ3RjFERl92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzEyODdFNUE1QjIwMDQ5NzdCNTc0MjUxOUE5MkY5RkE5X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACb6rrml2Ja5QhUCKAJDMywXQFcsSbpeNT8YEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=jiBkkWdEyIgbXVBf_BWjkg&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQNiGaSyer1KcvdxNes3EG7XpAdlACM8vV3f1yNYmJUPjA&oe=6AC38CFD",
                  "view_count": 0
                }
              }
            ],
            "page_info": {
              "end_cursor": "3998390297839372818_787132",
              "has_next_page": true,
              "has_previous_page": false,
              "start_cursor": null
            }
          }
        }
      },
      "items": [
        {
          "caption_text": "Presented by @Rolex. Welcome to Africa 🌍 Africa Earth’s Wild Home takes you deep into the heart of our wildest continent, bringing you closer to its animals, landscapes, and the people watching over it than ever before.\n\nThrough its partnership with the National Geographic Society and as part of its Perpetual Planet Initiative, #Rolex supports expeditions exploring and protecting remarkable places around the world, a selection of which are featured in Africa Earth’s Wild Home. #PerpetualPlanet\n\nAfrica Earth’s Wild Home, narrated by @wunmimosaku, premieres Friday, October 2 at 8/7c on National Geographic. Streaming next day on @DisneyPlus and @hulu.",
          "code": "DdG4RIxIPyf",

Examples

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

Model card

Specifications

Pricing

Base price
$0.01 / 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

username
string · required
after
string · optional
before
string · optional
count
integer · optional
first
integer · optional
last
integer · optional

Access

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

API README

Instagram User Posts (V3) API

Retrieve posts for an Instagram account by providing a username, with optional cursor-based pagination parameters.

Use cases

  • Retrieve historical posts from a public profile.
  • Browse user post feeds using forward or backward cursors.
  • Monitor recent media uploads from specific accounts.

Request

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

Parameters

NameTypeRequiredDescription
usernamestringYesUsername string (e.g.
lastintegerNoPosts per page for backward pagination, use with before
afterstringNoForward pagination cursor, from previous response page_info.end_cursor
countintegerNoNumber of posts for first request (default 12)
firstintegerNoPosts per page for forward pagination (default 12, max 50)
beforestringNoBackward pagination cursor, from previous response page_info.start_cursor

Notes

  • Provide a username string rather than a numeric user ID.
  • first controls forward page size (default 12, max 50) paired with after.
  • last controls backward page size paired with before.

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/v3/user-posts
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/v3/user-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "username": "natgeo"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Instagram$0.01 per callJSONJul 31, 2026
Instagram$0.01 per callJSONJul 31, 2026
Instagram$0.01 per callJSONJul 31, 2026
Instagram$0.01 per callJSONJul 31, 2026
Instagram$0.003 per callJSONJul 31, 2026
Instagram$0.01 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Instagram User Posts (V3) API?

Send a POST request to https://api.sandbase.ai/v1/api/instagram/v3/user-posts 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 (V3) API cost?

$0.01 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 (V3) API accept?

Required: username (string). Optional: after (string), before (string), count (integer), first (integer) and last (integer). The Parameters table and the Playground on this page list every field.

What does the Instagram User Posts (V3) API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a Instagram developer account or API key?

No. Instagram User Posts (V3) 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.