Stream a 10% sample of Likes
x.x.stream-likes-sample10Stream sampled Likes
- Price
- $0.001/resultAt provider cost
- Success rate
- —No success-rate data yetLast 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
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
end_time | string | Optional | YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided. | |
partition | integer | Required | The partition number. | |
expansions | array | Optional | A comma separated list of fields to expand. | |
start_time | string | Optional | YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Likes will be provided. | |
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. | |
tweet.fields | array | Optional | A comma separated list of Tweet fields to display. | |
backfill_minutes | integer | Optional | The number of minutes of backfill requested. | |
like_with_tweet_author.fields | array | Optional | A comma separated list of LikeWithTweetAuthor fields to display. | |
- Query parameters
end_timestringOptionalYYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
partitionintegerRequiredThe partition number.
expansionsarrayOptionalA comma separated list of fields to expand.
start_timestringOptionalYYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Likes will be provided.
user.fieldsarrayOptionalA comma separated list of User fields to display.
media.fieldsarrayOptionalA comma separated list of Media fields to display.
tweet.fieldsarrayOptionalA comma separated list of Tweet fields to display.
backfill_minutesintegerOptionalThe number of minutes of backfill requested.
like_with_tweet_author.fieldsarrayOptionalA comma separated list of LikeWithTweetAuthor fields to display.
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.001/result, including the service fee.