Instagram Profile Contact Info
Contact email and phone number an Instagram creator or business publishes on its profile, including the address behind the Email and Call buttons.
- Price per call
- 1 credit
- per successful call
- Price ceiling
- 3 credits
- if a call is retried elsewhere
- Failed calls
- Free
- retried automatically
- Billed
- Per call
- only on success
Endpoint
api.primaryapi.com/ v1/ run/ instagram. profile_contactAuth: API key with run or full access, or a dashboard session
Send the input below as a JSON body. The call is routed to a healthy upstream; if an attempt fails, it is retried automatically inside the same request and you pay only for the answer you get. To check an input and see the exact price without running anything, call POST /v1/quote/instagram.profile_contact with the same body (free).
This is a restricted API: your account must be approved and accept the permissible-purpose terms first, otherwise calls return 403 restricted_api. See Restricted APIs.
Example request
curl -sS -X POST "https://api.primaryapi.com/v1/run/instagram.profile_contact" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"nasa"}'const res = await fetch('https://api.primaryapi.com/v1/run/instagram.profile_contact', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
handle: 'nasa',
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/instagram.profile_contact",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={
"handle": "nasa",
},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"]){
"name": "run_api",
"arguments": {
"sku": "instagram.profile_contact",
"input": {
"handle": "nasa"
}
}
}Price this exact input first (free)
curl -sS -X POST "https://api.primaryapi.com/v1/quote/instagram.profile_contact" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"nasa"}'Returns credits (what the call is expected to cost) and maxCredits (the most it can cost, which is set aside while it runs). Invalid input fails here the same way it would on run.
Input
JSON body fields. Unknown fields are rejected with 400 invalid_input (never silently ignored). You may add the routing controls preferLatencyUnderMs and maxCredits to the same object.
handlestringrequired- Instagram username, with or without the leading @.max 100 chars
Output
When output.found is true, output.data has these fields.
handlestring- Canonical username
userIdstring | nullurlstring | nulldisplayNamestring | nullbiostring | nullbioLinksobject[]bioLinks[].titlestring | nullbioLinks[].urlstringexternalUrlstring | nullcategorystring | nullisBusinessboolean | nullprivateboolean | nullverifiedboolean | nullcontactMethodstring | null- Contact button type shown on the profile (EMAIL, CALL, TEXT …)
publicEmailstring | null- Email address behind the profile Email button
publicPhonestring | null- Phone number behind the profile Call/Text button (+ and digits)
emailsstring[]- All public email addresses: the button address plus any found in the bio and links
phonesstring[]- All public phone numbers: the button number plus international numbers in the bio
TypeScript type
/** output.data when output.found is true */
type InstagramProfileContact = {
/** Canonical username */
handle: string;
userId: string | null;
url: string | null;
displayName: string | null;
bio: string | null;
bioLinks: {
title: string | null;
url: string;
}[];
externalUrl: string | null;
category: string | null;
isBusiness: boolean | null;
private: boolean | null;
verified: boolean | null;
/** Contact button type shown on the profile (EMAIL, CALL, TEXT …) */
contactMethod: string | null;
/** Email address behind the profile Email button */
publicEmail: string | null;
/** Phone number behind the profile Call/Text button (+ and digits) */
publicPhone: string | null;
/** All public email addresses: the button address plus any found in the bio and links */
emails: string[];
/** All public phone numbers: the button number plus international numbers in the bio */
phones: string[];
};If what you asked about does not exist, is private, or a search matches nothing, the call still succeeds: output.found is false, output.data is null and output.reason says why. Such misses are free unless the notes below say misses are billed, in which case a miss costs the price of one call.
Example response
Values are placeholders that follow the output schema (strings as "string", numbers as 0); credits shows what this call would cost at the usual price.
{
"output": {
"found": true,
"data": {
"handle": "nasa",
"userId": "string",
"url": "https://example.com",
"displayName": "string",
"bio": "string",
"bioLinks": [
{
"title": "string",
"url": "https://example.com"
}
],
"externalUrl": "https://example.com",
"category": "string",
"isBusiness": true,
"private": true,
"verified": true,
"contactMethod": "string",
"publicEmail": "string",
"publicPhone": "string",
"emails": [
"string"
],
"phones": [
"string"
]
}
},
"provider": "PrimaryAPI",
"credits": 1,
"items": 1,
"requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z"
}Pricing and reliability
Calls go only to upstreams that are healthy right now. If an attempt fails, the call is retried automatically inside the same request; a failed attempt costs nothing, and a call never costs more than its quote’s maxCredits. Live figures below are measured on real traffic.
Success rate, uptime, latency and call counts are measured live from real traffic over 30 days and show “—” until there is data.
Errors
Errors are JSON { code, error, requestId } and are never charged. The ones to handle for this endpoint:
- invalid_inputThe request failed validation before anything ran.
- unauthorizedNo valid API key or session was presented.
- insufficient_balanceThe balance cannot cover the most this call could cost.
- key_limit_reachedThe key’s own spend limit is used up for the current window.
- trial_cap_reachedAn agent trial key has used its whole trial budget.
- forbiddenThe credential is valid but may not do this.
- not_foundThe thing addressed by the URL does not exist for you.
- idempotency_conflictThe
Idempotency-Keyis already bound to a different request. - rate_limitedToo many requests in the current window.
- all_sources_failedThe call could not be answered, even after automatic retries.
- service_unavailableThis API cannot run in this deployment right now.
- timeoutThe request passed its deadline before it finished.
- restricted_apiThis API handles sensitive personal data and your account is not approved for it.
Notes
An account without published contacts is found with empty emails[]/phones[]. Bio scanning keeps only addresses and +-prefixed international numbers (no libphonenumber validation). Coverage of the Email-button address per account type is unverified until a live probe.
Returns contact details that the account holder published on Instagram. They are still personal data (GDPR/CCPA): available only to approved accounts that accept the permissible-purpose terms (lawful basis required; no spam, unsolicited bulk outreach or surveillance of individuals). Results are passed through and not retained beyond the cache window.
More Instagram endpoints
- Instagram Basic Profile1 credit
- Instagram Comment Replies1 credit
- Instagram Hashtag Recent Posts1 credit
- Instagram Highlight Detail1 credit
- Instagram Media Transcript3 credits
- Instagram Post1 credit
- Instagram Post Comments1 credit
- Instagram Profile1 credit
- Instagram Profile Search1 credit
- Instagram Reel Transcript4.38 credits per result
- Instagram Reels Search1 credit
- Instagram Reels Web Search1 credit
- Instagram Search1 credit
- Instagram Similar Profiles1 credit
- Instagram Stories (basic)3 credits
- Instagram Stories (full)3 credits
- Instagram Tagged Posts1 credit
- Instagram User Highlights3 credits
- Instagram User Posts1 credit
- Instagram User Reels1 credit
- Instagram Hashtag AnalyticsPlanned
- Instagram Hashtag SearchPlanned
- Instagram Location PostsPlanned
- Instagram Location SearchPlanned
- Instagram Profile EmbedPlanned
- Instagram Profile Search with ContactPlanned
- Instagram Reels by AudioPlanned
- Instagram Search FollowersPlanned
- Instagram Search FollowingPlanned
- Instagram Trending ReelsPlanned
- Instagram User RepostsPlanned
Generated from the PrimaryAPI catalog. Machine-readable contract: GET https://api.primaryapi.com/v1/apis/instagram.profile_contact.