Instagram profile about api endpoint

leozj

Newbie
Joined
Jan 17, 2025
Messages
8
Reaction score
5
I'm doing scraping on instagram, and need to get the country info of a profile.

Is there an endpoint of host (https)i.instagram.com/api/ can get this?

Thanks!

1737079553965.png
 
As long as the information you're trying to scrape from a profile is visible to the public, then it can be scraped. You can check around if there are existing tools for that but personally, you're probably better off having one custom coded.
 
As long as the information you're trying to scrape from a profile is visible to the public, then it can be scraped. You can check around if there are existing tools for that but personally, you're probably better off having one custom coded.
Okay, I will have a try
 
I'm doing scraping on instagram, and need to get the country info of a profile.

Is there an endpoint of host (https)i.instagram.com/api/ can get this?

Thanks!

View attachment 412900

Hmm, nice find. I checked quite a bit of accounts, and it seems this thing is not available for all the accounts, only ~50% of the accounts. From among the accounts that I checked. But still its a good find. Will do more research on it.
 
Hmm, nice find. I checked quite a bit of accounts, and it seems this thing is not available for all the accounts, only ~50% of the accounts. From among the accounts that I checked. But still its a good find. Will do more research on it.
Cool, now I found bloks api only. And I check out it need CSRF token as this thread mentioned:
https://www.blackhatworld.com/seo/scrape-about-this-account-information.1595312/

I think maybe I should give up.
 
Indeed, you can scrape the info from that endpoint. I do this by using an automated headless browser like Playwright to login to IG, go to a profile that I know will have this info and then click on the banner to catch the request with all the fresh headers. Then it's only a matter of editing the POST request data to get this info for the specific accounts I'm scraping. I've found that most of my IG accounts can scrape 250k-500k profiles this way before hitting the spam limit.
 
There's no endpoint for that. You can double check though with rapudapi or apify to be sure
 
Back
Top