• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

InstagramApi - Retrofit

umtblbl

Member
Mar 6, 2019
50
5
Hi friends, I want to develop an application using the following api. When I test api on chrome, json data is returned if any instagram account is logged in. I know how to use retrofit. But there is no access_token section in the url. How do I get the user to login when using these URLs with retrofit? Please help me.

// Returns user information if logged in
https://i.instagram.com/api/v1/users/26352342/info/
// Returns users followed by the user if logged in
https://www.instagram.com/graphql/query/?query_id=17874545323001329&id=26352342&first=20
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones