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

TikTok Video IDs from URLs (Batch)

Docs 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.

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 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.

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 IDs from URLs (Batch) ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok/web/all-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 IDs from URLs (Batch) ?

$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 IDs from URLs (Batch) accepte-t-elle ?

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

Que renvoie l’API TikTok Video IDs from URLs (Batch) ?

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 IDs from URLs (Batch) 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.