Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint ACCOUNT_MEDIAS is down? #195

Closed
pedropamn opened this issue Nov 7, 2017 · 10 comments
Closed

Endpoint ACCOUNT_MEDIAS is down? #195

pedropamn opened this issue Nov 7, 2017 · 10 comments

Comments

@pedropamn
Copy link

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

@raiym
Copy link
Member

raiym commented Nov 7, 2017

@pedropamn
Copy link
Author

pedropamn commented Nov 7, 2017

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?

@raiym
Copy link
Member

raiym commented Nov 8, 2017

I will take a look when I get home later today

@bebensiganteng
Copy link

@raiym thank you very much!

@fattony80
Copy link

fattony80 commented Nov 8, 2017

@raiym looking forward to an update.

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

@sfatfarma
Copy link

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.

@zaivst
Copy link

zaivst commented Nov 8, 2017

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

@zaivst
Copy link

zaivst commented Nov 8, 2017

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

@waffle9012
Copy link

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

raiym added a commit that referenced this issue Nov 8, 2017
@raiym raiym closed this as completed Nov 8, 2017
@fattony80
Copy link

@raiym you're a champ, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants