Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

TikTok Video ID from URL

Docs API
https://api.sandbase.ai/v1/api/tiktok/web/aweme-id

Extracts and returns the unique single video ID from a provided TikTok video link. Enables quick identification of video assets for downstream lookups.

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 0 facultatifs

Bac à sable

Entrée
Video link
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'API

TikTok Video ID from URL API

Extract the video ID (aweme_id) from a TikTok video link such as https://www.tiktok.com/@user/video/<aweme_id>. Most TikTok video, comment and download APIs take this ID.

Use cases

  • Normalize shared TikTok links before calling video detail or comment APIs.
  • Deduplicate videos collected as links.

Request

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

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

Parameters

NameTypeRequiredDescription
urlstringYesVideo link

Example response

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

"7218694761253735723"

Response fields

FieldMeaning
(body)The aweme_id as a string, e.g. "7218694761253735723".

Notes

  • Keep the ID as a string; it exceeds JavaScript's safe integer range.
  • The same ID works with the TikTok app (app-v3) and web endpoints.

Pricing

$0.001 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.05 par appelJSON
TikTok$0.002 par appelJSON

Guides :TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API TikTok Video ID from URL ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok/web/aweme-id avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API TikTok Video ID from URL ?

$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API TikTok Video ID from URL accepte-t-elle ?

Obligatoire : url (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API TikTok Video ID from URL ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API TikTok ?

Non. TikTok Video ID from URL fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API TikTok séparément.