Instagram API: Get profile
Gets an Instagram account's public profile from its username, @name or profile link: name, bio, exact follower, following and post counts, verified and private flags, first bio link, profile picture and account ID.
Unofficial. Not affiliated with or endorsed by Instagram.
Inputs
Values from the run on Oct 31, 2026, shown under Output.
- Username, required
username Instagram account name, @name, or profile link, such as natgeo.
natgeo
Input as JSON
{ "username": "natgeo"}Output
{ "bio": "Step into wonder and find your inner explorer with National Geographic 🌎", "posts": 32023, "username": "natgeo", "followers": 268509119, "following": 194, "full_name": "National Geographic", "is_private": false, "is_verified": true, "profile_link": "https://www.instagram.com/natgeo/" , "website_link": "http://visitstore.bio/natgeo" , "instagram_user_id": "787132", "profile_picture_link": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy40MDAuQzMifQ%3D%3D&_nc_ohc=8I4cSqVKBtQQ7kNvwFPYPAR&_nc_oc=Adpk5_vRF4yEi9yEzRBLCxjyut5W…" }Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"instagram.com/get_profile","input":{"username":"natgeo"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "instagram.com/get_profile" , "input": { "username": "natgeo" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "instagram.com/get_profile" , "input": { "username": "natgeo" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run instagram.com/get_profile# with {"username":"natgeo"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "username" ], "properties": { "username": { "type": "string", "description": "Instagram account name, @name, or profile link, such as natgeo." } }}Output schema
{ "type": "object", "required": [ "username", "full_name", "bio", "followers", "following", "posts", "is_verified", "is_private", "website_link", "profile_picture_link", "profile_link", "instagram_user_id" ], "properties": { "bio": { "type": "string", "description": "Public profile biography." }, "posts": { "type": "integer", "description": "Number of posts." }, "username": { "type": "string", "description": "Account username." }, "followers": { "type": "integer", "description": "Number of followers." }, "following": { "type": "integer", "description": "Number of followed accounts." }, "full_name": { "type": "string", "description": "Account display name." }, "is_private": { "type": "boolean", "description": "Whether the account is private." }, "is_verified": { "type": "boolean", "description": "Whether the account is verified." }, "profile_link": { "type": "string", "description": "Instagram profile link." }, "website_link": { "type": [ "string", "null" ], "description": "First website link listed on the profile." }, "instagram_user_id": { "type": "string", "description": "Instagram account ID." }, "profile_picture_link": { "type": [ "string", "null" ], "description": "Profile picture link." } }}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
instagram.com/get_profile- Returns
- username, full name, bio, followers, following, posts, verified, private, website link, profile picture link, profile link, Instagram user ID
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method instagram.com/get_profile with the inputs above.
Ask your agent
- How many followers does @nasa have right now? I need the exact number, not a rounded one.
- Pull the bio, follower count and verified status for instagram.com/selenagomez
- Is the account therock private or public, and what link does he have in his bio?
- Get me the profile picture URL and numeric user ID for the account @nike
- Look up the Instagram handle bonappetitmag and tell me its full name, post count and how many accounts it follows.
See more
All Instagram methodsGets an Instagram account's follower count plus its posting and engagement over the last 30 days: posts published, average views of its videos and reels, and average likes and comments per post, from a username or profile link.
instagram.com/get_engagement_stats_2Lists the latest publicly embeddable posts and reels from an Instagram account, newest first. Without login Instagram may show fewer posts than requested. View counts that are not available are null.
instagram.com/list_recent_postsLooks up public Instagram account totals, engagement and grade on Social Blade by handle or profile link. Daily history and 30-day follower change need a Social Blade sign-in, so they are not returned.
socialblade.com/get_instagram_statsGets the public X profile for a username or profile link, including counts, verification, images and account details. Does not include posts or a timeline.
x.com/get_profileGets a TikTok creator's public profile and totals (followers, following, likes, videos) from a username, @handle or profile link. Profiles not visible to public visitors cannot be returned.
tiktok.com/get_profileGets a public Threads profile by username or profile link, with bio, followers, verification, picture and bio links. Private profiles are not returned.
threads.com/get_profileGets a public Pinterest profile and its visible boards in profile order. Monthly views are null when Pinterest does not show them.
pinterest.com/get_profileGets a public Mastodon profile by handle or profile link, with its bio, counts, dates and profile fields. Major servers are read directly. Other servers are looked up through mastodon.social, and their home-server account ID is not available.
mastodon.social/get_profile