Instagram-php-scraper: Endpoint ACCOUNT_MEDIAS is down?

Created on 7 Nov 2017  路  10Comments  路  Source: postaddictme/instagram-php-scraper

Hello

When i use the function Instagram::getMedias(), the script shows html characters from Instagram error page and the messages:

\src\InstagramScraper\Instagram.php</b> on line <b>91
Fatal error</b>:  Uncaught InstagramScraper\Exception\InstagramException: Response code is 404.

At line 91, shows error from line 89, Endpoints::getAccountMediasJsonLink. In Endpoints.php, this endpoint is the ACCOUNT_MEDIAS constant

const ACCOUNT_MEDIAS = 'https://www.instagram.com/{username}/media?max_id={max_id}';
But if you access this endpoints, the 404 error is shown by Instagram.

The API is down, right? Is there other way to get medias? Below, the print of error (in portuguese)

Thanks

image

Most helpful comment

I will take a look when I get home later today

All 10 comments

Same error ( Response code is 404). The Endpoint that this function use is down... I think that this is the problem. Is there a way around?

I will take a look when I get home later today

@raiym thank you very much!

@raiym looking forward to an update.

*Just found this - https://stackoverflow.com/questions/47169127/how-get-media-from-ig

Hello,

@raiym Same issue here. I get the same 404 error. Thank you very much for looking into this. Really appreciate your work. :)

Regards,
Szabi.

The same problem. Yesterday all was ok, and today getMedias() get 404 error on any public account.

https://www.instagram.com/anyuser/?__a=1 is works. now.... ))

@zaivst how do I use that endpoint to get all media for a given username?

@raiym you're a champ, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eelcol picture eelcol  路  5Comments

limminho picture limminho  路  8Comments

kiskaserver picture kiskaserver  路  4Comments

Tvvinman picture Tvvinman  路  7Comments

pauloamorimbr picture pauloamorimbr  路  7Comments