Search Instagram profiles

Search Instagram profiles by keyword, optionally with each account's follower counts.

GET/v2/instagram/profiles/search
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
querystringrequiredquery

Name or keyword to search accounts for.

min 1 chars · max 512 chars

cursorstringoptionalquery

`nextCursor` from the previous page.

min 1 chars · max 16384 chars

includearrayoptional+1 / accountquery

Optional extras, comma-separated: `metrics` fills each account's follower, following and post counts (+1 credit per account filled).

any of: metrics (comma-separated)

Response fields
28

Endpoint-specific response payload.

Accounts matching the query, in Instagram's relevance order. Empty when nothing matches. An account shown on an earlier page isn't repeated.

dataaccounts[]id
stringnullable

Instagram user id.

pattern: ^\d+$

dataaccounts[]handle
stringnullable

Username, without @.

dataaccounts[]displayName
stringnullable

Display name.

dataaccounts[]avatarUrl
stringnullable

Profile picture. Instagram CDN URL; it expires after a while.

dataaccounts[]verified
booleannullable

Whether the account is verified.

dataaccounts[]privateAccount
booleannullable

Whether the account is private.

Follower, following and post counts, with `include=metrics`. Null when not asked for, or when this account's profile couldn't be read (not charged).

dataaccounts[]metricsfollowers
integernullable

Followers.

≥ 0

dataaccounts[]metricsfollowing
integernullable

Accounts followed.

≥ 0

dataaccounts[]metricsposts
integernullable

Posts on the profile.

≥ 0

Pagination state. Pass `nextCursor` as `cursor` for the next page while `hasMore` is true.

datapagekind
string

one of: cursor, offset, page

datapagenextCursor
stringnullable
datapagehasMore
booleannullable

Null when continuation is unknown for this page.

datapagestart
integernullable

≥ 0

datapagepage
integernullable

≥ 0

datapagecount
integernullable

≥ 0

datapagereturnedCount
integer

≥ 0

datapagetotal
integernullable

≥ 0

datapagetotalPages
integernullable

≥ 0

Metadata about the API response.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v2

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v2/instagram/profiles/search?query=fitness%20coach" \
  -H "x-api-key: $SOCIALFETCH_API_KEY"

Responses

Profile search results.