# TikTok Profile Contact Info (`tiktok.profile_contact`)

Public contact emails of a TikTok creator, read from the bio and the linked website, each labelled with its source.

Docs: https://primaryapi.com/docs/api-reference/tiktok/profile_contact

- Endpoint: `POST https://api.primaryapi.com/v1/run/tiktok.profile_contact`
- Category: Social · Platform: `tiktok` · Kind: enrichment · Status: live
- Price: 3 credits per call; up to 24 credits if a call is retried elsewhere. A quote’s `maxCredits` is the most a given call can cost.
- Billing unit: per successful call
- Reliability: routed to a healthy upstream and retried automatically when an attempt fails; live 30-day status: `GET https://api.primaryapi.com/v1/status/apis?sku=tiktok.profile_contact`
- Execution: synchronous (answers 202 only if it outlives the wait window)
- Restricted: yes. Requires an approved account that accepted the permissible-purpose terms (`403 restricted_api` otherwise)

## Input

| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| `handle` | string | yes |  | max 100 chars | TikTok username, with or without the leading @. |

Unknown fields are rejected with `400 invalid_input`. The routing controls `preferLatencyUnderMs` and `maxCredits` may be sent in the same JSON body.

## Output

When `output.found` is `true`, `output.data` has this shape:

| Field | Type | Description |
|---|---|---|
| `handle` | string |  |
| `userId` | string \| null |  |
| `profileUrl` | string |  |
| `displayName` | string \| null |  |
| `bio` | string \| null |  |
| `avatarUrl` | string \| null |  |
| `externalUrl` | string \| null | Link in bio. |
| `followers` | integer \| null |  |
| `following` | integer \| null |  |
| `likes` | integer \| null |  |
| `videos` | integer \| null |  |
| `verified` | boolean \| null |  |
| `private` | boolean \| null |  |
| `seller` | boolean \| null | TikTok Shop seller account. |
| `emails` | object[] | Deduplicated public addresses. Empty when none is published (still a successful lookup). |
| `emails[].email` | string | Email address as published (lower-cased). |
| `emails[].domain` | string \| null |  |
| `emails[].sourceType` | string | Where it was found: bio, website (the link in bio), or the vendor's source label (social_profile, link_in_bio …). |
| `emails[].sourceUrl` | string \| null | Page the address was read from. |
| `primaryEmail` | string \| null |  |
| `sourceType` | string \| null | sourceType of primaryEmail. |
| `sourceUrl` | string \| null | sourceUrl of primaryEmail. |
| `socialLinks` | object[] | Other profiles / sites linked from the bio or the linked page. |
| `socialLinks[].platform` | string | instagram, youtube, x, facebook, linkedin, … or website. |
| `socialLinks[].url` | string |  |
| `partial` | boolean | True when a linked page could not be scanned (blocked by robots.txt, timed out, or not fetched by policy): more addresses may exist. |

When the thing you asked about does not exist (or a search matches nothing) the call still succeeds: `output.found` is `false`, `output.data` is `null` and `output.reason` says why (`not_found`, `private`, `no_results`, …). Misses are free unless the notes below say misses are billed.

## Example request

```bash
curl -sS -X POST "https://api.primaryapi.com/v1/run/tiktok.profile_contact" \
  -H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle":"stoolpresidente"}'
```

## Example response

_Values are placeholders that follow the output schema; `credits` is what this call would cost at the usual price._

```json
{
  "output": {
    "found": true,
    "data": {
      "handle": "stoolpresidente",
      "userId": "string",
      "profileUrl": "https://example.com",
      "displayName": "string",
      "bio": "string",
      "avatarUrl": "https://example.com",
      "externalUrl": "https://example.com",
      "followers": 0,
      "following": 0,
      "likes": 0,
      "videos": 0,
      "verified": true,
      "private": true,
      "seller": true,
      "emails": [
        {
          "email": "string",
          "domain": "string",
          "sourceType": "string",
          "sourceUrl": "https://example.com"
        }
      ],
      "primaryEmail": "string",
      "sourceType": "string",
      "sourceUrl": "https://example.com",
      "socialLinks": [
        {
          "platform": "string",
          "url": "https://example.com"
        }
      ],
      "partial": true
    }
  },
  "provider": "PrimaryAPI",
  "credits": 3,
  "items": 1,
  "requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z"
}
```

## Pricing and reliability

- Usual price: 3 credits per call
- Price ceiling: up to 24 credits if a call is retried elsewhere. A quote’s `maxCredits` is the most a given call can cost; the `maxCredits` routing control caps it per call
- Live 30-day status, success rate, uptime and latency: `GET https://api.primaryapi.com/v1/status/apis?sku=tiktok.profile_contact`

## Errors to handle

`invalid_input`, `unauthorized`, `insufficient_balance`, `key_limit_reached`, `trial_cap_reached`, `forbidden`, `not_found`, `idempotency_conflict`, `rate_limited`, `all_sources_failed`, `service_unavailable`, `timeout`, `restricted_api`. See https://primaryapi.com/docs/errors.

## Notes

A lookup with no published address is a success with emails=[]. An empty result is not proof that no address exists. Unknown handles return found=false.

## Legal

Returns contact details individuals chose to publish. Requires account approval and acceptance of a permissible purpose (e.g. business partnership or press enquiries). Not for spam, unsolicited bulk outreach, surveillance or profiling of private individuals; the caller is the data controller and must meet GDPR/CCPA notice duties and CAN-SPAM/PECR/CASL rules.

