madhavtripathi05 / insta_public_api

Fetch details of a public Instagram account just by entering their username.
https://pub.dev/packages/insta_public_api
MIT License
6 stars 2 forks source link

Api Error #2

Closed TicketMarketTecnologia closed 3 years ago

TicketMarketTecnologia commented 3 years ago

HTML was returned instead of JSON i.e.You might have surpassed Instagram's no. of requests/hour limit

madhavtripathi05 commented 3 years ago

well, it's a pretty clear message that you have surpassed the limit. wait for few hours and everything should work as expected.

TicketMarketTecnologia commented 3 years ago

In fact, in the first consultation this is already happening, the return rarely works.

Unfortunately, if an API takes into account the simultaneous access of different applications that use the same endpoint, they should always show an error.

It ends up being useless to use it in a production application.

madhavtripathi05 commented 3 years ago

Totally agreed, this is not a production ready solution. You may checkout Instagram's official API if you're planning to deploy this on large scale.

What does this package do? I'm just fetching data from this endpoint: https://www.instagram.com/your_username/?__a=1 which totally works for a few times in a row but will not, if you try to call it again and again and there is nothing much I can do about that. for more info check this article.