orsifrancesco / instagram-without-api

A simple PHP code to get unlimited instagram public pictures by every user without api, without credentials.
https://orsi.me/instagram-without-api/
MIT License
48 stars 13 forks source link

Please add 'play_count' or preferably 'raw' #5

Closed SimonvdSteen closed 8 months ago

SimonvdSteen commented 1 year ago

First of all, great work you've done.

Would it be possible for you to add 'play_count' to benefit in Reels. For example you could add it like this.

Replace

'likes' => @ $item['like_count'],

With

'likes' => @ $item['like_count'],
'plays' => @ $item['play_count'],

Personally to me it would be even more beneficial to add a "raw" option, so I could output just the Raw Instagram JSON.

orsifrancesco commented 8 months ago

@SimonvdSteen thank you, I'm happy you appreciate it :) Sorry for the late response.. Unfortunately this script doesn't work anymore because Instagram moved the pictures array to another endpoint (with more than one redirect) making it harder to catch images server side. Maybe I will release a new version in the future, but I don't think it can be in PHP anymore. Right now only https://orsi.me/sniffagram/ still works, but I will add likes and plays in another moment :)