Answer the question
In order to leave comments, you need to log in
How to make a get request for instagram?
Hello! Tell me, please, when I "logged in" to the web version of Instagram and clicked on the button for the number of friends, a get request was sent:
https://www.instagram.com/graphql/query/?query_hash=1215Z2b820144728dde7facb0d904896a&variables={"id":"1234567890","first":24}
$client = new Client();
$response = $client->createRequest()
->setMethod('get')
->setUrl('https://www.instagram.com/graphql/query/')
->setData([
'query_hash' => '1215Z2b820144728dde7facb0d904896a',
'variables' => '{"id":"123456789","first":24}'
])
->send();
Answer the question
In order to leave comments, you need to log in
How to make a request through php?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question