Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Video IDs from URLs (Batch)

Tài liệu API
https://api.sandbase.ai/v1/api/tiktok/web/all-aweme-id

Resolves and extracts TikTok video IDs from a list of video URLs. Takes a list of video links to return corresponding item identifiers.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Video link
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

TikTok Video IDs from URLs (Batch) API

This API takes a list of TikTok video URLs and returns the video ID for each one. The response is a plain JSON array of ID strings. Send the links in the request body as an array.

Use cases

  • Turn a list of copied TikTok video links into video IDs before you call a video detail API.
  • Clean a spreadsheet of TikTok post URLs into a column of IDs for joins and deduplication.
  • Check which video an @username/video/... link points to without opening the page.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/all-aweme-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"body": ["https://www.tiktok.com/@owlcitymusic/video/7218694761253735723"]}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
bodyarrayYesVideo link

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

[
  "7218694761253735723"
]

Response fields

FieldMeaning
[]The whole response is a list of video IDs. It has no wrapper object and no named fields.
[0]The first video ID in the list. In the example, the single link returns 7218694761253735723, which is the number after /video/ in the URL.
[] / [0]Each ID is a string of digits, not a JSON number.

Notes

  • The response is a top-level array, not an object. It has no named fields.
  • Video IDs come back as strings of digits. Keep them as strings in your code.
  • To fetch details for a video once you have its ID, call TikTok Video Detail.
  • To resolve one link at a time, use TikTok Video ID from URL.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.05 mỗi lần gọiJSON
TikTok$0.002 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Video IDs from URLs (Batch)?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/web/all-aweme-id với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API TikTok Video IDs from URLs (Batch) có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API TikTok Video IDs from URLs (Batch) chấp nhận những tham số nào?

Bắt buộc: body (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API TikTok Video IDs from URLs (Batch) trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Video IDs from URLs (Batch) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.