Get Info by id 📱
Retrieve user information by id.
Note: Please be aware that the responses from Get Web Profile Info 💻 and Get Info by id 📱
and endpoints are different.
Params
Name | Type | Default | Description |
---|---|---|---|
id (required) | int | – | User id |
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_user_info_by_id(12281817))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->getUserInfoById(12281817));
curl --request POST \
--url https://v1.rocketapi.io/instagram/user/get_info_by_id \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"id": 12281817
}'
Response example
Loading...