usernamestringbắt buộc
Username, for example: lilbieber, can be obtained from the user's homepage link, for example: lilbieber in https://www.threads.net/@lilbieber
https://api.sandbase.ai/v1/api/threads/web/user-infoGet a Threads (Meta) user profile by username: name, bio, follower count and verification status.
[
{
"data": {
"user": {
"bio_links": [],
"biography": "Making the seemingly impossible, possible. ✨",
"follower_count": 12758034,
"friendship_status": null,
"full_name": "NASA",
"gating": null,
"has_onboarded_to_text_post_app": true,
"hd_profile_pic_versions": [
{
"height": 320,
"url": "https://scontent-fra5-1.cdninstagram.com/v/t51.82787-19/669747085_18089786557960389_922072622069351626_n.jpg?stp=dst-jpg_s320x320_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-fra5-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2gGRX3gch3Q8sBKZy4CzndzAD3DPR1BeaD1lzGfwSZr6R7iBT-NINwNzLU5yGuJHI6g&_nc_ohc=DBidJkpiPEUQ7kNvwGPZwFL&_nc_gid=ZEWSAgnoE09ZRlBJ8s_5Eg&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQNkLzFnfRnF7BWhG-RL6EvGyNInU26BC8kEpwdYPyviyw&oe=6ACA8F0F&_nc_sid=10d13b",
"width": 320
},
{
"height": 640,
"url": "https://scontent-fra5-1.cdninstagram.com/v/t51.82787-19/669747085_18089786557960389_922072622069351626_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-fra5-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2gGRX3gch3Q8sBKZy4CzndzAD3DPR1BeaD1lzGfwSZr6R7iBT-NINwNzLU5yGuJHI6g&_nc_ohc=DBidJkpiPEUQ7kNvwGPZwFL&_nc_gid=ZEWSAgnoE09ZRlBJ8s_5Eg&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQNRLcffTmQhadEBJMtgonNLBiMZafxyjQ2K2tTyMupU8g&oe=6ACA8F0F&_nc_sid=10d13b",
"width": 640
}
],
"id": "28829152388",
"is_verified": true,
"pk": "28829152388",
"platform_newsletter_info": null,
"platform_podcast_episode_info": null,
"platform_podcast_info": null,
"profile_context_facepile_users": null,
"profile_pic_url": "https://scontent-fra5-1.cdninstagram.com/v/t51.82787-19/669747085_18089786557960389_922072622069351626_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-fra5-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2gGRX3gch3Q8sBKZy4CzndzAD3DPR1BeaD1lzGfwSZr6R7iBT-NINwNzLU5yGuJHI6g&_nc_ohc=DBidJkpiPEUQ7kNvwGPZwFL&_nc_gid=ZEWSAgnoE09ZRlBJ8s_5Eg&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQOPYrtlvaeuqpGaygm6jI4vKL9D5bEGdQn4d5OTQL98fQ&oe=6ACA8F0F&_nc_sid=10d13b",
"profile_tags": {
"edges": [
{
"node": {
"community_favicon_url": null,
"display_name": "NASA",
"id": "18317500750112535",
"is_community": false,
"name": "nasa",
"tag_cluster_name": "NASA"
}
},
{
"node": {
"community_favicon_url": "https://scontent.xx.fbcdn.net/v/t1.6435-9/756612352_18596839111065515_7912150869899370063_n.png?_nc_ht=scontent.xx.fbcdn.net&_nc_sid=b55947&ccb=14-4&oh=00_AQOhtF67D-qDjm0C9_6z44uejN4_04Vn5P_DQRCaEsXVoQ&oe=6AEC5C6F",
"display_name": "Space Threads",
"id": "18389635543065515",
"is_community": true,
"name": "spacethreads",
"tag_cluster_name": "Space Threads"
}
},
{
"node": {
"community_favicon_url": "https://scontent.xx.fbcdn.net/v/t1.6435-9/719159713_18590789221044154_9204736765000197493_n.png?_nc_ht=scontent.xx.fbcdn.net&_nc_sid=b55947&ccb=14-4&oh=00_AQP0TP_J3MVTCk8ErBKjTHVda-9A1RvisZWI4ihDk4J8bQ&oe=6AEC43B6",
"display_name": "Science Threads",
"id": "18397019395044154",
"is_community": true,
"name": "sciencethreads",
"tag_cluster_name": "Science Threads"
}
}
]
},
"show_text_post_app_badge": true,
"text_app_biography": {
"text_fragments": {
"fragments": [
{
"fragment_type": "plaintext",
"inline_sticker_fragment": null,
"link_fragment": null,
"linkified_in_app_url": null,
"linkified_web_url": null,
"mention_fragment": null,
"plaintext": "Making the seemingly impossible, possible. ✨",
"styling_info": null
}
]
}
},
"text_app_custom_feeds": null,
"text_post_app_is_private": false,
"text_post_app_public_views": null,
"text_post_app_remove_mention_entrypoint": null,
"transparency_label": null,
"username": "nasa"
}
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns the public Threads profile for one username. It includes the display name, biography, follower count, verification flag, profile pictures and profile tags. The only input is the username.
follower_count of a brand or creator account on Threads over time.is_verified and text_post_app_is_private before adding an account to an outreach list.curl -X POST "https://api.sandbase.ai/v1/api/threads/web/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "nasa"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Username, for example: lilbieber, can be obtained from the user's homepage link, for example: lilbieber in https://www.threads.net/@lilbieber |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"user": {
"bio_links": [],
"biography": "Making the seemingly impossible, possible. ✨",
"follower_count": 12785840,
"friendship_status": null,
"full_name": "NASA",
"gating": null,
"has_onboarded_to_text_post_app": true,
"hd_profile_pic_versions": [
{
"height": 320,
"url": "https://scontent-fra5-1.cdninstagram.com/v/t51.82787-19/669747085_18089786557960…",
"width": 320
}
],
"id": "28829152388",
"is_verified": true,
"pk": "28829152388",
"platform_newsletter_info": null
}
}
| Field | Meaning |
|---|---|
user.username / user.full_name | The account handle and the display name shown on the profile. |
user.biography | The profile bio as plain text. |
user.follower_count | Number of followers the account has. |
user.is_verified | true when the account has a verification badge. |
user.id / user.pk | The numeric user ID as a string. Both fields hold the same value in this response. |
user.text_post_app_is_private | true when the account is private. false means the profile is public. |
user.profile_pic_url | URL of a small profile picture. |
user.hd_profile_pic_versions[].url | URL of a larger profile picture. Use height and width to pick the size. |
user.profile_tags.edges[].node.display_name | Name of a tag or community linked to the profile, such as Space Threads. |
user.bio_links | List of links in the profile bio. It is empty when the account has none. |
username from the profile link. In https://www.threads.net/@lilbieber, the value is lilbieber.friendship_status and gating, can return null.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Use username for a known handle, such as nasa. Extract the handle from a profile URL before calling; a numeric user ID, full URL and display name are different inputs. The separate User Info by ID endpoint accepts a numeric identity. This first-request example does not guess which similarly named account the reader intended.
The reference payload has a user object containing profile fields. Require that object rather than silently skipping a missing or null user. Fields such as follower_count, biography, is_verified and bio_links are observations of that response; missing values stay unknown. A follower count is not measured reach, a campaign outcome or evidence that an account endorses a product. Do not turn a missing count into zero for ranking.
Only have a name or keyword? Use Profile Search as an independent task and review candidates. A verified flag or an exact display-name match alone does not establish the intended identity. Compare the handle and known first-party links before choosing follow-up work.
Already have a SandBase key? Reuse SANDBASE_API_KEY from your local environment and use this page's API tab for POST /v1/api/ and Bearer authentication. If your agent is already connected, give it the exact endpoint and input. For a new project, share the setup Skill, Markdown quickstart and your task. Ask it to save one response and stop before batch lookup, post collection or other expansion.
Read outputs[0].data from a completed SandBase response, then validate the selected endpoint's business shape. Do not prefer a legacy output field, silently skip a missing profile or convert an invalid search response to an empty list. Neither selected input schema declares a cursor, page or limit parameter. No pagination loop is specified here.
Pricing checked on 2026-11-08: User Profile lists $0.002 and Profile Search $0.003 per call. Both list eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility does not show your remaining allowance. Inspect current pricing and quota before running; a separate profile or posts lookup is another request. No business query was executed for this revision. See the Threads Python first-request tutorial for checked code and dated historical evidence.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/threads/web/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "nasa"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
usernamestringbắt buộcUsername, for example: lilbieber, can be obtained from the user's homepage link, for example: lilbieber in https://www.threads.net/@lilbieber
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"user": {
"bio_links": [],
"biography": "Making the seemingly impossible, possible. ✨",
"follower_count": 12758034,
"friendship_status": null,
"full_name": "NASA",
"gating": null,
"has_onboarded_to_text_post_app": true,
"hd_profile_pic_versions": [
{
"height": 320,
"url": "https://scontent-fra5-1.cdninstagram.com/v/t51.82787-19/669747085_18089786557960389_922072622069351626_n.jpg?stp=dst-jpg_s320x320_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-fra5-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2gGRX3gch3Q8sBKZy4CzndzAD3DPR1BeaD1lzGfwSZr6R7iBT-NINwNzLU5yGuJHI6g&_nc_ohc=DBidJkpiPEUQ7kNvwGPZwFL&_nc_gid=ZEWSAgnoE09ZRlBJ8s_5Eg&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQNkLzFnfRnF7BWhG-RL6EvGyNInU26BC8kEpwdYPyviyw&oe=6ACA8F0F&_nc_sid=10d13b",
"width": 320
},
{
"height": 640,
"url": "https://scontent-fra5-1.cdninstagram.com/v/t51.82787-19/669747085_18089786557960389_922072622069351626_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-fra5-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2gGRX3gch3Q8sBKZy4CzndzAD3DPR1BeaD1lzGfwSZr6R7iBT-NINwNzLU5yGuJHI6g&_nc_ohc=DBidJkpiPEUQ7kNvwGPZwFL&_nc_gid=ZEWSAgnoE09ZRlBJ8s_5Eg&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQNRLcffTmQhadEBJMtgonNLBiMZafxyjQ2K2tTyMupU8g&oe=6ACA8F0F&_nc_sid=10d13b",
"width": 640
}
],
"id": "28829152388",
"is_verified": true,
"pk": "28829152388",
"platform_newsletter_info": null,
"platform_podcast_episode_info": null,
"platform_podcast_info": null,
"profile_context_facepile_users": null,
"profile_pic_url": "https://scontent-fra5-1.cdninstagram.com/v/t51.82787-19/669747085_18089786557960389_922072622069351626_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-fra5-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2gGRX3gch3Q8sBKZy4CzndzAD3DPR1BeaD1lzGfwSZr6R7iBT-NINwNzLU5yGuJHI6g&_nc_ohc=DBidJkpiPEUQ7kNvwGPZwFL&_nc_gid=ZEWSAgnoE09ZRlBJ8s_5Eg&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQOPYrtlvaeuqpGaygm6jI4vKL9D5bEGdQn4d5OTQL98fQ&oe=6ACA8F0F&_nc_sid=10d13b",
"profile_tags": {
"edges": [
{
"node": {
"community_favicon_url": null,
"display_name": "NASA",
"id": "18317500750112535",
"is_community": false,
"name": "nasa",
"tag_cluster_name": "NASA"
}
},
{
"node": {
"community_favicon_url": "https://scontent.xx.fbcdn.net/v/t1.6435-9/756612352_18596839111065515_7912150869899370063_n.png?_nc_ht=scontent.xx.fbcdn.net&_nc_sid=b55947&ccb=14-4&oh=00_AQOhtF67D-qDjm0C9_6z44uejN4_04Vn5P_DQRCaEsXVoQ&oe=6AEC5C6F",
"display_name": "Space Threads",
"id": "18389635543065515",
"is_community": true,
"name": "spacethreads",
"tag_cluster_name": "Space Threads"
}
},
{
"node": {
"community_favicon_url": "https://scontent.xx.fbcdn.net/v/t1.6435-9/719159713_18590789221044154_9204736765000197493_n.png?_nc_ht=scontent.xx.fbcdn.net&_nc_sid=b55947&ccb=14-4&oh=00_AQP0TP_J3MVTCk8ErBKjTHVda-9A1RvisZWI4ihDk4J8bQ&oe=6AEC43B6",
"display_name": "Science Threads",
"id": "18397019395044154",
"is_community": true,
"name": "sciencethreads",
"tag_cluster_name": "Science Threads"
}
}
]
},
"show_text_post_app_badge": true,
"text_app_biography": {
"text_fragments": {
"fragments": [
{
"fragment_type": "plaintext",
"inline_sticker_fragment": null,
"link_fragment": null,
"linkified_in_app_url": null,
"linkified_web_url": null,
"mention_fragment": null,
"plaintext": "Making the seemingly impossible, possible. ✨",
"styling_info": null
}
]
}
},
"text_app_custom_feeds": null,
"text_post_app_is_private": false,
"text_post_app_public_views": null,
"text_post_app_remove_mention_entrypoint": null,
"transparency_label": null,
"username": "nasa"
}
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Threads User ProfileAPI này Threads | $0.002 mỗi lần gọi | JSON |
Threads | $0.002 mỗi lần gọi | JSON |
Threads | $0.002 mỗi lần gọi | JSON |
Threads | $0.003 mỗi lần gọi | JSON |
Threads | $0.002 mỗi lần gọi | JSON |
Threads | $0.002 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/threads/web/user-info với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.002 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: username (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Threads User Profile chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Threads.
Hãy gửi handle, chẳng hạn nasa. Trích xuất nó từ một URL profile đã biết trước. ID số thuộc endpoint User Info by ID riêng biệt, và tên hiển thị không phải là thay thế đáng tin cậy cho handle.
Không. Hãy yêu cầu đối tượng user và giữ các trường bị thiếu hoặc null là chưa biết. Số người theo dõi là một quan sát tại thời điểm cụ thể, không phải phạm vi đo lường hay kết quả, và các số bị thiếu không được biến thành số 0 tự tạo trong xếp hạng.
Không. Nó đọc một profile đã chọn rồi dừng lại. Tra cứu hàng loạt, bài viết và các phép đo lặp lại là những tác vụ riêng với thêm các yêu cầu và ngân sách xác định. Schema đầu vào không có trường phân trang.