Stream tweets matching your filter rules
x.x.stream-postsStream filtered Posts
- Price
- $0.005/resultAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/x.x.stream-postsPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
end_time | chaîne | Facultatif | YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided. | |
expansions | tableau | Facultatif | A comma separated list of fields to expand. | |
start_time | chaîne | Facultatif | YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided. | |
poll.fields | tableau | Facultatif | A comma separated list of Poll fields to display. | |
user.fields | tableau | Facultatif | A comma separated list of User fields to display. | |
media.fields | tableau | Facultatif | A comma separated list of Media fields to display. | |
place.fields | tableau | Facultatif | A comma separated list of Place fields to display. | |
tweet.fields | tableau | Facultatif | A comma separated list of Tweet fields to display. | |
backfill_minutes | entier | Facultatif | The number of minutes of backfill requested. | |
- Paramètres de requête
end_timechaîneFacultatifYYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
expansionstableauFacultatifA comma separated list of fields to expand.
start_timechaîneFacultatifYYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
poll.fieldstableauFacultatifA comma separated list of Poll fields to display.
user.fieldstableauFacultatifA comma separated list of User fields to display.
media.fieldstableauFacultatifA comma separated list of Media fields to display.
place.fieldstableauFacultatifA comma separated list of Place fields to display.
tweet.fieldstableauFacultatifA comma separated list of Tweet fields to display.
backfill_minutesentierFacultatifThe number of minutes of backfill requested.
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/x.x.stream-posts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/x.x.stream-posts",
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-posts", {
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.005/result, frais de service inclus.