user_idstringwajib
User ID, for example: 67027868801, can be obtained from user profile API or post data
https://api.sandbase.ai/v1/api/threads/web/user-info-by-idReturns detailed Threads user profile information based on a specified user ID. Ideal for retrieving public account metadata directly through web identifiers.
[
{
"data": {
"user": null
}
}
]Pilih contoh untuk memuat input dan hasilnya ke playground.
Returns the public Threads profile for one account. You send the numeric user_id and get the username, full name, follower count, verification flag, and profile picture URLs.
user_id found in post data into a username and display name.curl -X POST "https://api.sandbase.ai/v1/api/threads/web/user-info-by-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "67027868801"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | User ID, for example: 67027868801, can be obtained from user profile API or post data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"user": {
"account_badges": [],
"account_warning": null,
"bio_links": [],
"biography": "",
"eligible_for_text_app_activation_badge": false,
"follower_count": 15705343,
"friendship_status": null,
"full_name": "Justin Bieber",
"gating": null,
"hd_profile_pic_versions": [
{
"height": 320,
"url": "https://scontent-phx1-1.cdninstagram.com/v/t51.2885-19/573323465_121982546330221…",
"width": 320
}
],
"hide_text_app_activation_badge_on_text_app": false,
"id": "67027868801"
}
}
| Field | Meaning |
|---|---|
user.id / user.pk | The numeric ID of the account, returned as a string. Both fields hold the same value in this response. |
user.username | The account handle on Threads, for example lilbieber. |
user.full_name | The display name shown on the profile. |
user.follower_count | The number of followers the account has. |
user.is_verified | true when the account carries a verified badge. |
user.text_post_app_is_private | true when the Threads account is private. |
user.biography | The profile bio text. It can be an empty string when the account has no bio. |
user.profile_pic_url | URL of the profile picture. |
user.hd_profile_pic_versions[].url | URL of a larger profile picture version. Each item also gives width and height in the same object. |
user.is_threads_only_user | true when the account exists only on Threads. |
user_id from a post object or from the Threads User Profile API.user_id as a string of digits, for example 67027868801.friendship_status and gating, can be null, and bio_links can be an empty list.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/threads/web/user-info-by-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "example"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
user_idstringwajibUser ID, for example: 67027868801, can be obtained from user profile API or post data
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"user": null
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Threads User Info by IDAPI ini Threads | $0.002 per panggilan | JSON |
Threads | $0.002 per panggilan | JSON |
Threads | $0.002 per panggilan | JSON |
Threads | $0.003 per panggilan | JSON |
Threads | $0.002 per panggilan | JSON |
Threads | $0.002 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/threads/web/user-info-by-id dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.002 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.
Wajib: user_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Threads User Info by ID berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Threads secara terpisah.