API-store: Instagram

Extract informations form Profile, Location, Hashtag and Post.

Usage

Post

endpoint: /api/v1/store/instagram/post/<post_id>

Where post_id is the id of the post you want to fetch. If your instagram post url is https://www.instagram.com/p/BbzgDUPASk6/, then the post_id is BbzgDUPASk6.

additionnal parameters:

  • api_key: Your API key Required
  • comments_count: Number of comments you want to fetch, maximum 80, Default: 12

price:

Each call to the API cost several API credits depending on the number of comments you want. Remember that by default, 12 comments are requested.

comments_count API Credits needed
0 10
up to 12 15
up to 48 20
up to 80 25

return value:

curl https://app.scrapingbee.com/api/v1/store/instagram/post/933KsNrzsA?api_key=<API_KEY>&comments_count=12

{
   "post":{
      "url":"https://www.instagram.com/p/933KsNrzsA/",
      "caption":{
         "text":"Now available at daftpunk.com #daftpunk #daftpunkstore #be@rbrick #medicomtoy #medicom",
         "hashtags":[
            {
               "href":"https://www.instagram.com/explore/tags/daftpunk/",
               "text":"#daftpunk"
            },
            {
               "href":"https://www.instagram.com/explore/tags/daftpunkstore/",
               "text":"#daftpunkstore"
            },
            {
               "href":"https://www.instagram.com/explore/tags/be/",
               "text":"#be"
            },
            {
               "href":"https://www.instagram.com/explore/tags/medicomtoy/",
               "text":"#medicomtoy"
            },
            {
               "href":"https://www.instagram.com/explore/tags/medicom/",
               "text":"#medicom"
            }
         ],
         "mentions":[

         ]
      },
      "owner":{
         "full_name":"daftpunk",
         "href":"https://www.instagram.com/daftpunk/",
         "picture":"https://scontent-atl3-1.cdninstagram.com/vp/07a6178cf2293458bd6db8810707c7b7/5DCC61C9/t51.2885-19/11376509_492923477528486_1887817517_a.jpg?_nc_ht=scontent-atl3-1.cdninstagram.com",
         "is_verified":true
      },
      "sponsor":{

      },
      "content":{
         "type":"image",
         "alt":"No photo description available.",
         "source":"https://scontent-atl3-1.cdninstagram.com/vp/bb7e1f11779be0bd5151efed4c650466/5DC9311D/t51.2885-15/e35/12237175_1668022906748083_870550694_n.jpg?_nc_ht=scontent-atl3-1.cdninstagram.com",
         "likes":"3,023"
      },
      "date":"2015-11-09T17:42:21.000Z"
   },
   "comments":[
      {
         "comment":"when ends of do the TRON LEGACY soundtrack.... So many Disney For one day",
         "author_full_name":"markus_helberg",
         "author_href":"https://www.instagram.com/markus_helberg/",
         "author_picture":"https://scontent-atl3-1.cdninstagram.com/vp/8014b22ec44e9f4fd05f3bc076b1ec04/5DEE2128/t51.2885-19/s150x150/61802160_424432374809156_2114507498986668032_n.jpg?_nc_ht=scontent-atl3-1.cdninstagram.com",
         "date":"2017-06-04T02:50:39.000Z",
         "answers":0,
         "likes":1
      },
      ...
      {
         "comment":"👆",
         "author_full_name":"newyorkbestofficial",
         "author_href":"https://www.instagram.com/newyorkbestofficial/",
         "author_picture":"https://scontent-atl3-1.cdninstagram.com/vp/188013eb2fe4786d49d302f2decb27b0/5DD4FB35/t51.2885-19/s150x150/61261707_2062230970745971_4236779053303988224_n.jpg?_nc_ht=scontent-atl3-1.cdninstagram.com",
         "date":"2019-06-22T16:12:54.000Z",
         "answers":0,
         "likes":0
      }   
   ]
}

Profile, Location or Hashtag

Get a profile, location or hashtag information with their related posts.

Warning: Location page are currently not accessible to not logged in user so you won't be able to use our API on them. We are currently working on a solution.

endpoint: /api/v1/store/instagram/post_list

additionnal parameters:

  • api_key: Your API key Required
  • posts_count: Number of posts you want to fetch, maximum 80 ,Default: 12
  • url: Full Instagram URL of the profile/location/hashtag page, place this paramter in the last position.Required.

price:

Each call to the API will count as several API calls depending on the number of posts you request. Remember that by default, 12 posts are requested.

posts_count API Credits needed
0 10
up to 12 15
up to 48 20
up to 80 25

return value:

curl https://app.scrapingbee.com/api/v1/store/instagram/post_list?api_key=<API_KEY>&posts_count=12&url=https://www.instagram.com/marvel/ 

{
   "profile":{
      "url":"https://www.instagram.com/marvel/",
      "owner":{
         "full_name":"Marvel Entertainment",
         "href":"https://www.instagram.com/marvel/",
         "picture":"https://scontent-mia3-1.cdninstagram.com/vp/b822e11d558819292b05946d878f9982/5DE3D629/t51.2885-19/11007912_807640775983280_1278253375_a.jpg?_nc_ht=scontent-mia3-1.cdninstagram.com",
         "is_private":false,
         "is_verified":true,
         "username":"marvel",
         "follower_count":41155339,
         "post_count":3675,
         "following_count":152,
         "biography":"The official Instagram for Marvel comics, movies, games, and more. Find out more about Disney+: http://di.sn/6006EjA3I",
         "emails":[

         ],
         "external_url":"bit.ly/AvEndgame"
      }
   },
   "best_post":"Only available for hashtags and locations",
   "latest_posts":[
      {
         "comments":321,
         "href":"https://www.instagram.com/p/B06TctZlS35/",
         "content":{
            "type":"video",
            "views":286000,
            "source":"https://scontent-mia3-1.cdninstagram.com/vp/e12b40d3fd7e87ec4530583809346ca4/5D4EE755/t51.2885-15/sh0.08/e35/s640x640/66059771_2579829882105638_6506134129425142489_n.jpg?_nc_ht=scontent-mia3-1.cdninstagram.com"
         }
      },
      ...
   {  
      "comments":10400,
      "href":"https://www.instagram.com/p/B0HGb5uF8dN/",
      "content":{  
         "type":"image",
         "alt":"2099 #MarvelComics",
         "source":"https://scontent-ort2-1.cdninstagram.com/vp/a1df60bf48ef37dde335024bb8925608/5DEAA981/t51.2885-15/sh0.08/e35/s640x640/66924666_2422865154622858_4546323274820498906_n.jpg?_nc_ht=scontent-ort2-1.cdninstagram.com",
         "likes":990000
      }
   }
  ]
}