# How do I get the video ID from a Douyin share link? (2026)

A Douyin share is a block of text with a `v.douyin.com` short link inside, and the video's real ID, the aweme_id, only appears after the short link redirects. XTikAPI's `douyin.videos.id_from_url` takes the link or the whole pasted share text and returns the aweme_id for $0.002, which `douyin.videos.detail` and `douyin.comments.list` then use. XTikAPI reads Douyin with 34 endpoints from $0.002 a call. A failed call is not charged, and a verified account gets $0.50 of trial balance.

Updated 2026-11-20

## What a share looks like

Douyin_TikTok_Download_API's README shows the shape: a code, the caption, a short link such as `https://v.douyin.com/L4FJNR3/`, and a line telling you to open the app. Only the short link matters. It redirects to a page whose URL carries the aweme_id, a long number.

## How XTikAPI does it

| Step | Endpoint | You get |
| 1 | `douyin.videos.id_from_url` with `url` (link or full share text) | The aweme_id |
| 2 | `douyin.videos.detail` with `id` | Caption, author, play address, counts |
| 3 | `douyin.comments.list` with `id` | A page of comments |

## What 100 links cost

100 shared links to IDs and details: 200 calls at $0.002, $0.40.

## Why XTikAPI

- See before you pay: 192 of 229 endpoints show a recorded real response on their page (30 of 34 for Douyin).
- One shape: posts, comments and accounts from 19 platforms come back as the same objects, author in author and counts in metrics, so another platform needs no new parser.
- Spending you control: a failed call or a timeout is not charged (charged: false), X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never billed twice.
- Prepaid balance, no subscription. Balance never expires, and unused top-up money can be refunded within 14 days.
- Made for AI: every page has a Markdown twin, plus llms.txt and OpenAPI, so ChatGPT, Claude and Cursor can read it directly.

## Endpoints

- [Douyin video ID from link API](https://xtikapi.com/apis/douyin/videos/id_from_url) ($0.002 a call): Extract the aweme_id from a Douyin share link or video URL.
- [Douyin video details API](https://xtikapi.com/apis/douyin/videos/detail) ($0.002 a call): Get single video data
- [Douyin comments API](https://xtikapi.com/apis/douyin/comments/list) ($0.002 a call): Get single video comments data

## More about Douyin

- [Douyin API](https://xtikapi.com/apis/douyin)
- [Does Chanmama (蝉妈妈) have an API?](https://xtikapi.com/answers/chanmama-api)
- [How do I get replies to Douyin comments (second-level comments)?](https://xtikapi.com/answers/douyin-comment-replies-api)
- [How do I export Douyin video comments to Excel?](https://xtikapi.com/answers/douyin-comments-export-excel)
- [TikTokDownloader shows Douyin cookie errors after a few dozen creators: why?](https://xtikapi.com/answers/tiktokdownloader-douyin-cookie-error)
- [What is a good Apify alternative for social media data?](https://xtikapi.com/answers/apify-alternative-for-social-media-data)
- [How do I pull the Douyin hot search list with code?](https://xtikapi.com/answers/douyin-hot-search-api)
- [How do I find viral Douyin videos from small accounts, and can I pull them in bulk?](https://xtikapi.com/answers/douyin-low-fan-viral-videos)
- [Is there an official Douyin API for public videos?](https://xtikapi.com/answers/douyin-open-platform-api)
- [What is the Ocean Engine (Juliang Suanshu) keyword index, and can I get it by API?](https://xtikapi.com/answers/douyin-trend-index-keywords)
- [What is a_bogus on Douyin and do I need to generate it?](https://xtikapi.com/answers/douyin-a-bogus)
- [What is the difference between uid and sec_uid on Douyin, and how do I convert one to the other?](https://xtikapi.com/answers/douyin-sec-uid-vs-uid)
- [Is there a hosted alternative to MediaCrawler for Xiaohongshu, Douyin and other Chinese platforms?](https://xtikapi.com/answers/mediacrawler-alternative)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-20.

- Douyin_TikTok_Download_API README (share text and short links)

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/douyin-share-link-to-video-id) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
