postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.
https://packagist.org/packages/raiym/instagram-php-scraper
MIT License
3.1k stars 800 forks source link

$instagram->getAccount() no longer working #1117

Open jhob101 opened 1 year ago

jhob101 commented 1 year ago

Data returned from $instagram->getAccount() is no longer of the expected format.

Use $instagram->getAccountInfo() instead and it seems to work as it did before.

instasck commented 1 year ago

Is there a more proper way to do that I mean usinbg the 'https://www.instagram.com/{username}' and get data from it instead of 'https://www.instagram.com/{}/?__a=1&__d=dis'

direct call with parameters might cause blocks.

skmachine commented 1 year ago

Is there a more proper way to do that I mean usinbg the 'https://www.instagram.com/{username}' and get data from it instead of 'https://www.instagram.com/{}/?a=1&d=dis'

direct call with parameters might cause blocks.

Thanks - I will give it another try , any recommendations for best use ?

If you just need to retrieve public IG profile info , and last 12 posts, check https://github.com/skmachine/instagram-php-scraper - it does not require your IG auth details and uses cloud proxies to access public data (requires subscription). Note that this new package won't help if you need to extract followers or emails (as these endpoints require authentication).