Get Instagram profile details using Instagram Api

Get Instagram profile details using Instagram Api
  • Create a new application account on instagram using your instagram account on Instagram Developer option and generate client id and  client secret fill redirect url for the login from instagram api.
  • Using All Details make a curl request on link and get user instagram profile details if curl request response successfully.

$fields = array(

            "client_id"     => client_id,//your instagram client id

            "client_secret" => client_secret,//your client secret

            "grant_type"    => grant_type,

           "redirect_uri"  =>  redirect_url,//your rediect url

            "code"          =>  code

        $url = '';

        $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL, $url);

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        curl_setopt($ch, CURLOPT_HEADER, 0);

        curl_setopt($ch, CURLOPT_TIMEOUT, 20);


        curl_setopt($ch, CURLOPT_NOBODY, 0);

        curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);

        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

        $result = curl_exec($ch);


        $result = json_decode($result);


17 Replies to “Get Instagram profile details using Instagram Api”

  1. I simply want to tell you that I am very new to blogging and certainly loved you’re website. Probably I’m want to bookmark your blog . You actually have outstanding article content. Many thanks for sharing your web site.

  2. I see you don’t monetize your website, don’t
    waste your traffic, you can earn extra bucks every month because you’ve got
    hi quality content. If you want to know how to make extra money, search for:
    Boorfe’s tips best adsense alternative

  3. I think your blog needs some fresh articles. Writing manually takes a lot of time, but there is tool for this boring task,
    search for; Boorfe’s tips unlimited content

Leave a Reply

Your email address will not be published. Required fields are marked *