# Tokscript — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Fetch timestamped transcripts of TikTok videos along with video metadata, author information, and engagement statistics to analyze content and search by spoken words. Get accurate speech-to-text conversions with precise timing for every segment in a video.

**Category:** Social Media | **Website:** [tokscript.com/](https://tokscript.com/) | **Docs:** [parse.bot/marketplace/db915786-26a0-4f44-a996-5ec20086455c/tokscript-com-api](https://parse.bot/marketplace/db915786-26a0-4f44-a996-5ec20086455c/tokscript-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-tokscript-com-api-db915786/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_transcript

Get the transcript (speech-to-text) for a TikTok video. Returns timestamped text segments, full combined text, video metadata, author details, and engagement statistics. Videos without speech or deleted videos will return an upstream_error.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `video_url` | string | Yes | Full TikTok video URL (e.g. https://www.tiktok.com/@username/video/<video_id>) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tokscript-com-api-db915786/get_transcript \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"video_url":"<string>"}'
```
