V
V
Vladimir Litvinov2018-08-10 12:50:49
API
Vladimir Litvinov, 2018-08-10 12:50:49

How to get photos for a specific hashtag on Instagram?

It is necessary to receive and save photos in the database by a certain hashtag. As far as I know, Instagram officially closed this shop. How to be? Does anyone do these kind of things?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Vlastovskiy, 2018-08-10
@VlastV

Instragram uses GraphQL, to build a correct query, you need to analyze the structure of the graph, or take requests sent by Instragram
Example for cURL:

curl 'https://www.instagram.com/graphql/query/?query_hash=faa8d9917120f16cec7debbd3f16929d&variables=%7B%22tag_name%22%3A%22%D0%BC%D0%B0%D0%BA%D0%B5%D0%B5%D0%B2%D0%BA%D0%B0%22%2C%22first%22%3A6%2C%22after%22%3A%22AQAjk3Sqr4GC4IUApk_fyqdhgikSReY3N9wQixa6SsTW630DVN8ZTpLa-dNdkvmSCOtyBqfilVCHmeR2oAqiThOZsPnozUzodjrWTkqp4qEK7Q%22%7D' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36' -H 'x-requested-with: XMLHttpRequest' -H 'x-instagram-gis: b4c3f149278f4b9232a3e9b5dad1b88b' --compressed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question