What is an Instagram User ID?
Every Instagram account has a unique numeric User ID (also called PK or Primary Key) that is different from the visible username. While usernames can be changed at any time, the numeric ID remains constant throughout the life of the account.
Instagram User IDs are widely used by developers working with the Instagram API, social media managers automating workflows, marketers running influencer campaigns, and analysts tracking account metrics. The numeric ID is the most reliable way to reference an Instagram account programmatically.
Instagram sees more handle churn than most platforms. Creators rebrand, agencies rotate account names between campaigns, and personal accounts get renamed on a whim. Each breaks a stored username, while the numeric ID does not move. Our article on User ID versus username works through the practical consequences.
Instagram Identifiers Compared
Instagram has more than one thing people call "the ID", and documentation for Meta's APIs uses names that do not appear anywhere in the app. This table lines them up.
| Identifier | Example shape | Can it change? | Mainly used for |
|---|---|---|---|
| User ID (pk) | Digits only | No | Identifying the account, stable database keys |
| Username / handle | @name | Yes, by the owner | Sharing links, mentions, search |
| Display name | Free text | Yes | What people read, never an identifier |
| Business Account ID | Digits only | Tied to the linked Page | Instagram Graph API calls for business accounts |
| Media ID | Long numeric string | No | A single post, reel or photo, not an account |
| Shortcode | Mixed characters in a /p/ URL | No | The public link to one post |
Two rows are worth reading twice. The Instagram Graph API is built around business and creator accounts linked to a Facebook Page, so the identifier it wants is not simply whatever number a public profile exposes; Meta sets out the requirements in its Instagram Platform documentation. And a Media ID identifies one post, so passing it where an account ID is expected fails even though both are just digits.
How to Find Instagram User ID
Go to the Instagram profile
Open Instagram in your browser and navigate to the profile you want to look up.
Copy the profile URL
Copy the URL from your browser, e.g. https://www.instagram.com/username
Paste and click "Get UID"
Paste the URL into the field above and get the numeric User ID instantly.
Why You Need an Instagram User ID
API Development
Required for Instagram Graph API and Basic Display API calls.
Influencer Marketing
Track and verify influencer accounts reliably across campaigns.
Data Analysis
Use IDs as stable references in databases and analytics tools.
Account Verification
Confirm account identity even after username changes.
Finding an Instagram User ID Without a Tool
There is nothing secret about where this number lives, and it is useful to know the manual routes. They work when a lookup tool is having a bad day, and they tell you what the tool is actually doing.
Search the page source
Open the profile in a desktop browser, view the page source, and search for "profile_id", "user_id" or "pk". Which key is present depends on how the page was rendered, so try each rather than expecting one fixed location. Treat these as hints, not a recipe: Instagram reorganises its front end regularly and such details go stale.
Watch the network tab
With developer tools open on the Network tab, loading a profile produces requests whose JSON responses carry the account identifier. This takes longer than reading the HTML but survives some changes that break a plain source search, because the data is still in the response even when the page template has moved it around.
Use Meta's own tooling for your own account
If the account is yours and it is a business or creator account linked to a Facebook Page, the supported route is Meta's API rather than page scraping. The Graph API Explorer returns the account identifier given a valid token and the right permissions, and that identifier is the one Instagram endpoints accept. It is the only method with a documented contract behind it, which is why it is worth the setup if you are building something rather than looking up one account.
When a Lookup Fails, and What to Try
Instagram is stricter than most platforms about anonymous page requests, so failures here are more often about access than about bad input. Working through these in order usually finds the cause.
The link points to a post, reel or story
A /p/, /reel/ or /stories/ URL identifies content, not an account. Open the profile itself and copy instagram.com/username with nothing after it, including no tracking parameters such as ?igsh=.
The username changed or the account is gone
Renames are common on Instagram. An old handle may now point at nothing, or at a different person who claimed the freed-up name. Deleted and disabled accounts return nothing at all. If you are unsure, search Instagram for the display name and copy the current URL.
Instagram asked for a login instead of serving the page
Anonymous requests are sometimes answered with a login wall rather than profile content. There is then nothing in the response to read, and retrying immediately will not help. Waiting and trying later is the only reliable response.
Rate limiting, or a markup change
Many requests in quick succession get throttled upstream, so spread them out; for genuine volume, build against Meta's API with your own credentials instead. Separately, any method that reads a rendered page depends on that page's shape, and Instagram front-end changes break lookups until they are updated. An intermittent failure on a link that worked before is usually one of these rather than anything you did.
What an Instagram ID Does Not Give You
The number identifies an account. That is the entire scope of it. It is not a key, a token or a permission, and it does not change what Instagram will show you. Private posts, story views, follower lists on private accounts, direct messages and contact details all stay behind Instagram's own checks.
This matters most for private accounts, the case people ask about most. A lookup often returns an ID for one, because the ID sits on a profile page Instagram serves to everyone, while the posts behind it stay invisible. For the detail of what is and is not visible, see what others can see on a private Instagram account. Services advertising private post viewing by ID do not work the way they claim.
On data handling: lookups run on our server, and the link you submit is recorded along with the resulting ID. We never ask for your Instagram password and nothing here requires a login. Specifics are in our privacy policy. If account security rather than identification brought you here, the 2FA code generator is the relevant page.
Frequently Asked Questions
Is this free?
Yes, this tool is free with no registration required and no lookup quota.
Can I find the ID of a private Instagram account?
Often, yes. A private account still has a public profile page, so the numeric ID can usually be read from it. The ID is all you get: privacy settings still control who can see the account's posts, followers and stories.
What is the difference between a username and a User ID?
A username such as @johndoe is a handle the owner picks and can change at any time. The User ID is a permanent numeric value Instagram assigns internally and never reissues. Store the ID if you need a reference that survives a rename.
What is the PK, and is it the same as the User ID?
Yes. Instagram's own responses often label the numeric account identifier "pk", short for primary key. When a tool or an API response shows you a pk, that is the User ID under a different name.
Is the User ID the same as the Instagram Business Account ID used by the Graph API?
Not necessarily. Meta's Instagram Graph API works with a business or creator account connected to a Facebook Page, and the ID used there comes from that connection. Do not assume a number taken from a public profile page will work in a Graph API call; check which identifier the endpoint documents.
Why does a lookup sometimes return nothing?
Common causes are a link that is not a profile URL, a deleted or renamed account, a markup change on Instagram's side, or rate limiting. Pasting the plain instagram.com/username form clears most cases.
Does the User ID change if the account switches between personal, creator and business?
No. Switching the account type changes what features it has, not which account it is, so the numeric ID is not reassigned.
Can I see who viewed a profile or read private posts with an ID?
No. Instagram does not expose profile viewers to anyone, and an ID gives no access to private content. Any service claiming otherwise is not telling the truth.
Other platforms work along similar lines but each has its own twist. See Facebook UIDs, TikTok user IDs, Twitter/X user IDs and YouTube channel IDs, or start with the overview of social media user IDs.