ping / instagram_private_api

A Python library to access Instagram's private API.
MIT License
2.95k stars 611 forks source link

New api march 2021 #243

Open LivC193 opened 4 years ago

LivC193 commented 4 years ago

Sorry to bother you. I was wondering if this library will be viable after the implementation of the new api

wlerin commented 4 years ago

That API has nothing to do with this one. There may be some backend changes at the same time, however, which could affect this library.

LivC193 commented 4 years ago

But the Legacy API will become obsolete and the endpoints as well as the keys are for the Legacy API right ? So you won't even be able to log in anymore. Again this is my understanding from Instagram's official page : https://www.instagram.com/developer/ .

wlerin commented 4 years ago

This doesn't use the Legacy API.

electrobayan commented 4 years ago

@ping Looks like "follow" endpoint has been changed as this: endpoint = 'friendships/create/{user_id!s}/'.format(**{'user_id': user_id}) does not work anymore...

Does anybody know what it is now?

sahiltspaceo commented 4 years ago

This doesn't use the Legacy API.

@wlerin I think @LivC182 is talking about official app API having base URL 'https://i.instagram.com/api/{version!s}/'

Are you sure endpoints with this base URL are not going to be deprecated?

wlerin commented 4 years ago

@sahiltspaceo The Legacy API that @LivC182 was talking about which was going to be deprecated at the end of March uses https://api.instagram.com/v1/. It has nothing to do with this library, as I've said twice now.

That's all I'm sure of, this uses their private API so everything could change tomorrow and that would be the first we learned of it. (Well, they'd update the app first, and give people some time to update it on their devices. It wouldn't actually change overnight... but there wouldn't be some big announcement like the one that triggered this issue.)