Skip to main content
GET
/
v1
/
raw
/
instagram
/
profile
/
{username}
JavaScript
import Influship from 'influship';

const client = new Influship({
  apiKey: process.env['INFLUSHIP_API_KEY'], // This is the default and can be omitted
});

const response = await client.raw.instagram.getProfile('fitness_coach_jane');

console.log(response.data);
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "creator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "platform": "instagram",
    "username": "fitness_coach_jane",
    "display_name": "Jane Fitness",
    "bio": "Fitness coach & wellness advocate",
    "avatar_url": "<string>",
    "url": "https://www.instagram.com/fitness_coach_jane",
    "external_url": "<string>",
    "is_verified": true,
    "is_business": true,
    "is_private": false,
    "category": "Health/Beauty",
    "pronouns": [
      "<string>"
    ],
    "metrics": {
      "followers": 125000,
      "following": 1200,
      "posts": 450,
      "posts_last_30d": 12,
      "engagement_rate": 3.5,
      "avg_likes_recent": 4500,
      "avg_comments_recent": 120,
      "avg_views_recent": 15000,
      "posts_per_week": 2.5
    },
    "growth": {
      "followers_30d_pct": 2.5
    },
    "activity": {
      "last_post_at": "2023-11-07T05:31:56Z"
    },
    "data_updated_at": "2023-11-07T05:31:56Z",
    "scraped_at": "2024-01-15T14:30:00Z",
    "posts": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "platform_id": "CxYz123ABC",
        "url": "https://www.instagram.com/p/CxYz123ABC",
        "posted_at": "2024-01-15T14:30:00Z",
        "type": "image",
        "caption": "Starting the week with a killer workout! πŸ’ͺ",
        "media_url": "https://cdn.example.com/media/post123.jpg",
        "likes_count": 4500,
        "comments_count": 120
      }
    ]
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

username
string
required

Username on the platform

Required string length: 1 - 50
Example:

"fitness_coach_jane"

Query Parameters

include_posts
boolean

Include recent posts in response

Example:

true

post_limit
integer
default:12

Number of posts to include

Required range: 1 <= x <= 50
Example:

12

Response

Successful response

data
object
required

Live scraped profile data