Your connected X account profile — handle, followers
x.x.user.profileGet the profile of the connected X account (handle, name, follower counts)
- Price
- $0.01/resultZum Anbieterpreis
- Success rate
- 96 %Last 30 days · 817 calls
- Latency p50
- 168 msp95 473 ms
- Last verified
- 28.07.2026Verified working
GEThttps://toolswitch.dev/v1/tools/x.x.user.profile?user.fields=id%2Cname%2Cusername%2Cdescription%2Cpublic_metrics%2Cverified%2Ccreated_atPreviewTry onlineDemnächstProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameter
the only X read route guaranteed on every access tier. Its data.id is the {id} the timeline endpoints need
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
user.fields | Zeichenkette | Optional | comma-separated extras; public_metrics carries followers_count / following_count / tweet_count | id,name,username,description,public_metrics,verified,created_at |
- Abfrageparameter
user.fieldsZeichenketteOptionalcomma-separated extras; public_metrics carries followers_count / following_count / tweet_count
Beispiel:
id,name,username,description,public_metrics,verified,created_at
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/x.x.user.profile?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?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?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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.01/result einschließlich Servicegebühr abgerechnet.