# Snapchat Profile (`snapchat.profile`)

Public Snapchat profile by username: display name, bio, subscriber count, category, website and curated story highlights.

Docs: https://primaryapi.com/docs/api-reference/snapchat/profile

- Endpoint: `POST https://api.primaryapi.com/v1/run/snapchat.profile`
- Category: Social · Platform: `snapchat` · Kind: lookup · Status: live
- Price: 1 credit per call; up to 4 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=snapchat.profile`
- Execution: synchronous (answers 202 only if it outlives the wait window)

## Input

| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| `username` | string | yes |  | max 200 chars | Snapchat username or profile URL (e.g. "nasa" or https://www.snapchat.com/add/nasa). |

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 | Snapchat username |
| `displayName` | string \| null |  |
| `bio` | string \| null |  |
| `category` | string \| null | Category slug, e.g. "business-group" (empty for most creators) |
| `subcategory` | string \| null |  |
| `subscribers` | integer \| null |  |
| `image` | string \| null | Profile picture URL |
| `website` | string \| null |  |
| `url` | string | https://www.snapchat.com/add/<handle> |
| `badge` | integer \| null | Raw Snapchat badge level (1 on official / star accounts) |
| `stories` | object[] | Curated public story highlights |
| `stories[].id` | string \| null |  |
| `stories[].storyTitle` | string \| null |  |
| `stories[].thumbnailUrl` | string \| null |  |
| `items` | object[] | The same profile as a one-element list (AnyAPI-compatible shape) |
| `items[].handle` | string | Snapchat username |
| `items[].displayName` | string \| null |  |
| `items[].bio` | string \| null |  |
| `items[].category` | string \| null | Category slug, e.g. "business-group" (empty for most creators) |
| `items[].subcategory` | string \| null |  |
| `items[].subscribers` | integer \| null |  |
| `items[].image` | string \| null | Profile picture URL |
| `items[].website` | string \| null |  |
| `items[].url` | string | https://www.snapchat.com/add/<handle> |
| `items[].badge` | integer \| null | Raw Snapchat badge level (1 on official / star accounts) |
| `items[].stories` | object[] | Curated public story highlights |
| `items[].stories[].id` | string \| null |  |
| `items[].stories[].storyTitle` | string \| null |  |
| `items[].stories[].thumbnailUrl` | string \| null |  |

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/snapchat.profile" \
  -H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"nasa"}'
```

## 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": "nasa",
      "displayName": "NASA",
      "bio": "Explore the universe and discover our home planet with official NASA snaps.",
      "category": "business-group",
      "subcategory": "government-org",
      "subscribers": 752000,
      "image": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvUVg2VHZkaDBHNUMzcXVidWhWaTJhP2JvPUVnMGFBQm9BTWdFRVNBSlFHV0FCJnVjPTI1._RS0,90_FMjpeg",
      "website": "https://www.nasa.gov",
      "url": "https://www.snapchat.com/add/nasa",
      "badge": 1,
      "stories": [
        {
          "id": "ddf02468-ae16-4fc6-b1bc-bde7e1e22218",
          "storyTitle": "Moon Joy",
          "thumbnailUrl": "https://cf-st.sc-cdn.net/d/wAUDrJs74QBAl504N3DhT.410?mo=GjUaFDIBBDoBfUIGCMWw5M4GSAJQXmABUMUBWhBEZkxhcmdlVGh1bWJuYWlsogEHCJoDIgISAA%3D%3D&uc=94"
        }
      ],
      "items": [
        {
          "handle": "nasa",
          "displayName": "NASA",
          "bio": "Explore the universe and discover our home planet with official NASA snaps.",
          "category": "business-group",
          "subcategory": "government-org",
          "subscribers": 752000,
          "image": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvUVg2VHZkaDBHNUMzcXVidWhWaTJhP2JvPUVnMGFBQm9BTWdFRVNBSlFHV0FCJnVjPTI1._RS0,90_FMjpeg",
          "website": "https://www.nasa.gov",
          "url": "https://www.snapchat.com/add/nasa",
          "badge": 1,
          "stories": [
            {
              "id": "ddf02468-ae16-4fc6-b1bc-bde7e1e22218",
              "storyTitle": "Moon Joy",
              "thumbnailUrl": "https://cf-st.sc-cdn.net/d/wAUDrJs74QBAl504N3DhT.410?mo=GjUaFDIBBDoBfUIGCMWw5M4GSAJQXmABUMUBWhBEZkxhcmdlVGh1bWJuYWlsogEHCJoDIgISAA%3D%3D&uc=94"
            }
          ]
        }
      ]
    }
  },
  "provider": "PrimaryAPI",
  "credits": 1,
  "items": 1,
  "requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z"
}
```

## Pricing and reliability

- Usual price: 1 credit per call
- Price ceiling: up to 4 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=snapchat.profile`

## 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`. See https://primaryapi.com/docs/errors.

## Notes

Public profiles only. A personal (non-public) account is reported with its handle only where the source exposes it; other sources return not_found for it.

