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

YouTube Channel URL Lookup

Docs API
https://api.sandbase.ai/v1/api/youtube/web/channel-url

Returns the standard channel URL and vanity handle URL for a specified YouTube channel. Takes a unique channel ID as input to resolve public web addresses.

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

Bac à sable

Entrée
Channel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)
SortieExemple
Réponseoutputs · 218 B · 9 lignes
[
  {
    "data": {
      "channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
      "channel_url": "https://www.youtube.com/channel/UCeu6U67OzJhV1KwBansH3Dg",
      "vanity_url": "http://www.youtube.com/@CozyCraftYT"
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'API

YouTube Channel URL Lookup API

Returns the standard channel URL and the vanity handle URL for a YouTube channel. It needs one input, the channel ID in the channel_id parameter.

Use cases

  • Turn a stored channel ID into a clickable YouTube channel link.
  • Find the @handle URL of a creator when your database only holds the channel ID.
  • Check that the channel IDs in a creator list resolve to public web addresses.
  • Add both link formats to a profile page or export for a channel.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web/channel-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_id": "UCeu6U67OzJhV1KwBansH3Dg"}'

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

Parameters

NameTypeRequiredDescription
channel_idstringYesChannel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)

Example response

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

{
  "channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
  "channel_url": "https://www.youtube.com/channel/UCeu6U67OzJhV1KwBansH3Dg",
  "vanity_url": "http://www.youtube.com/@CozyCraftYT"
}

Response fields

FieldMeaning
channel_idThe channel ID you sent in the request, echoed back. It starts with UC.
channel_urlThe channel page URL built from the channel ID, in the form https://www.youtube.com/channel/<channel_id>.
vanity_urlThe channel page URL that uses the creator's @handle, for example http://www.youtube.com/@CozyCraftYT. This value uses http rather than https.

Notes

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
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON

Guides :Best YouTube API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API YouTube Channel URL Lookup ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/youtube/web/channel-url 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 YouTube Channel URL Lookup ?

$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 YouTube Channel URL Lookup accepte-t-elle ?

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

Que renvoie l’API YouTube Channel URL Lookup ?

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 YouTube ?

Non. YouTube Channel URL Lookup 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 YouTube séparément.