Search tweets from the last 7 days by keyword
x.x.search-posts-recentSearch Posts Recent
- Price
- $0.005/resultプロバイダー原価
- Success rate
- 99.7%Last 30 days · 327 calls
- Latency p50
- 173 msp95 373 ms
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/x.x.search-posts-recentPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
query | 文字列 | 必須 | ||
end_time | 文字列 | 任意 | ||
since_id | 文字列 | 任意 | ||
until_id | 文字列 | 任意 | ||
next_token | 文字列 | 任意 | A base32hex-encoded pagination token. | |
sort_order | 文字列 | 任意 | ||
start_time | 文字列 | 任意 | Must be within the last 7 days. | |
max_results | 整数 | 任意 | ||
pagination_token | 文字列 | 任意 | A base32hex-encoded pagination token. | |
- クエリパラメータ
query文字列必須end_time文字列任意since_id文字列任意until_id文字列任意next_token文字列任意A base32hex-encoded pagination token.
sort_order文字列任意start_time文字列任意Must be within the last 7 days.
max_results整数任意pagination_token文字列任意A base32hex-encoded pagination token.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/x.x.search-posts-recent' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/x.x.search-posts-recent",
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.search-posts-recent", {
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.005/result です。サービス料を含みます。