How to fetch an Instagram profile by handle
Get a public Instagram profile's followers, bio, verification, links, and business details by handle
On this page
You have 40 Instagram creator handles and need to fill a comparison table before an outreach decision. The table records followers, bio, verification and business flags for each creator. Fetch each public profile by handle with anyapi.instagram.profile, then use the worksheet to rank which creators to contact first
The worksheet below is the deliverable: one row per handle, with the profile fields and a decision column. This article is a design, not a run record. Values here are placeholders showing the shape
The task and the worksheet
The shortlist has 40 handles, copied from profile URLs or a saved list. The tool returns the public profile for a handle. Use one row per handle and keep the decision column separate from the fetched fields so you can recheck the rule later
| Handle | Display name | Followers | Following | Posts | Bio | Verified | Private | Category | Is business | Decision |
|---|---|---|---|---|---|---|---|---|---|---|
| (handle) | (text) | (integer) | (integer) | (integer or null) | (text) | (true or false) | (true or false) | (text or absent) | (true or false) | contact, review or skip |
posts can be null when the serving source does not report it. category is absent when the account publishes no category. isBusiness is useful as a comparison flag, and requireFields can name it when you need a source that returns it
Example input and table design
Example handle: roamcoffee. The handle is invented for this guide; replace it with a real creator handle. The tool takes an Instagram username without the @ prefix. A profile URL ending in /roamcoffee/ becomes roamcoffee
For the 40-handle run, put the cleaned handle in the first column and leave the fetched fields empty until the agent returns the table. The decision column stays blank until you read the output fields and apply your outreach rule
What the tool takes
anyapi.instagram.profile takes handle as required. The catalog describes handle as the Instagram username, without an @ prefix. The catalog lists the path; the tool is called through POST /v1/runs with toolId anyapi.instagram.profile
requireFields is optional. It accepts contactMethod, highlightsCount, isBusiness and posts. The contract says requireFields names the output fields this request must be able to return, for example contactMethod, and the request is served only by a source that returns those named fields. Fields you do not name are still returned whenever the serving source has them
This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge
How to read the output fields
The response has found and data. When found is false, reason is present and its value is not_found. The contract says a found: false answer is a successful call, not an error. When found is true, data holds the profile fields
Use these fields to fill the decision column:
displayName: account display namefollowersandfollowing: counts for the accountposts: total posts; null when the serving source does not report itbio: profile biography textverified: whether the account carries Instagram's verified badgeprivate: whether the account is privatecategory: Instagram's category label; absent when the account publishes no categoryisBusiness: whether Instagram flags the account as a business accountbioLinksandexternalUrl: links the account publishes;bioLinkslists the links in bio in the order Instagram returns them, andexternalUrlis the single website linkcontactMethod: the contact button label, for example CALL, TEXT, EMAIL or UNKNOWN
contactMethod has a limit that affects the outreach step. It only reports the profile's contact button label. This field cannot supply the underlying email or phone number; Instagram no longer publishes that to unauthenticated callers
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch public Instagram profiles for the handles below. Before running anything, check the current inputs and price of anyapi.instagram.profile. Pass handle without the leading @. Do not set requireFields unless a table column needs a field that the default source may omit; if you set it, use only contactMethod, highlightsCount, isBusiness or posts. Call the tool once per handle. Return a table with handle, displayName, followers, following, posts, bio, verified, private, category, isBusiness and decision. Leave a field empty when it is absent or null, and record found:false as not found, not as an error. The decision column is for contact, review or skip. Do not guess profile data and do not infer email or phone from contactMethod.
Example handle, replace with your own:
roamcoffeeEstimated tool cost
Prices from the Purrkey catalog, read November 13, 2026. The tool is listed as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The cost table below gives ceilings, not settled charges
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One profile | calls x max price | $0.0024 per call | 1 | $0.0024 |
| 40-profile shortlist | calls x max price | $0.0024 per call | 40 | $0.096 |
A found: false response is a successful call, so it still uses a planned call in this table. Model fees for the agent are not counted
Next action
Open the tool page to check the current input schema and price before you run the 40 handles: Instagram profile tool
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Instagram.FAQ
How do I fetch an Instagram profile by handle?
Pass the handle without the leading @ to anyapi.instagram.profile and read the response fields. The output includes found and data, with profile fields when the profile is found.
What inputs does anyapi.instagram.profile take?
handle is required and is the Instagram username without the leading @. requireFields is optional and accepts contactMethod, highlightsCount, isBusiness and posts.
What do found and reason mean in the output?
found is a boolean in the response, and reason is present only when found is false with the value not_found. A found: false answer is a successful call, not an error.
What does contactMethod return?
It returns the contact button label, for example CALL, TEXT, EMAIL or UNKNOWN, when the account exposes one. It cannot supply the underlying email or phone number; Instagram no longer publishes that to unauthenticated callers.
How much does it cost to fetch 40 Instagram profiles?
The 40-profile plan is at most $0.096: 40 calls at $0.0024 per call. One profile is at most $0.0024. The table marks these totals as ceilings, and agent model fees are not counted.
What happens when requireFields names a field the cheapest source cannot return?
A dearer source serves the request, and you are quoted and charged its price. The named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Next step
Try this with Instagram
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.