Stream a 10% sample of Likes
x.x.stream-likes-sample10Stream sampled Likes
- Price
- $0.001/resultAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/x.x.stream-likes-sample10Preview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
end_time | cadena | Opcional | YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided. | |
partition | entero | Obligatorio | The partition number. | |
expansions | matriz | Opcional | A comma separated list of fields to expand. | |
start_time | cadena | Opcional | YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Likes will be provided. | |
user.fields | matriz | Opcional | A comma separated list of User fields to display. | |
media.fields | matriz | Opcional | A comma separated list of Media fields to display. | |
tweet.fields | matriz | Opcional | A comma separated list of Tweet fields to display. | |
backfill_minutes | entero | Opcional | The number of minutes of backfill requested. | |
like_with_tweet_author.fields | matriz | Opcional | A comma separated list of LikeWithTweetAuthor fields to display. | |
- Parámetros de consulta
end_timecadenaOpcionalYYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
partitionenteroObligatorioThe partition number.
expansionsmatrizOpcionalA comma separated list of fields to expand.
start_timecadenaOpcionalYYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Likes will be provided.
user.fieldsmatrizOpcionalA comma separated list of User fields to display.
media.fieldsmatrizOpcionalA comma separated list of Media fields to display.
tweet.fieldsmatrizOpcionalA comma separated list of Tweet fields to display.
backfill_minutesenteroOpcionalThe number of minutes of backfill requested.
like_with_tweet_author.fieldsmatrizOpcionalA comma separated list of LikeWithTweetAuthor fields to display.
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X GET 'https://toolswitch.dev/v1/tools/x.x.stream-likes-sample10' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/x.x.stream-likes-sample10",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/x.x.stream-likes-sample10", {
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 versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.001/result, incluida la tarifa de servicio.