Get Instagram profile
TL;DR
About
Give it a handle such as natgeo and you get what the top of that profile shows (name, bio, the three counts, badges, category, link in bio) plus the numeric user_id that other Instagram scripts ask for. Say a small skincare brand has 40 creator handles from a hashtag. The team runs each one, keeps the accounts with 10,000 to 80,000 followers whose category mentions beauty, and only then pulls recent posts for the survivors before anyone gets a DM. Skip is_business in that filter, since it mirrors the business-account setting and there is no creator flag. Keep an eye on source too. With api, the data Instagram loads for a signed-in browser was captured and the counts are exact. With og_meta it was not, usually because the browser is logged out, so counts are rounded and bio, badges, category and link are null. A login wall makes the run fail, so sign in to Instagram there and retry.
Input
username requiredHandle without the @, e.g. 'natgeo'.
Output
source requiredapi = exact data from Instagram's profile API (requires a session). og_meta = public page metadata fallback when logged out: counts are approximate (K/M/B rounded), unknown fields are null. A login-walled run is NOT returned as a result — it throws — so a null-filled payload can no longer be mistaken for a profile that hides its counts.
username requiredposts optionalPublic post count; null on private/restricted views.
user_id optionalStable numeric pk as a string; null when logged out and not embedded in the public page.
category optionalbiography optionalnull in og fallback.
followers optionalApproximate (K/M/B rounded) in og fallback.
following optionalfull_name optionalis_private optionalnull when unknown (og fallback).
is_business optionalnull when unknown (og fallback).
is_verified optionalnull when unknown (og fallback).
external_url optionalprofile_pic_url optionalExample output
Shape only: placeholder values generated from the output schema, not a real run.
{
"posts": 3.5,
"source": "api",
"user_id": "abc123",
"category": "…",
"username": "…",
"biography": "…",
"followers": 1200,
"following": 3.5,
"full_name": "…",
"is_private": true,
"is_business": true,
"is_verified": true,
"external_url": "https://example.com/item/123",
"profile_pic_url": "https://example.com/item/123"
}