Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Twitch Live Streams

Documentación de la API
https://api.sandbase.ai/v1/api/twitch/live-streams

Get currently live streams, optionally filtered by game/category. Returns streams sorted by relevance or viewer count with broadcaster info, game details, and tags. Supports pagination via cursor.

Precio
$0.03USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 3 opcionales

Entorno de pruebas

Entrada
Sort order for streams.
Number of streams to return (1-100)
Game/category slug (e.g., 'just-chatting', 'fortnite', 'league-of-legends'). If omitted or empty, returns top streams across all categories.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Twitch Live Streams API

Get currently live streams, optionally filtered by game/category. Returns streams sorted by relevance or viewer count with broadcaster info, game details, and tags. Supports pagination via cursor.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "twitch/live-streams", "sort": "RELEVANCE", "limit": 5, "category": "just-chatting"}'

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

Parameters

NameTypeRequiredDescription
categorystringNoGame/category slug (e.g., 'just-chatting', 'fortnite', 'league-of-legends'). If omitted or empty, returns top streams across all categories.
limitintegerNoNumber of streams to return (1-100)
sortstringNoSort order for streams.

Pricing

Flat $0.03 per call. Failed calls are not charged.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Twitch$0.03 por llamadaJSON
Twitch$0.03 por llamadaJSON
Twitch$0.03 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Twitch Live Streams?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/twitch/live-streams con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Twitch Live Streams?

$0.03 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Twitch Live Streams?

No se requieren parámetros. Opcionales: sort (string), limit (integer) y category (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Twitch Live Streams?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).

¿Necesito una cuenta de desarrollador o una clave API de Twitch?

No. Twitch Live Streams funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Twitch por separado.