# Snapchat Posts by user API (snapchat.user_posts)

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

Snapchat Posts by user lists the public Spotlight videos one Snapchat account has posted, given its `username`. Each row carries the video's link, title, caption, summary and text, a media link and thumbnail, length, width and height, view, share and comment counts, boost and recommendation counts, and the publish time. Creator marketers and social analysts use it to see which short videos from an account draw views and shares, to compare creators before a campaign, or to archive an account's Spotlight output.

The username can be written with or without @, or as a snapchat.com/add/<name> link. `duration_ms` counts milliseconds, and `width` and `height` are pixels, which tells vertical videos from horizontal ones. A null `view_count`, `share_count` or `comment_count` means the number was not disclosed, not zero. Only Spotlight videos are listed; an account's current public Stories come from the Snapchat Stories capability.

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | Specifies a public creator handle, accepted as a plain username (with optional `@` prefix) or a full snapchat.com profile URL. This parameter retrieves public profile data for `profile`, current public stories for `stories`, or Spotlight short videos for `user_posts`. Private chats and friends-only stories are not accessible. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| summary | platform-native meaning |
| caption | platform-native meaning |
| media_url | platform-native meaning |
| thumbnail_url | Thumbnail link, lower resolution than image_url. |
| duration_ms | platform-native meaning |
| width | platform-native meaning |
| height | platform-native meaning |
| view_count | Views or plays. null means not disclosed, not 0. |
| share_count | Shares. null means not disclosed, not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| boost_count | platform-native meaning |
| recommend_count | platform-native meaning |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| username | Username (@handle). |
| author_name | Author's display name. |
| author_url | Link to the author's profile on the platform. |
| platform | Source platform identifier, the same as platform in the request (for example 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": "user_posts",
  "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": "user_posts",
        "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 16. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "snapchat",
  "action": "user_posts",
  "results": [
    {
      "id": "W7_EDlXWTBiXAEEniNoMPwAAYcWdyZmptcHNlAaDTaexlAaDTaenOAAAAAQ",
      "url": "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYcWdyZmptcHNlAaDTaexlAaDTaenOAAAAAQ",
      "text": "😮‍💨 #fcbarcelona",
      "media_url": "https://bolt-gcdn.sc-cdn.net/bp/AJ0xy8jDjv8p8o8vwPOfd.27.IRZXSOY?mo=GmMaCTIBUUgCUC5gAVCiAVoQU3BvdGxpZ2h0U2hhcmluZ6IBPAgbEisKKQj0g3AgATCcBDjAB0ABShQKD-0BdIgBiwGCAWqmAY4BfBD0A1DIM2gCIgsSACoHSVJaWFNPWZADyDM%3D&uc=46",
      "thumbnail_url": "https://bolt-gcdn.sc-cdn.net/bp/AJ0xy8jDjv8p8o8vwPOfd.256.IRZXSOY?mo=GkYaCTIBUUgCUC5gAVCgAVoQRGZMYXJnZVRodW1ibmFpbKIBEAiAAiILEgAqB0lSWlhTT1miARAImgoiCxIAKgdJUlpYU09Z&uc=46",
      "duration_ms": 6600,
      "width": 540,
      "height": 960,
      "view_count": 34713,
      "share_count": 8,
      "comment_count": 28,
      "boost_count": 4884,
      "recommend_count": 274,
      "posted_at": "2026-09-24T12:35:28.846000+00:00",
      "username": "fcbarcelona",
      "author_name": "•••",
      "author_url": "https://www.snapchat.com/@fcbarcelona",
      "platform": "snapchat"
    },
    {
      "id": "W7_EDlXWTBiXAEEniNoMPwAAYcXJmYWl2dGl3AaDPbE16AaDPbEdQAAAAAQ",
      "url": "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYcXJmYWl2dGl3AaDPbE16AaDPbEdQAAAAAQ",
      "text": "Flick 🤝 Belletti #fcbarcelona",
      "media_url": "https://bolt-gcdn.sc-cdn.net/bp/hY7Zyp5zxih25D1Ai5TjK.27.IRZXSOY?mo=GmIaCTIBUUgCUC5gAVCiAVoQU3BvdGxpZ2h0U2hhcmluZ6IBOwgbEioKKAiy5MgBIAEwnAQ4wAdAAUoSCg3BAYUBbosBc3NhnQFuEPQDUKpqaAIiCxIAKgdJUlpYU09ZkAOqag%3D%3D&uc=46",
      "thumbnail_url": "https://bolt-gcdn.sc-cdn.net/bp/hY7Zyp5zxih25D1Ai5TjK.256.IRZXSOY?mo=GkYaCTIBUUgCUC5gAVCgAVoQRGZMYXJnZVRodW1ibmFpbKIBEAiAAiILEgAqB0lSWlhTT1miARAImgoiCxIAKgdJUlpYU09Z&uc=46",
      "duration_ms": 13610,
      "width": 540,
      "height": 960,
      "view_count": 27499,
      "share_count": 10,
      "comment_count": 48,
      "boost_count": 4768,
      "recommend_count": 300,
      "posted_at": "2026-09-23T17:59:34.992000+00:00",
      "username": "fcbarcelona",
      "author_name": "•••",
      "author_url": "https://www.snapchat.com/@fcbarcelona",
      "platform": "snapchat"
    }
  ],
  "count": 16,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### Can this capability post to Snapchat?

No. It reads the public Spotlight videos an account has already published and returns their data; it does not publish, schedule or send anything to Snapchat. Private chats and friends-only Stories are not read either.

### How do I convert `duration_ms` to seconds?

Divide by 1000: a value of 15000 is a 15-second video. Convert before you group videos by length or compare them with lengths reported in seconds elsewhere, or a short clip will look a thousand times longer than it is.

### How do I get the details of one video?

Pass the row's `url`, the link to that Spotlight video, to the Snapchat Video details capability, which reads a single Spotlight video. An account link such as snapchat.com/add/<name> does not work there, because that capability needs a link to a specific video.

## 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
