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

Useragent Mismatch #544

Closed fsjdg closed 4 years ago

fsjdg commented 5 years ago

is somebody getting this error: Code: 400 Response code is 400. Body: message => useragent mismatch; status => fail; Something went wrong. Please report issue?

odeialba commented 5 years ago

I'm having the same problem. The problem is with user agent from the call to the url https://i.instagram.com/api/v1/users/{userId}/info/. Instagram changed it and now only the app is able to access that url.

This PR fixes the problem https://github.com/postaddictme/instagram-php-scraper/pull/545

manguoes commented 5 years ago

Same problem here!

saki117 commented 5 years ago

I'm having the same problem. The problem is with user agent from the call to the url https://i.instagram.com/api/v1/users/{userId}/info/. Instagram changed it and now only the app is able to access that url.

This PR fixes the problem #545

Problem solved with this change, thanks!

dandyraka commented 5 years ago

image Change the user agent will work

Zeitwaechter commented 5 years ago

Sorry but did the API change again (logged out)?

image

Conclusion: Need to be logged in (again).

mdeveloper20 commented 4 years ago

Uncaught InstagramScraper\Exception\InstagramException: Response code is 400. Body: message => useragent mismatch; status => fail; Something went wrong. Please report issue.

Muetze42 commented 4 years ago

Same problem here since today.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ThirupathiRaoM commented 3 years ago

Hi, Hope you are doing great, I am Integrating Instagram in my App i am Getting Instagram id And Client id But i need to get user name On the Basis Of these Details i tried To use Instagram Graph Api And Above Api's Which You shared Above i am Unable to Get the response From Those Please Help me to get the User name From Instagram it will help To Complete My App Functionality Please Any Body Have Solution Please respond here

I am Waiting For your Valuable Response For Solve My Problem

Thanks&Regards Thiru(IOS developer)

avalanche1 commented 2 years ago

Anyone having those probs: change User-Agent to Instagram 219.0.0.12.117 Android

prime-optimal commented 2 years ago

Anyone having those probs: change User-Agent to Instagram 219.0.0.12.117 Android

Worked like a charm, just popped it into postman. Thanks so much!

slashbasit commented 1 year ago

image

xx7Ahmed7xx commented 10 months ago

@prime-optimal How exactly did you use that?

BasitAli05 commented 8 months ago

Use this User-Agent : Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 105.0.0.11.118 (iPhone11,8; iOS 12_3_1; en_US; en-US; scale=2.00; 828x1792; 165586599)

akankshabhovar commented 8 months ago

Use this User-Agent : Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 105.0.0.11.118 (iPhone11,8; iOS 12_3_1; en_US; en-US; scale=2.00; 828x1792; 165586599)

where did you get this value from?