---
agent:
  instructions: "Search the SocialTap docs with keywords or a question instead of crawling pages: GET https://socialtap.dev/.well-known/search?q={query} returns the best sections as Markdown (JSON with Accept: application/json), free and without a key."
  endpoint: "https://socialtap.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://socialtap.dev/docs/agents/#docs-for-agents"
---
# Segments

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

Analyses

The spans of a transcript that aren't the video's own content: sponsor reads, self-promotion, reminders to like and subscribe, intros and outros, each with its start and end and its probability.

## Example

cURL:

```shell
curl 'https://socialtap.dev/v1/tiktok/transcript?url=7673108027645414678&analysis=segments' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

Shape of data.analysis:

```json
{
  "segments": [
    {
      "kind": "sponsor",
      "start_ms": 0,
      "end_ms": 0,
      "probability": 0.95
    }
  ]
}
```

Values are examples.

## Value

Ask for it with `analysis=segments`; each item's `analysis` object then holds it, judged from the item's words. A value is null when it is unknown, with an `analysis_unavailable` warning saying why ([null values](https://socialtap.dev/docs/analyses/index.md#null-values)).

`analysis.segments`: A list of objects with the fields below. Each entry carries its own probability, from 0 to 1.

| Field | Type | Description |
| --- | --- | --- |
| `analysis.segments[].kind` | `string` | What the span is.<br>One of `sponsor`, `self_promotion`, `interaction`, `intro`, `outro` |
| `analysis.segments[].start_ms` | `integer` | Where it starts, in milliseconds from the start. |
| `analysis.segments[].end_ms` | `integer` | Where it ends, in milliseconds from the start. |
| `analysis.segments[].probability` | `number` | How likely the kind is right, from 0 to 1 (the span's least sure part). |

## Languages

Answers for items in English, Spanish, Portuguese, French, German, Italian, Dutch, Indonesian, Turkish, Polish, Japanese, Korean, Chinese, Russian, Arabic and Hindi. An item in another language gets null, free, with a warning.

## Price

**Text.** A flat extra per page, however many text analyses you ask for; a single item is a page of one. Each endpoint's reference page states it. An analysis that fails is free. [How analyses are priced](https://socialtap.dev/docs/analyses/index.md#price)

## Endpoints

11 endpoints offer it, on 11 platforms.

**TikTok1**

- [GETTikTok Transcript API`/v1/tiktok/transcript`](https://socialtap.dev/docs/reference/tiktok/transcript/index.md)

**Instagram1**

- [GETInstagram Reels Transcript API`/v1/instagram/transcript`](https://socialtap.dev/docs/reference/instagram/transcript/index.md)

**Facebook1**

- [GETFacebook Video Transcript API`/v1/facebook/transcript`](https://socialtap.dev/docs/reference/facebook/transcript/index.md)

**YouTube1**

- [GETYouTube Transcript API`/v1/youtube/transcript`](https://socialtap.dev/docs/reference/youtube/transcript/index.md)

**Reddit1**

- [GETReddit Video Transcript API`/v1/reddit/transcript`](https://socialtap.dev/docs/reference/reddit/transcript/index.md)

**LinkedIn1**

- [GETLinkedIn Video Transcript API`/v1/linkedin/transcript`](https://socialtap.dev/docs/reference/linkedin/transcript/index.md)

**X1**

- [GETX (Twitter) Video Transcript API`/v1/x/transcript`](https://socialtap.dev/docs/reference/x/transcript/index.md)

**Rumble1**

- [GETRumble Transcript API`/v1/rumble/transcript`](https://socialtap.dev/docs/reference/rumble/transcript/index.md)

**Twitch1**

- [GETTwitch Clip Transcript API`/v1/twitch/transcript`](https://socialtap.dev/docs/reference/twitch/transcript/index.md)

**Kick1**

- [GETKick Clip Transcript API`/v1/kick/transcript`](https://socialtap.dev/docs/reference/kick/transcript/index.md)

**Facebook Ad Library1**

- [GETFacebook Ad Transcript API`/v1/facebook/ad_transcript`](https://socialtap.dev/docs/reference/facebook/ad-transcript/index.md)

---

[HTML version](https://socialtap.dev/docs/analyses/segments/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
