user_idstringआवश्यक
Instagram user ID
https://api.sandbase.ai/v1/api/instagram/v1/related-profilesReturns related and similar user profile recommendations for a target Instagram account. Takes an Instagram user ID to look up connected profiles, usernames, and profile picture URLs.
[
{
"data": {
"attempts": "556",
"data": {
"user": {
"edge_related_profiles": {
"edges": [
{
"node": {
"blocked_by_viewer": false,
"followed_by_viewer": false,
"follows_viewer": false,
"full_name": "Meta Prosper",
"has_blocked_viewer": false,
"has_requested_viewer": false,
"id": "52276426143",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-19/551333341_18025298243738144_2837208056446285974_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=108&_nc_oc=Q6cZ2gHUWyY9RRrSX8qEWsH7grCFVPpxFHjF1HuiwIF_WwYfHCkU3s-N7ZFuFZQxve9xe1s&_nc_ohc=jAD1wx-g1jAQ7kNvwHMmi6K&_nc_gid=LEYacX_uk3LITZp7tHSnFw&edm=AGW0Xe4BAAAA&ccb=7-5&ig_cache_key=GN2t3CAg2snK6QlAAJZ4W-axyV8nbmNDAQAB1501500j-ccb7-5&oh=00_AQPJrVyxQ8xpTd93NvzL-LVPwYDwSviHQH9E66FhdbA59g&oe=6ACAC50F&_nc_sid=94fea1",
"requested_by_viewer": false,
"username": "metaprosper"
}
},
{
"node": {
"blocked_by_viewer": false,
"followed_by_viewer": false,
"follows_viewer": false,
"full_name": "Oppa Huy IDol",
"has_blocked_viewer": false,
"has_requested_viewer": false,
"id": "49514159229",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-19/746199035_18083560553655230_8093656070524709416_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gHUWyY9RRrSX8qEWsH7grCFVPpxFHjF1HuiwIF_WwYfHCkU3s-N7ZFuFZQxve9xe1s&_nc_ohc=03dl2GwPQMIQ7kNvwETr-g4&_nc_gid=LEYacX_uk3LITZp7tHSnFw&edm=AGW0Xe4BAAAA&ccb=7-5&ig_cache_key=GPsXeiy_KxML5z5AACgqz2lQcVJwbmNDAQAB1501500j-ccb7-5&oh=00_AQNTzaRj142qOgqC1WKhJXRaKi8pTxVNhlurtXt7tePigg&oe=6ACAB1D8&_nc_sid=94fea1",
"requested_by_viewer": false,
"username": "oppahuyidol"
}
},
{
"node": {
"blocked_by_viewer": false,
"followed_by_viewer": false,
"follows_viewer": false,
"full_name": "Chris Hemsworth",
"has_blocked_viewer": false,
"has_requested_viewer": false,
"id": "1822594644",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.2885-19/91933099_242760747110457_2301125283991781376_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby42NTAuYzIifQ&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gHUWyY9RRrSX8qEWsH7grCFVPpxFHjF1HuiwIF_WwYfHCkU3s-N7ZFuFZQxve9xe1s&_nc_ohc=8dpcZ0Wz0cAQ7kNvwG1Iw_S&_nc_gid=LEYacX_uk3LITZp7tHSnFw&edm=AGW0Xe4BAAAA&ccb=7-5&ig_cache_key=GKvJegU50BgkytwAAAAAAABBPe8fbkULAAAB1501500j-ccb7-5&oh=00_AQO_yjr2SmLupFw2NizyNFMyTjQZ-KrOIE9_AuAeiY1_mQ&oe=6ACAA9F4&_nc_sid=94fea1",
"requested_by_viewer": false,
"username": "chrishemsworth"
}
},
"… 74 more items in the full response"
]
}
},
"viewer": []
},
"status": "ok"
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns a list of Instagram accounts that Instagram suggests as related to a target account. You send the target's numeric user_id. Each result includes the profile's id, full_name, profile picture URL, and status flags.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/related-profiles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "25025320"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Instagram user ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"attempts": "43",
"data": {
"user": {
"edge_related_profiles": {
"edges": [
{
"friendship_status": {
"blocking": false,
"followed_by": false,
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_feed_favorite": false,
"is_restricted": false,
"outgoing_request": false
},
"full_name": "Kevin Systrom",
"hd_profile_pic_url_info": {
"url": "https://instagram.fbcn2-1.fna.fbcdn.net/v/t51.2885-19/13732144_1764457777134045_…"
},
"id": "3",
"is_private": false,
"is_unpublished": false,
"is_verified": true,
"live_broadcast_id": null
}
]
}
}
}
}
| Field | Meaning |
|---|---|
data.user.edge_related_profiles.edges[] | One related profile suggestion. Each item holds the profile details and the friendship flags. |
data.user.edge_related_profiles.edges[].id | Instagram user ID of the related account. Use it as user_id in other Instagram calls. |
data.user.edge_related_profiles.edges[].full_name | Display name of the related account, such as Ray-Ban. |
data.user.edge_related_profiles.edges[].hd_profile_pic_url_info.url | URL of the account's profile picture. |
data.user.edge_related_profiles.edges[].is_verified | true if the related account has the verified badge. |
data.user.edge_related_profiles.edges[].is_private | true if the related account is private. |
data.user.edge_related_profiles.edges[].is_unpublished | Boolean flag on the related account. It is false for all items in the sample. |
data.user.edge_related_profiles.edges[].live_broadcast_id | ID of a live broadcast, or null when the account is not live. |
data.user.edge_related_profiles.edges[].friendship_status.following / followed_by / blocking / is_restricted | Relationship flags between the related account and the account making the request. All are false in the sample. |
attempts | Count returned with the response, shown as a string such as 43. |
username field. Use the returned id with Instagram User Profile by ID to get more details about a related account.user_id. There are no pagination parameters.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/related-profiles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "25025320"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
user_idstringआवश्यकInstagram user ID
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"attempts": "556",
"data": {
"user": {
"edge_related_profiles": {
"edges": [
{
"node": {
"blocked_by_viewer": false,
"followed_by_viewer": false,
"follows_viewer": false,
"full_name": "Meta Prosper",
"has_blocked_viewer": false,
"has_requested_viewer": false,
"id": "52276426143",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-19/551333341_18025298243738144_2837208056446285974_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=108&_nc_oc=Q6cZ2gHUWyY9RRrSX8qEWsH7grCFVPpxFHjF1HuiwIF_WwYfHCkU3s-N7ZFuFZQxve9xe1s&_nc_ohc=jAD1wx-g1jAQ7kNvwHMmi6K&_nc_gid=LEYacX_uk3LITZp7tHSnFw&edm=AGW0Xe4BAAAA&ccb=7-5&ig_cache_key=GN2t3CAg2snK6QlAAJZ4W-axyV8nbmNDAQAB1501500j-ccb7-5&oh=00_AQPJrVyxQ8xpTd93NvzL-LVPwYDwSviHQH9E66FhdbA59g&oe=6ACAC50F&_nc_sid=94fea1",
"requested_by_viewer": false,
"username": "metaprosper"
}
},
{
"node": {
"blocked_by_viewer": false,
"followed_by_viewer": false,
"follows_viewer": false,
"full_name": "Oppa Huy IDol",
"has_blocked_viewer": false,
"has_requested_viewer": false,
"id": "49514159229",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-19/746199035_18083560553655230_8093656070524709416_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gHUWyY9RRrSX8qEWsH7grCFVPpxFHjF1HuiwIF_WwYfHCkU3s-N7ZFuFZQxve9xe1s&_nc_ohc=03dl2GwPQMIQ7kNvwETr-g4&_nc_gid=LEYacX_uk3LITZp7tHSnFw&edm=AGW0Xe4BAAAA&ccb=7-5&ig_cache_key=GPsXeiy_KxML5z5AACgqz2lQcVJwbmNDAQAB1501500j-ccb7-5&oh=00_AQNTzaRj142qOgqC1WKhJXRaKi8pTxVNhlurtXt7tePigg&oe=6ACAB1D8&_nc_sid=94fea1",
"requested_by_viewer": false,
"username": "oppahuyidol"
}
},
{
"node": {
"blocked_by_viewer": false,
"followed_by_viewer": false,
"follows_viewer": false,
"full_name": "Chris Hemsworth",
"has_blocked_viewer": false,
"has_requested_viewer": false,
"id": "1822594644",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.2885-19/91933099_242760747110457_2301125283991781376_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby42NTAuYzIifQ&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gHUWyY9RRrSX8qEWsH7grCFVPpxFHjF1HuiwIF_WwYfHCkU3s-N7ZFuFZQxve9xe1s&_nc_ohc=8dpcZ0Wz0cAQ7kNvwG1Iw_S&_nc_gid=LEYacX_uk3LITZp7tHSnFw&edm=AGW0Xe4BAAAA&ccb=7-5&ig_cache_key=GKvJegU50BgkytwAAAAAAABBPe8fbkULAAAB1501500j-ccb7-5&oh=00_AQO_yjr2SmLupFw2NizyNFMyTjQZ-KrOIE9_AuAeiY1_mQ&oe=6ACAA9F4&_nc_sid=94fea1",
"requested_by_viewer": false,
"username": "chrishemsworth"
}
},
"… 74 more items in the full response"
]
}
},
"viewer": []
},
"status": "ok"
}
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Instagram | $0.001 प्रति कॉल | JSON |
Instagram | $0.001 प्रति कॉल | JSON |
Instagram | $0.001 प्रति कॉल | JSON |
Instagram | $0.001 प्रति कॉल | JSON |
Instagram | $0.001 प्रति कॉल | JSON |
Instagram | $0.001 प्रति कॉल | JSON |
गाइड्स:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
प्रश्न
https://api.sandbase.ai/v1/api/instagram/v1/related-profiles पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: user_id (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Instagram Related Profiles SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Instagram API access के लिए आवेदन करने की आवश्यकता नहीं है।