List a YouTube channel's recent activities
youtube.x.youtube-activities-listactivities.list — Retrieves a list of resources, possibly filtered.
- Precio
- freeA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latencia p50
- ——
- Última verificación
- —Aún no verificado
GEThttps://toolswitch.dev/v1/tools/youtube.x.youtube-activities-listBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
home | booleano | Opcional | ||
mine | booleano | Opcional | ||
part | cadena | Obligatorio | The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, th | |
channelId | cadena | Opcional | ||
pageToken | cadena | Opcional | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. | |
maxResults | entero | Opcional | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. | |
regionCode | cadena | Opcional | ||
publishedAfter | cadena | Opcional | ||
publishedBefore | cadena | Opcional | ||
- Parámetros de consulta
homebooleanoOpcionalminebooleanoOpcionalpartcadenaObligatorioThe *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, th
channelIdcadenaOpcionalpageTokencadenaOpcionalThe *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
maxResultsenteroOpcionalThe *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
regionCodecadenaOpcionalpublishedAftercadenaOpcionalpublishedBeforecadenaOpcional
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X GET 'https://toolswitch.dev/v1/tools/youtube.x.youtube-activities-list' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/youtube.x.youtube-activities-list",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/youtube.x.youtube-activities-list", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.