X user profile by username — followers, bio, verified
x.x.user.profile.by_usernameGet any public X user's profile by handle
- Price
- $0.01/resultプロバイダー原価
- Success rate
- 100%Last 30 days · 78 calls
- Latency p50
- 146 msp95 369 ms
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/x.x.user.profile.by_username?user.fields=id%2Cname%2Cusername%2Cdescription%2Cpublic_metrics%2Cverified%2Ccreated_atPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
for several handles at once use GET /2/users/by?usernames=a,b,c (up to 100) — one request against the cap instead of 100
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
username | 文字列 | 必須 | handle without the '@' | elonmusk |
| クエリパラメータ | ||||
user.fields | 文字列 | 任意 | id,name,username,description,public_metrics,verified,created_at | |
- パスパラメータ
username文字列必須handle without the '@'
例:
elonmusk- クエリパラメータ
user.fields文字列任意例:
id,name,username,description,public_metrics,verified,created_at
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/x.x.user.profile.by_username?user.fields=id%2Cname%2Cusername%2Cdescription%2Cpublic_metrics%2Cverified%2Ccreated_at' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/x.x.user.profile.by_username?user.fields=id%2Cname%2Cusername%2Cdescription%2Cpublic_metrics%2Cverified%2Ccreated_at",
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.user.profile.by_username?user.fields=id%2Cname%2Cusername%2Cdescription%2Cpublic_metrics%2Cverified%2Ccreated_at", {
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.01/result です。サービス料を含みます。