Firehose stream of English tweets
x.x.stream-posts-firehose-enStream English Posts
- Price
- $0.005/resultZum Anbieterpreis
- Success rate
- —Noch keine ErfolgsratendatenLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/x.x.stream-posts-firehose-enPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameter
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
end_time | Zeichenkette | Optional | YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided. | |
partition | Ganzzahl | Erforderlich | The partition number. | |
expansions | Array | Optional | A comma separated list of fields to expand. | |
start_time | Zeichenkette | Optional | YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided. | |
poll.fields | Array | Optional | A comma separated list of Poll fields to display. | |
user.fields | Array | Optional | A comma separated list of User fields to display. | |
media.fields | Array | Optional | A comma separated list of Media fields to display. | |
place.fields | Array | Optional | A comma separated list of Place fields to display. | |
tweet.fields | Array | Optional | A comma separated list of Tweet fields to display. | |
backfill_minutes | Ganzzahl | Optional | The number of minutes of backfill requested. | |
- Abfrageparameter
end_timeZeichenketteOptionalYYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
partitionGanzzahlErforderlichThe partition number.
expansionsArrayOptionalA comma separated list of fields to expand.
start_timeZeichenketteOptionalYYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
poll.fieldsArrayOptionalA comma separated list of Poll fields to display.
user.fieldsArrayOptionalA comma separated list of User fields to display.
media.fieldsArrayOptionalA comma separated list of Media fields to display.
place.fieldsArrayOptionalA comma separated list of Place fields to display.
tweet.fieldsArrayOptionalA comma separated list of Tweet fields to display.
backfill_minutesGanzzahlOptionalThe number of minutes of backfill requested.
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
curl -X GET 'https://toolswitch.dev/v1/tools/x.x.stream-posts-firehose-en' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/x.x.stream-posts-firehose-en",
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-firehose-en", {
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.005/result einschließlich Servicegebühr abgerechnet.