Skip to Content

Profile

A profile with its follower and following counts.

GET
/v1/instagram/profile

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

handle?string

The username, with or without @.

url?string

The profile's link (https://www.instagram.com/nike/), instead of handle.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

One item, as every single-item endpoint answers: { "data": … }.

data*

An Instagram account.

Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.instagram.profile({ handle: "natgeo" });
Example Response
{  "data": {    "id": "787132",    "username": "natgeo",    "displayName": "National Geographic",    "bio": "Step into wonder and find your inner explorer with National Geographic 🌎",    "avatarUrl": "https://scontent-bos5-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ig_cache_key=GAKLvih9nsRnYEVCAJlFVLiBvZt9bmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy40MDAuQzMifQ%3D%3D&_nc_ohc=Fzq-SLmj7IoQ7kNvwGv6Q-m&_nc_oc=Adqba9tyEQDxQEp3-B2IZh6tpjHxc5VaFSfndZ5toAR85RUYhlNWPGd0hJZIDC29xxg&_nc_zt=24&_nc_ht=scontent-bos5-1.cdninstagram.com&_nc_gid=DKToTpAPnxQ3-31AVDAh2w&_nc_ss=79b8c&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQQjsSzc6M516mz06KVhu_tGEUutW9TNo7UVxSYTkJDp-g&oe=6B0CB22B",    "url": "https://www.instagram.com/natgeo/",    "verified": true,    "private": false,    "followers": 267265090,    "following": 195,    "likes": null,    "posts": null,    "externalUrl": "http://visitstore.bio/natgeo",    "createdAt": null,    "ext": {      "bioLinks": [        {          "url": "http://visitstore.bio/natgeo",          "title": null        },        {          "url": "https://ngmdomsubs.nationalgeographic.com/servlet/OrdersGateway?cds_mag_code=NGM&cds_page_id=283562&cds_response_key=I5FX10002",          "title": "Subscribe Here!"        }      ],      "category": null,      "latestStoryAt": "2026-11-24T23:09:17.000Z",      "hasReels": true,      "threadsUsername": "natgeo",      "memorialized": false,      "moreHighlights": false    }  }}