querystring必填
Search query, for example: mark
https://api.sandbase.ai/v1/api/threads/web/search-profilesSearches Threads user profiles based on a specified text query string. Returns matching user accounts and profile information from the platform.
[
{
"data": {
"xdt_api__v1__users__search_connection": {
"edges": [
{
"node": {
"full_name": "Mark Zuckerberg",
"has_onboarded_to_text_post_app": true,
"id": "63055343223",
"is_active_on_text_post_app": true,
"is_verified": true,
"pk": "63055343223",
"profile_pic_url": "https://scontent-sea5-1.cdninstagram.com/v/t51.82787-19/825322135_17989325280103224_1252773933700107438_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-sea5-1.cdninstagram.com&_nc_cat=100&_nc_oc=Q6cZ2gEQMP0y65Znw4KFouVQfjknMULifv8cyJbRjNjA9Y9szmUvH1OjUE9mUDANdybnebf0CxiwV2T3ypnb1YHqi0eb&_nc_ohc=ImCtHAPyo70Q7kNvwHQCN8Z&_nc_gid=x6mrrZqbeHq1BYO6eTzHxA&edm=AHhEZX8BAAAA&ccb=7-5&oh=00_AQMkSECZSKU5Lc4XR2fOX6qBPT7GYLwFnPxK5Nn91evYbw&oe=6AC1A16B&_nc_sid=e8efdc",
"username": "zuck"
}
},
{
"node": {
"full_name": "Mark Ruffalo",
"has_onboarded_to_text_post_app": true,
"id": "63051734071",
"is_active_on_text_post_app": true,
"is_verified": true,
"pk": "63051734071",
"profile_pic_url": "https://scontent-sea5-1.cdninstagram.com/v/t51.2885-19/459216473_763220509193309_6737924786677683148_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby45OTkuYzIifQ&_nc_ht=scontent-sea5-1.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gEQMP0y65Znw4KFouVQfjknMULifv8cyJbRjNjA9Y9szmUvH1OjUE9mUDANdybnebf0CxiwV2T3ypnb1YHqi0eb&_nc_ohc=ilVXpvBe4UkQ7kNvwEJw59O&_nc_gid=x6mrrZqbeHq1BYO6eTzHxA&edm=AHhEZX8BAAAA&ccb=7-5&oh=00_AQPtq-5Zairjy0SEv1XMbveObU2CJmhWbUcm8rggtqJeFA&oe=6AC1B0AB&_nc_sid=e8efdc",
"username": "markruffalo"
}
},
{
"node": {
"full_name": "Mark Tuan",
"has_onboarded_to_text_post_app": true,
"id": "63281880367",
"is_active_on_text_post_app": true,
"is_verified": true,
"pk": "63281880367",
"profile_pic_url": "https://scontent-sea5-1.cdninstagram.com/v/t51.2885-19/358197528_292224636703096_3341699124168942009_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-sea5-1.cdninstagram.com&_nc_cat=104&_nc_oc=Q6cZ2gEQMP0y65Znw4KFouVQfjknMULifv8cyJbRjNjA9Y9szmUvH1OjUE9mUDANdybnebf0CxiwV2T3ypnb1YHqi0eb&_nc_ohc=LFwtOM_6coEQ7kNvwGKrBK1&_nc_gid=x6mrrZqbeHq1BYO6eTzHxA&edm=AHhEZX8BAAAA&ccb=7-5&oh=00_AQMU3L1fRvB2BkGwq__P2lRynPnzaxG3XnIbM9vDapn_zQ&oe=6AC1ABA2&_nc_sid=e8efdc",
"username": "marktuan"
}
},
"… 7 more items in the full response"
],
"inform_module": null
}
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns a list of Threads user accounts that match a text query. You send one query string, such as a name or handle, and get back each match with its username, display name, ID, and verification status.
curl -X POST "https://api.sandbase.ai/v1/api/threads/web/search-profiles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "OpenAI"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query, for example: mark |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"xdt_api__v1__users__search_connection": {
"edges": [
{
"node": {
"full_name": "OpenAI",
"has_onboarded_to_text_post_app": true,
"id": "63299409527",
"is_active_on_text_post_app": true,
"is_verified": true,
"pk": "63299409527",
"profile_pic_url": "https://scontent-sea5-1.cdninstagram.com/v/t51.82787-19/788716177_18115256264517…",
"username": "openai"
}
}
],
"inform_module": null
}
}
| Field | Meaning |
|---|---|
xdt_api__v1__users__search_connection.edges[].node.username | The Threads handle of the matched account, such as openai. |
xdt_api__v1__users__search_connection.edges[].node.full_name | The display name shown on the profile. |
xdt_api__v1__users__search_connection.edges[].node.id / pk | The numeric user ID as a string. Both keys hold the same value in the sample. |
xdt_api__v1__users__search_connection.edges[].node.is_verified | Whether the account carries a verified flag. |
xdt_api__v1__users__search_connection.edges[].node.is_active_on_text_post_app | Whether the account is marked active on Threads. |
xdt_api__v1__users__search_connection.edges[].node.has_onboarded_to_text_post_app | Whether the account has completed onboarding to Threads. |
xdt_api__v1__users__search_connection.edges[].node.profile_pic_url | A link to the profile picture image. |
query. A name or handle both work as search text.OpenAI also returned accounts like choi.openai and openani.me, so compare username before you pick one.id or pk as the user ID in Threads User Info by ID, or the username in Threads User Profile.$0.003 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send query as a name, handle fragment or keyword. The reference search for OpenAI also returned similarly named accounts, so do not automatically select the first row or assume an exact display name identifies the intended account. The response is a candidate list, not a verified brand directory or a popularity ranking.
The observed result path is xdt_api__v1__users__search_connection.edges[].node inside outputs[0].data. Require the connection object, an edges array and object nodes before reading candidate handles. A present empty edges array differs from a missing connection or malformed response. Do not assume this endpoint returns a top-level users array or the user object used by Profile lookup.
After reviewing a candidate, a separate User Profile call can look up its username. This guide does not automatically make that call, fetch posts or loop through candidates. Neither the current query schema nor this guide declares search pagination.
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.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/threads/web/search-profiles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "mark"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
querystring必填Search query, for example: mark
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"xdt_api__v1__users__search_connection": {
"edges": [
{
"node": {
"full_name": "Mark Zuckerberg",
"has_onboarded_to_text_post_app": true,
"id": "63055343223",
"is_active_on_text_post_app": true,
"is_verified": true,
"pk": "63055343223",
"profile_pic_url": "https://scontent-sea5-1.cdninstagram.com/v/t51.82787-19/825322135_17989325280103224_1252773933700107438_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-sea5-1.cdninstagram.com&_nc_cat=100&_nc_oc=Q6cZ2gEQMP0y65Znw4KFouVQfjknMULifv8cyJbRjNjA9Y9szmUvH1OjUE9mUDANdybnebf0CxiwV2T3ypnb1YHqi0eb&_nc_ohc=ImCtHAPyo70Q7kNvwHQCN8Z&_nc_gid=x6mrrZqbeHq1BYO6eTzHxA&edm=AHhEZX8BAAAA&ccb=7-5&oh=00_AQMkSECZSKU5Lc4XR2fOX6qBPT7GYLwFnPxK5Nn91evYbw&oe=6AC1A16B&_nc_sid=e8efdc",
"username": "zuck"
}
},
{
"node": {
"full_name": "Mark Ruffalo",
"has_onboarded_to_text_post_app": true,
"id": "63051734071",
"is_active_on_text_post_app": true,
"is_verified": true,
"pk": "63051734071",
"profile_pic_url": "https://scontent-sea5-1.cdninstagram.com/v/t51.2885-19/459216473_763220509193309_6737924786677683148_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby45OTkuYzIifQ&_nc_ht=scontent-sea5-1.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gEQMP0y65Znw4KFouVQfjknMULifv8cyJbRjNjA9Y9szmUvH1OjUE9mUDANdybnebf0CxiwV2T3ypnb1YHqi0eb&_nc_ohc=ilVXpvBe4UkQ7kNvwEJw59O&_nc_gid=x6mrrZqbeHq1BYO6eTzHxA&edm=AHhEZX8BAAAA&ccb=7-5&oh=00_AQPtq-5Zairjy0SEv1XMbveObU2CJmhWbUcm8rggtqJeFA&oe=6AC1B0AB&_nc_sid=e8efdc",
"username": "markruffalo"
}
},
{
"node": {
"full_name": "Mark Tuan",
"has_onboarded_to_text_post_app": true,
"id": "63281880367",
"is_active_on_text_post_app": true,
"is_verified": true,
"pk": "63281880367",
"profile_pic_url": "https://scontent-sea5-1.cdninstagram.com/v/t51.2885-19/358197528_292224636703096_3341699124168942009_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-sea5-1.cdninstagram.com&_nc_cat=104&_nc_oc=Q6cZ2gEQMP0y65Znw4KFouVQfjknMULifv8cyJbRjNjA9Y9szmUvH1OjUE9mUDANdybnebf0CxiwV2T3ypnb1YHqi0eb&_nc_ohc=LFwtOM_6coEQ7kNvwGKrBK1&_nc_gid=x6mrrZqbeHq1BYO6eTzHxA&edm=AHhEZX8BAAAA&ccb=7-5&oh=00_AQMU3L1fRvB2BkGwq__P2lRynPnzaxG3XnIbM9vDapn_zQ&oe=6AC1ABA2&_nc_sid=e8efdc",
"username": "marktuan"
}
},
"… 7 more items in the full response"
],
"inform_module": null
}
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
Threads | 每次呼叫 $0.003 | JSON |
Threads | 每次呼叫 $0.002 | JSON |
Threads | 每次呼叫 $0.002 | JSON |
Threads | 每次呼叫 $0.002 | JSON |
Threads | 每次呼叫 $0.002 | JSON |
Threads | 每次呼叫 $0.002 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/threads/web/search-profiles。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.003,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:query (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Threads Profile Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Threads API 存取權。
不要這樣假設。結果中可能包含相似的 handle。請檢查 username 和已知的第一方連結;僅靠顯示名稱相符或 verified 標記,無法證明您要找的身分。
參考內容使用 outputs[0].data.xdt_api__v1__users__search_connection.edges[].node。請驗證 connection、edges 陣列與物件節點。缺少 connection 是錯誤;存在但 edges 陣列為空則是不同結果。
目前選定的輸入 schema 只宣告 query。不要自行編造分頁或 limit 欄位,也不要自動為每個候選項抓取個人資料細節。若您的任務需要不同能力,請查看其他端點。