# Snapchat 视频详情 API (snapchat.video)

- Canonical page: [https://everyinfra.com/snapchat-api/video](https://everyinfra.com/snapchat-api/video?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "snapchat", "action": "video", "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=video

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | video 使用具体 Spotlight 视频链接，不能用 add/ 账号链接代替视频；在账号接口中仅作为用户名解析的兼容输入。 |
| spotlight_url | not declared | no | not declared | video 的 Spotlight 链接兼容输入，低于 url 优先级；公开请求仍应填写 url。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| hashtags | 话题标签。 |
| view_count | 浏览/播放数。null 表示不公开，不等于 0。 |
| share_count | 分享/转发数。null 表示不公开，不等于 0。 |
| duration_ms | 时长，**单位毫秒**（除以 1000 才是秒）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| thumbnail_url | 缩略图链接，分辨率低于 image_url。 |
| media_url | 媒体链接。 |
| username | 用户名（@handle）。 |
| author_name | 作者昵称（显示名）。 |
| author_url | 作者在原平台的主页链接。 |
| author_avatar_url | 作者头像。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## 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": "video",
  "params": {
    "url": "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYdW94bXd5dmF5AYv9OiSkAYv9OiP4AAAAAQ"
  }
}'
```

```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": "video",
        "params": {
            "url": "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYdW94bXd5dmF5AYv9OiSkAYv9OiP4AAAAAQ",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "snapchat",
  "action": "video",
  "results": {
    "id": "W7_EDlXWTBiXAEEniNoMPwAAYdW94bXd5dmF5AYv9OiSkAYv9OiP4AAAAAQ",
    "url": "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYdW94bXd5dmF5AYv9OiSkAYv9OiP4AAAAAQ",
    "text": "Watching my birds fly #pigeons #birds #birdvideos #miketyson",
    "hashtags": [
      "#birdvideos",
      "#birds",
      "#miketyson"
    ],
    "view_count": 3136747,
    "share_count": 1376,
    "duration_ms": 15650,
    "posted_at": "2023-11-23T17:28:47.864000+00:00",
    "thumbnail_url": "https://cf-st.sc-cdn.net/d/9I7Kkrsd2CA9Jb6iCshQ0.256.IRZXSOY?mo=GkYaCTIBBEgCUC5gAVCgAVoQRGZMYXJnZVRodW1ibmFpbKIBEAiAAiILEgAqB0lSWlhTT1miARAImgoiCxIAKgdJUlpYU09Z&uc=46",
    "media_url": "https://cf-st.sc-cdn.net/d/9I7Kkrsd2CA9Jb6iCshQ0.27.IRZXSOY?mo=Gn0aCTIBBEgCUC5gAVCiAVoQU3BvdGxpZ2h0U2hhcmluZ6IBVggbEkUKQwjFon8gATCcBDjAB0ABSi4KKfIBhgGUAYEBqQGHAZoBjAGGAYUBLzMmIBQbGBYXExEZFBATExQSFRMUEPQDUKJ6aAIiCxIAKgdJUlpYU09ZkAOieg%3D%3D&uc=46",
    "username": "•••",
    "author_name": "•••",
    "author_url": "https://www.snapchat.com/•••",
    "author_avatar_url": "https://cf-st.sc-cdn.net/•••",
    "platform": "snapchat"
  },
  "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
