usernamestringwymagane
Twitch username/login (e.g., 'ninja', 'shroud')
https://api.sandbase.ai/v1/api/twitch/streamer-profileGet detailed profile information for a Twitch streamer including followers, description, partner status, social links, and current live stream details if streaming. Returns null for stream when offline and populates last_broadcast with the most recent game played.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Get detailed profile information for a Twitch streamer including followers, description, partner status, social links, and current live stream details if streaming. Returns null for stream when offline and populates last_broadcast with the most recent game played.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "twitch/streamer-profile", "username": "ninja"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Twitch username/login (e.g., 'ninja', 'shroud') |
Flat $0.03 per call. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/twitch/streamer-profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "ninja"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
usernamestringwymaganeTwitch username/login (e.g., 'ninja', 'shroud')
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Twitch Streamer ProfileTo API Twitch | $0.03 za wywołanie | JSON |
Twitch | $0.03 za wywołanie | JSON |
Twitch | $0.03 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/twitch/streamer-profile z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.03 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: username (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. Twitch Streamer Profile działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Twitch.