# Snapchat 主页或对象详情 API (snapchat.profile)

- Canonical page: [https://everyinfra.com/snapchat-api/profile](https://everyinfra.com/snapchat-api/profile?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "snapchat", "action": "profile", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=snapchat&action=profile

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | 公开创作者账号短名，可写 @用户名，或 snapchat.com/add/用户名、snapchat.com/@用户名 链接。profile 取公开资料，stories 取当前公开故事，user_posts 取 Spotlight 短视频；不读取私聊或仅好友可见故事。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| business_profile_id | 企业账号 ID。 |
| username | 用户名（@handle）。 |
| display_name | 显示名，可能与 username 不同。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| profile_type | 账号类型（个人/公众人物/企业）。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| subcategory | 子分类。 |
| subscriber_count | 订阅者数。 |
| is_verified | 是否为平台认证账号（蓝V等）。null 表示无法判定。 |
| website | 账号或商家填写的外链网址。 |
| address | 详细地址，原文透传。 |
| has_story | 当前是否有可看的 Story。 |
| lens_count | 滤镜(Lens)数量。创作者账号的核心产出指标之一。 |
| highlight_count | 精选集数量。 |
| spotlight_count | Spotlight（短视频流）作品数。 |
| url | 该记录在原平台上的可访问链接。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| snapcode_url | Snapcode 图片（扫码关注用的黄色码）。 |
| hero_image_url | 主页头图。 |
| created_at | 创建时间，格式同 posted_at。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| related_accounts | platform-native meaning |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "snapchat",
  "action": "profile",
  "params": {
    "username": "<SNAPCHAT_USERNAME>"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "snapchat",
        "action": "profile",
        "params": {
            "username": "<SNAPCHAT_USERNAME>",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "snapchat",
  "action": "profile",
  "results": {
    "business_profile_id": …,
    "username": …,
    "display_name": …,
    "bio": …,
    "profile_type": …,
    "category": …,
    "subcategory": …,
    "subscriber_count": …,
    "is_verified": …,
    "website": …,
    "address": …,
    "has_story": …,
    "lens_count": …,
    "highlight_count": …,
    "spotlight_count": …,
    "url": …,
    "avatar_url": …,
    "snapcode_url": …,
    "hero_image_url": …,
    "created_at": …,
    "platform": …,
    "related_accounts": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=snapchat
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
