# Snapchat Stories 内容 API (snapchat.stories)

- Canonical page: [https://everyinfra.com/snapchat-api/stories](https://everyinfra.com/snapchat-api/stories?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "snapchat", "action": "stories", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- 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=stories

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | 公开创作者账号短名，可写 @用户名，或 snapchat.com/add/用户名、snapchat.com/@用户名 链接。profile 取公开资料，stories 取当前公开故事，user_posts 取 Spotlight 短视频；不读取私聊或仅好友可见故事。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| story_id | Story ID。 |
| story_title | Story 标题。 |
| media_url | 媒体链接。 |
| thumbnail_url | 缩略图链接，分辨率低于 image_url。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| username | 用户名（@handle）。 |
| author_name | 作者昵称（显示名）。 |
| author_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": "stories",
  "params": {
    "username": "fcbarcelona"
  }
}'
```

```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": "stories",
        "params": {
            "username": "fcbarcelona",
        },
    },
    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; the list keeps the first 2 of 203. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "snapchat",
  "action": "stories",
  "results": [
    {
      "id": "55a4f40c",
      "story_id": "940c30d9",
      "story_title": "🌕🔵🔴",
      "media_url": "https://cf-st.sc-cdn.net/d/va9S7MHI1eESZ2IkPIyMA.1322.IRZXSOY?mo=GloaGBoAGgAyAQQ6AX1CBgipn8O4BkgCUF5gAVoHRGZNZWRpYaIBMAiqChIeChwgAUoWChEWCQoRCw0HCDgJBgUEBAMEAxD0A2gCIgsSACoHSVJaWFNPWZADgEY%3D&uc=94",
      "thumbnail_url": "https://cf-st.sc-cdn.net/d/va9S7MHI1eESZ2IkPIyMA.410.IRZXSOY?mo=Gj8aGBoAGgAyAQQ6AX1CBgipn8O4BkgCUF5gAVoQRGZMYXJnZVRodW1ibmFpbKIBEAiaAyILEgAqB0lSWlhTT1k%3D&uc=94",
      "posted_at": "2024-10-16T19:01:13+00:00",
      "username": "fcbarcelona",
      "author_name": "•••",
      "author_url": "https://www.snapchat.com/•••",
      "platform": "snapchat"
    },
    {
      "id": "3ae0411b",
      "story_id": "940c30d9",
      "story_title": "🌕🔵🔴",
      "media_url": "https://cf-st.sc-cdn.net/d/Q7KdutN2Y4OFTig0I9VlX.1322.IRZXSOY?mo=GloaGBoAGgAyAQQ6AX1CBgion8O4BkgCUF5gAVoHRGZNZWRpYaIBMAiqChIeChwgAUoWChEYDAwTDA8JCjoKBwYEBQQEBRD0A2gCIgsSACoHSVJaWFNPWZADgEY%3D&uc=94",
      "thumbnail_url": "https://cf-st.sc-cdn.net/d/Q7KdutN2Y4OFTig0I9VlX.410.IRZXSOY?mo=Gj8aGBoAGgAyAQQ6AX1CBgion8O4BkgCUF5gAVoQRGZMYXJnZVRodW1ibmFpbKIBEAiaAyILEgAqB0lSWlhTT1k%3D&uc=94",
      "posted_at": "2024-10-15T16:39:33+00:00",
      "username": "fcbarcelona",
      "author_name": "•••",
      "author_url": "https://www.snapchat.com/•••",
      "platform": "snapchat"
    }
  ],
  "count": 203,
  "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
