user_idstring必須
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
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
user_idstring必須User ID, for example: 67027868801, can be obtained from user profile API or post data
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"user": null
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Threads User Info by IDこの API Threads | $0.002 / 回 | JSON |
Threads | $0.002 / 回 | JSON |
Threads | $0.002 / 回 | JSON |
Threads | $0.003 / 回 | JSON |
Threads | $0.002 / 回 | JSON |
Threads | $0.002 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/threads/web/user-info-by-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.002。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: user_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Threads User Info by ID は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Threads の API アクセスを別途申請する必要はありません。