Skip to content

Search User Instagram ​

GEThttps://api.repliz.com/public/research/instagram/user

Look up another Instagram account by username. Returns its public profile: name, bio, website, and the number of followers, accounts it follows, and posts.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): research:read
  • Access Tier: Gold+

Music & 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.

Parameters ​

ParameterTypeRequiredDescription
accountIdstringYesID of a connected Instagram account with Music & Research turned on (additional.isUnified: true), the _id from Get Account. The lookup runs with its access.
usernamestringYesInstagram username to look up, with or without @, for example instagram. A value that can't be an Instagram username returns 400 invalid instagram username.

How It Works ​

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.

Example Request ​

bash
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)"
javascript
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);
javascript
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);

Response ​

json
{
  "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
  }
}
json
{
  "code": 400,
  "message": "turn on music and research for this instagram account first"
}
json
{
  "code": 404,
  "message": "account not found"
}
json
{
  "code": 401,
  "message": "unauthorized"
}