English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/research/instagram/userLook up another Instagram account by username. Returns its public profile: name, bio, website, and the number of followers, accounts it follows, and posts.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizresearch:readMusic & Research
Instagram only lets an app look up other accounts through an account connected with a Meta Business login, so the lookup runs through the Instagram account in accountId with Music & Research turned on. Turn it on with Authorize Instagram Music & Research and Connect Instagram Music & Research, or with Turn On on the account's card in the dashboard (how). Without it, the request fails with 400 turn on music and research for this instagram account first.
| Parameter | Type | Required | Description |
|---|---|---|---|
accountId | string | Yes | ID of a connected Instagram account with Music & Research turned on (additional.isUnified: true), the _id from Get Account. The lookup runs with its access. |
username | string | Yes | Instagram username to look up, with or without @, for example instagram. A value that can't be an Instagram username returns 400 invalid instagram username. |
The lookup uses Instagram's Business Discovery, so only Business and Creator accounts can be looked up. For a personal or private account, or a username that doesn't exist, the request fails with Instagram's own error.
name is the username when the account has no name.statistic has the follower, following, and media (posts) counts.isVerified is always false, because Instagram doesn't share it.To list the account's posts, use Search Content User Instagram.
curl -X GET "https://api.repliz.com/public/research/instagram/user?accountId=680affa5ce12f2f72916f67e&username=instagram" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const response = await axios.get('https://api.repliz.com/public/research/instagram/user', {
params: {
accountId: '680affa5ce12f2f72916f67e',
username: 'instagram',
},
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
});
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const response = await fetch(
'https://api.repliz.com/public/research/instagram/user?accountId=680affa5ce12f2f72916f67e&username=instagram',
{
headers: {
Authorization: `Basic ${credentials}`,
},
},
);
const data = await response.json();
console.log(data);{
"name": "Instagram",
"username": "instagram",
"picture": "https://scontent.cdninstagram.com/v/t51.2885-19/picture.jpg",
"biography": "Discover what's new on Instagram",
"website": "https://about.instagram.com",
"isVerified": false,
"statistic": {
"follower": 690000000,
"following": 240,
"media": 8200
}
}{
"code": 400,
"message": "turn on music and research for this instagram account first"
}{
"code": 404,
"message": "account not found"
}{
"code": 401,
"message": "unauthorized"
}