Composites

Look up a handle on TikTok, Instagram and YouTube

Look up one handle on TikTok, Instagram and YouTube in one call. dryRun=true returns the quote for 0 credits; failed lookups are refunded, and the receipt…

GET/v1/composites/profile-everywhere
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
handlestringrequiredquery

The handle to look up on every platform, with or without a leading @.

min 1 chars · max 100 chars

platformsarrayoptionalquery

Platforms to look the handle up on, comma-separated: `tiktok`, `instagram`, `youtube`. All three when absent.

any of: tiktok, instagram, youtube (comma-separated)

dryRunbooleanoptionalquery

When true, returns the quote (the most this call can cost) and runs nothing, for 0 credits.

maxCreditsintegeroptionalquery

The most you approve this call to cost. When the quote is higher, nothing runs and nothing is charged. Send the quote a dry run returned to approve exactly that.

≥ 1 · ≤ 10000

Response fields
46

Endpoint-specific response payload.

datahandle
string
datadryRun
boolean

The price of this call, worked out before anything runs.

dataquotecredits
integer

The most this call can cost: every leg at its price. A run holds this much and charges only what its legs cost.

≥ 0

dataquotelegs[]key
string

The leg's name within this composite.

dataquotelegs[]endpoint
string

The Social Fetch endpoint the leg calls, by its id.

dataquotelegs[]credits
integer

The most this leg can cost: the endpoint's own price.

≥ 0

Each platform's lookup; a platform not asked for is null. Null on a dry run.

One platform's lookup.

dataprofilestiktokok
boolean

Whether this platform's lookup answered.

dataprofilestiktokdata
objectnullable

The lookup's `data`, exactly as its own endpoint returns it (GET /v1/tiktok/profiles/{handle}, GET /v2/instagram/profiles/{profile}, GET /v1/youtube/channel). Null when it failed.

Why the lookup failed; null when it answered.

dataprofilestiktokerrorcode
string
dataprofilestiktokerrormessage
string

One platform's lookup.

dataprofilesinstagramok
boolean

Whether this platform's lookup answered.

dataprofilesinstagramdata
objectnullable

The lookup's `data`, exactly as its own endpoint returns it (GET /v1/tiktok/profiles/{handle}, GET /v2/instagram/profiles/{profile}, GET /v1/youtube/channel). Null when it failed.

Why the lookup failed; null when it answered.

dataprofilesinstagramerrorcode
string
dataprofilesinstagramerrormessage
string

One platform's lookup.

dataprofilesyoutubeok
boolean

Whether this platform's lookup answered.

dataprofilesyoutubedata
objectnullable

The lookup's `data`, exactly as its own endpoint returns it (GET /v1/tiktok/profiles/{handle}, GET /v2/instagram/profiles/{profile}, GET /v1/youtube/channel). Null when it failed.

Why the lookup failed; null when it answered.

dataprofilesyoutubeerrorcode
string
dataprofilesyoutubeerrormessage
string

What ran and what it cost; null on a dry run.

datareceiptcreditsQuoted
integer

≥ 0

datareceiptcreditsCharged
integer

What the call cost: the same as `meta.creditsCharged`.

≥ 0

datareceiptcreditsRefunded
integer

The part of the quote given back: what failed legs, and legs that cost less than their price, didn't use.

≥ 0

datareceiptlegs[]key
string

The leg's name within this composite.

datareceiptlegs[]endpoint
string

The Social Fetch endpoint the leg called, by its id.

datareceiptlegs[]status
string

`ok` when the call answered, `failed` when it didn't.

one of: ok, failed

datareceiptlegs[]creditsQuoted
integer

≥ 0

datareceiptlegs[]creditsCharged
integer

What this leg cost. A failed leg costs nothing unless its endpoint charges that failure when called on its own.

≥ 0

datareceiptlegs[]errorCode
stringnullable

The endpoint's error code when the leg failed.

datareceiptlegs[]ms
integer

How long the leg took, in milliseconds.

≥ 0

Metadata describing the request and billing outcome.

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: v1

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/v1/composites/profile-everywhere?handle=charlidamelio" \
  -H "x-api-key: $SOCIALFETCH_API_KEY"

Responses

Each platform's lookup, the quote and the receipt. With `dryRun=true`, the quote only, for 0 credits.